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 : 1029043 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 (3684038) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3684038) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682684 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3684038'] with mtr_portfolio_ids : ['26682684'] and first list_photo_ids : [] new path : /proc/1029043/ Name: python3 Umask: 0002 State: R (running) Tgid: 1029043 Ngid: 0 Pid: 1029043 PPid: 1029042 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1029043 NSpid: 1029043 NSpgid: 1027730 NSsid: 1027730 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99212 kB VmRSS: 99212 kB RssAnon: 60172 kB RssFile: 39040 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 57 nonvoluntary_ctxt_switches: 160 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1029043', 'Ngid': '0', 'Pid': '1029043', 'PPid': '1029042', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1029043', 'NSpid': '1029043', 'NSpgid': '1027730', 'NSsid': '1027730', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99212 kB', 'VmRSS': '99212 kB', 'RssAnon': '60172 kB', 'RssFile': '39040 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '57', 'nonvoluntary_ctxt_switches': '160'} ('datou_batch_current', '1029043', '1107252', '0', '1107252', '866004', '99212', b'', 'marlene', '3684038') 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 (26682684) 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 (3684038 ) ) 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 (26682684) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1382765008, 'portfolio_id': 26682684}, {'photo_id': 1382764987, 'portfolio_id': 26682684}, {'photo_id': 1382764985, 'portfolio_id': 26682684}, {'photo_id': 1382764945, 'portfolio_id': 26682684}, {'photo_id': 1382764943, 'portfolio_id': 26682684}, {'photo_id': 1382764941, 'portfolio_id': 26682684}, {'photo_id': 1382764938, 'portfolio_id': 26682684}, {'photo_id': 1382764936, 'portfolio_id': 26682684}, {'photo_id': 1382764925, 'portfolio_id': 26682684}, {'photo_id': 1382764922, 'portfolio_id': 26682684}, {'photo_id': 1382764917, 'portfolio_id': 26682684}, {'photo_id': 1382764915, 'portfolio_id': 26682684}, {'photo_id': 1382764913, 'portfolio_id': 26682684}, {'photo_id': 1382764876, 'portfolio_id': 26682684}, {'photo_id': 1382764874, 'portfolio_id': 26682684}, {'photo_id': 1382764872, 'portfolio_id': 26682684}, {'photo_id': 1382764846, 'portfolio_id': 26682684}, {'photo_id': 1382764820, 'portfolio_id': 26682684}, {'photo_id': 1382764817, 'portfolio_id': 26682684}, {'photo_id': 1382764813, 'portfolio_id': 26682684}, {'photo_id': 1382764796, 'portfolio_id': 26682684}, {'photo_id': 1382764793, 'portfolio_id': 26682684}, {'photo_id': 1382764787, 'portfolio_id': 26682684}, {'photo_id': 1382764784, 'portfolio_id': 26682684}, {'photo_id': 1382764779, 'portfolio_id': 26682684}, {'photo_id': 1382764774, 'portfolio_id': 26682684}, {'photo_id': 1382764770, 'portfolio_id': 26682684}, {'photo_id': 1382764765, 'portfolio_id': 26682684}, {'photo_id': 1382764745, 'portfolio_id': 26682684}, {'photo_id': 1382764743, 'portfolio_id': 26682684}, {'photo_id': 1382764740, 'portfolio_id': 26682684}, {'photo_id': 1382764708, 'portfolio_id': 26682684}, {'photo_id': 1382764706, 'portfolio_id': 26682684}, {'photo_id': 1382764704, 'portfolio_id': 26682684}, {'photo_id': 1382764688, 'portfolio_id': 26682684}, {'photo_id': 1382764686, 'portfolio_id': 26682684}, {'photo_id': 1382764684, 'portfolio_id': 26682684}, {'photo_id': 1382764682, 'portfolio_id': 26682684}, {'photo_id': 1382764673, 'portfolio_id': 26682684}, {'photo_id': 1382764671, 'portfolio_id': 26682684}, {'photo_id': 1382764667, 'portfolio_id': 26682684}, {'photo_id': 1382764665, 'portfolio_id': 26682684}, {'photo_id': 1382764663, 'portfolio_id': 26682684}, {'photo_id': 1382764662, 'portfolio_id': 26682684}, {'photo_id': 1382764648, 'portfolio_id': 26682684}, {'photo_id': 1382764644, 'portfolio_id': 26682684}, {'photo_id': 1382764641, 'portfolio_id': 26682684}, {'photo_id': 1382764640, 'portfolio_id': 26682684}, {'photo_id': 1382764639, 'portfolio_id': 26682684}, {'photo_id': 1382764544, 'portfolio_id': 26682684}, {'photo_id': 1382764517, 'portfolio_id': 26682684}, {'photo_id': 1382764489, 'portfolio_id': 26682684}, {'photo_id': 1382764458, 'portfolio_id': 26682684}, {'photo_id': 1382764456, 'portfolio_id': 26682684}] map_portfolio_id_photo_id: {26682684: [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913, 1382764876, 1382764874, 1382764872, 1382764846, 1382764820, 1382764817, 1382764813, 1382764796, 1382764793, 1382764787, 1382764784, 1382764779, 1382764774, 1382764770, 1382764765, 1382764745, 1382764743, 1382764740, 1382764708, 1382764706, 1382764704, 1382764688, 1382764686, 1382764684, 1382764682, 1382764673, 1382764671, 1382764667, 1382764665, 1382764663, 1382764662, 1382764648, 1382764644, 1382764641, 1382764640, 1382764639, 1382764544, 1382764517, 1382764489, 1382764458, 1382764456]} ##### 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.016356468200683594 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 9 12:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26682684) 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 : 26682684 get user id for portfolio 26682684 get sub ptf for main ptf 26682684, type 3726 and hashtags ['Carton_gris', 'plastique', 'flou', 'papier', 'kraft', 'Teint_Dans_La_Masse', 'mal_croppe', 'autre_refus', 'environnement', 'Carton_brun', 'metal', 'cartonnette'] 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`=26682684 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','flou','papier','kraft','Teint_Dans_La_Masse','mal_croppe','autre_refus','environnement','Carton_brun','metal','cartonnette')) 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`=26682684 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','flou','papier','kraft','Teint_Dans_La_Masse','mal_croppe','autre_refus','environnement','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26682684, 'sub_port_id': 26682745, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983417, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'metal': {'main_port_id': 26682684, 'sub_port_id': 26682746, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983418, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'cartonnette': {'main_port_id': 26682684, 'sub_port_id': 26682747, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983419, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'Carton_gris': {'main_port_id': 26682684, 'sub_port_id': 26682748, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983420, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 26682684, 'sub_port_id': 26682749, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983421, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'environnement': {'main_port_id': 26682684, 'sub_port_id': 26682750, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983422, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'papier': {'main_port_id': 26682684, 'sub_port_id': 26682751, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983423, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'flou': {'main_port_id': 26682684, 'sub_port_id': 26682752, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983424, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'autre_refus': {'main_port_id': 26682684, 'sub_port_id': 26682753, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983425, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'mal_croppe': {'main_port_id': 26682684, 'sub_port_id': 26682754, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983426, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'kraft': {'main_port_id': 26682684, 'sub_port_id': 26682755, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983427, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}, 'Carton_brun': {'main_port_id': 26682684, 'sub_port_id': 26682756, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983428, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26682745 , 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=26682684 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 (26682745) result : ((1382764761,), (1382764762,), (1382764910,), (1382764911,), (1382764912,), (1382764972,), (1382764973,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682746 , 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=26682684 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 (26682746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682747 , 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=26682684 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 (26682747) result : ((1382764758,), (1382764788,), (1382764836,), (1382764837,), (1382764838,), (1382764839,), (1382764867,), (1382764868,), (1382764894,), (1382764895,), (1382764904,), (1382764905,), (1382764964,), (1382764965,), (1382764966,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682748 , 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=26682684 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 (26682748) result : ((1382764756,), (1382764757,), (1382764786,), (1382764903,), (1382764963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682749 , 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=26682684 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 (26682749) result : ((1382764827,), (1382764828,), (1382764829,), (1382764830,), (1382764831,), (1382764832,), (1382764891,), (1382764892,), (1382764962,), (1382765029,), (1382765030,), (1382765031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682750 , 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=26682684 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 (26682750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682751 , 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=26682684 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 (26682751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682752 , 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=26682684 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 (26682752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682753 , 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=26682684 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 (26682753) result : ((1382764753,), (1382764755,), (1382764834,), (1382764835,), (1382764902,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682754 , 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=26682684 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 (26682754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682755 , 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=26682684 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 (26682755) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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 26682756 , 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=26682684 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 (26682756) result : ((1382764759,), (1382764760,), (1382764789,), (1382764841,), (1382764842,), (1382764843,), (1382764907,), (1382764908,), (1382764909,), (1382764969,), (1382764970,), (1382764971,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26682684) result : ((1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) 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`=26682684 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','flou','papier','kraft','Teint_Dans_La_Masse','mal_croppe','autre_refus','environnement','Carton_brun','metal','cartonnette')) 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`=26682684 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','flou','papier','kraft','Teint_Dans_La_Masse','mal_croppe','autre_refus','environnement','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26682684, 'sub_port_id': 26682757, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983429, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'metal': {'main_port_id': 26682684, 'sub_port_id': 26682758, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983430, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'cartonnette': {'main_port_id': 26682684, 'sub_port_id': 26682759, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983431, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'Carton_gris': {'main_port_id': 26682684, 'sub_port_id': 26682760, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983432, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 26682684, 'sub_port_id': 26682761, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983433, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'environnement': {'main_port_id': 26682684, 'sub_port_id': 26682762, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983434, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'papier': {'main_port_id': 26682684, 'sub_port_id': 26682763, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983435, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'flou': {'main_port_id': 26682684, 'sub_port_id': 26682764, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983436, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'autre_refus': {'main_port_id': 26682684, 'sub_port_id': 26682765, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983437, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'mal_croppe': {'main_port_id': 26682684, 'sub_port_id': 26682766, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983438, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'kraft': {'main_port_id': 26682684, 'sub_port_id': 26682767, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983439, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}, 'Carton_brun': {'main_port_id': 26682684, 'sub_port_id': 26682768, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17983440, 'last_updated_at': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 12, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26682768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26682756 lien utilise dans velours : https://marlene.fotonower.com/velours/26682757,26682758,26682759,26682760,26682761,26682762,26682763,26682764,26682765,26682766,26682767,26682768?tags=plastique,metal,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,papier,flou,autre_refus,mal_croppe,kraft,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26682684]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] map_info['map_portfolio_photo'] : {26682684: [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913, 1382764876, 1382764874, 1382764872, 1382764846, 1382764820, 1382764817, 1382764813, 1382764796, 1382764793, 1382764787, 1382764784, 1382764779, 1382764774, 1382764770, 1382764765, 1382764745, 1382764743, 1382764740, 1382764708, 1382764706, 1382764704, 1382764688, 1382764686, 1382764684, 1382764682, 1382764673, 1382764671, 1382764667, 1382764665, 1382764663, 1382764662, 1382764648, 1382764644, 1382764641, 1382764640, 1382764639, 1382764544, 1382764517, 1382764489, 1382764458, 1382764456]} final : False mtd_id 4302 list_pids : [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] Looping around the photos to save general results len do output : 1 /26682684. 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, '3684038') ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26682684', "{'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756}", None, None, None, None, '3684038'), ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038')] time used for this insertion : 0.016942739486694336 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5733866691589355 time spend to save output : 0.01726984977722168 total time spend for step 1 : 1.5906565189361572 step2:final Tue Sep 9 12:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (26682684) 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 26682684 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1382764544,1382764517,1382764489,1382764458,1382764456,1382764648,1382764644,1382764641,1382764640,1382764639,1382764673,1382764671,1382764667,1382764665,1382764663,1382764662,1382764688,1382764686,1382764684,1382764682,1382764708,1382764706,1382764704,1382764745,1382764787,1382764743,1382764784,1382764740,1382764779,1382764774,1382764770,1382764765,1382764796,1382764793,1382764820,1382764817,1382764813,1382764846,1382764876,1382764874,1382764872,1382764925,1382764922,1382764917,1382764915,1382764913,1382764945,1382764943,1382764941,1382764938,1382764936,1382765008,1382764987,1382764985); 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([26682684]) Inside saveOutput : final : False verbose : True original output for save of step final : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} new output for save of step final : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] map_info['map_portfolio_photo'] : {26682684: [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913, 1382764876, 1382764874, 1382764872, 1382764846, 1382764820, 1382764817, 1382764813, 1382764796, 1382764793, 1382764787, 1382764784, 1382764779, 1382764774, 1382764770, 1382764765, 1382764745, 1382764743, 1382764740, 1382764708, 1382764706, 1382764704, 1382764688, 1382764686, 1382764684, 1382764682, 1382764673, 1382764671, 1382764667, 1382764665, 1382764663, 1382764662, 1382764648, 1382764644, 1382764641, 1382764640, 1382764639, 1382764544, 1382764517, 1382764489, 1382764458, 1382764456]} final : False mtd_id 4302 list_pids : [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] Looping around the photos to save general results len do output : 13 /1382765008.Didn't retrieve data . /1382764987.Didn't retrieve data . /1382764985.Didn't retrieve data . /1382764945.Didn't retrieve data . /1382764943.Didn't retrieve data . /1382764941.Didn't retrieve data . /1382764938.Didn't retrieve data . /1382764936.Didn't retrieve data . /1382764925.Didn't retrieve data . /1382764922.Didn't retrieve data . /1382764917.Didn't retrieve data . /1382764915.Didn't retrieve data . /1382764913.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, '3684038') ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '26682684', '1382765008', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764987', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764985', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764945', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764943', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764941', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764938', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764936', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764925', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764922', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764917', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764915', '0.0514705348929829', None, None, None, None, '3684038'), ('4302', '26682684', '1382764913', '0.0514705348929829', None, None, None, None, '3684038')] time used for this insertion : 0.018750905990600586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07101249694824219 time spend to save output : 0.019433259963989258 total time spend for step 2 : 0.09044575691223145 step3:velours_tree Tue Sep 9 12:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26682684: [{'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756}]} input_args_next_step : {26682684: ()} output_args : {26682684: [{'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756}]} args : 26682684 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26682684) 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([26682684]) 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.32685089111328125 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.32689499855041504 step4:send_mail_cod Tue Sep 9 12:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} input_args_next_step : {1382765008: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382765008 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764987 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764985 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764945 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764943 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764941 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764938 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764936 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764925 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764922 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764917 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764915 depend.output_id : 0 input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ()} output_args : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',)} args : 1382764913 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 : {26682684: [{'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756}]} input_args_next_step : {1382765008: ('0.0514705348929829',), 1382764987: ('0.0514705348929829',), 1382764985: ('0.0514705348929829',), 1382764945: ('0.0514705348929829',), 1382764943: ('0.0514705348929829',), 1382764941: ('0.0514705348929829',), 1382764938: ('0.0514705348929829',), 1382764936: ('0.0514705348929829',), 1382764925: ('0.0514705348929829',), 1382764922: ('0.0514705348929829',), 1382764917: ('0.0514705348929829',), 1382764915: ('0.0514705348929829',), 1382764913: ('0.0514705348929829',), 26682684: ()} output_args : {26682684: [{'plastique': 26682745, 'metal': 26682746, 'cartonnette': 26682747, 'Carton_gris': 26682748, 'Teint_Dans_La_Masse': 26682749, 'environnement': 26682750, 'papier': 26682751, 'flou': 26682752, 'autre_refus': 26682753, 'mal_croppe': 26682754, 'kraft': 26682755, 'Carton_brun': 26682756}]} args : 26682684 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 :14, first value : ('0.0514705348929829',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26682684) 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 (1382765008,1382764987,1382764985,1382764945,1382764943,1382764941,1382764938,1382764936,1382764925,1382764922,1382764917,1382764915,1382764913) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1382764913 begin to download photo : 1382764922 begin to download photo : 1382764938 begin to download photo : 1382764945 begin to download photo : 1382765008 download finish for photo 1382765008 download finish for photo 1382764945 begin to download photo : 1382764985 download finish for photo 1382764938 begin to download photo : 1382764941 download finish for photo 1382764913 begin to download photo : 1382764915 download finish for photo 1382764922 begin to download photo : 1382764925 download finish for photo 1382764941 begin to download photo : 1382764943 download finish for photo 1382764985 begin to download photo : 1382764987 download finish for photo 1382764925 begin to download photo : 1382764936 download finish for photo 1382764915 begin to download photo : 1382764917 download finish for photo 1382764987 download finish for photo 1382764936 download finish for photo 1382764943 download finish for photo 1382764917 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P26682684_09-09-2025_12_15_00.pdf 26682745 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=26682745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764761: '1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263631_0.png', 1382764762: '1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263633_0.png', 1382764910: '1757412687_1534863_1382764684_198c6a7f8c186b5632b197a12c011a13_rle_crop_3952264818_0.png', 1382764911: '1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264827_0.png', 1382764912: '1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264823_0.png', 1382764972: '1757412788_1539804_1382764787_6c82463ed09816df9d99ffbf9a6d613c_rle_crop_3952265229_0.png', 1382764973: '1757412788_1539804_1382764745_40dc37e475955a9dc47fdcd86e7821b2_rle_crop_3952265238_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/35eb6b5872e7310d0db88730478b367d_61771848.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4aadb6709e803d8878b3f79c230e81b5_56743267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a2f8112ed94569aaacad1374ffd68fef_39449847.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/b1d92ae15f83a72cbcc0b26c164ceca0_98512014.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4ebcff57e2271fcde18a23bcdfabfcb3_10714702.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f4f1e2d9250ddb87d3bf1179942fb17c_61576800.png change filename to text .imagette266827451757412900/ imagette266827451757412900/1757412788_1539804_1382764745_40dc37e475955a9dc47fdcd86e7821b2_rle_crop_3952265238_0.png.png imagette266827451757412900/1757412687_1534863_1382764684_198c6a7f8c186b5632b197a12c011a13_rle_crop_3952264818_0.png.png imagette266827451757412900/1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264823_0.png.png imagette266827451757412900/1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264827_0.png.png imagette266827451757412900/1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263633_0.png.png imagette266827451757412900/1757412788_1539804_1382764787_6c82463ed09816df9d99ffbf9a6d613c_rle_crop_3952265229_0.png.png imagette266827451757412900/1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263631_0.png.png imagette266827461757412901/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f4f1e2d9250ddb87d3bf1179942fb17c_82872607.png imagette266827451757412900 26682746 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=26682746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266827461757412901 26682747 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=26682747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764758: '1757412386_1519716_1382764662_c14091f1e1e02b06fbb1825e5a724555_rle_crop_3952263678_0.png', 1382764788: '1757412427_1521022_1382764673_5ecb9549ff25f2b5c5b29a2e51b2f40b_rle_crop_3952263753_0.png', 1382764836: '1757412546_1525779_1382764648_e94bfd28aa54cec404d2aef2e553e9e7_rle_crop_3952264215_0.png', 1382764837: '1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264281_0.png', 1382764838: '1757412546_1525779_1382764458_46147ae60807b861b173c1c5b3cc8f4f_rle_crop_3952264302_0.png', 1382764839: '1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264313_0.png', 1382764867: '1757412628_1530353_1382764796_08d82f42711e149b47ba22ccbeb840a9_rle_crop_3952264448_0.png', 1382764868: '1757412628_1530353_1382764796_08d82f42711e149b47ba22ccbeb840a9_rle_crop_3952264455_0.png', 1382764894: '1757412667_1531659_1382764784_a3f3b59be98a759ca58405e3ac429b17_rle_crop_3952264604_0.png', 1382764895: '1757412667_1531659_1382764743_368c0f63a17d70057addd5addd212abb_rle_crop_3952264629_0.png', 1382764904: '1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264780_0.png', 1382764905: '1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264781_0.png', 1382764964: '1757412788_1539804_1382764706_aeaf4f6cce2fef5443220053871975ac_rle_crop_3952265252_0.png', 1382764965: '1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265261_0.png', 1382764966: '1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265263_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/638aa1272f513201c257f7f1304f2b6e_41469080.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a5df7dabe96ed04ef897cdc37a8edfa2_14981277.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/25411363b2dd4c6301f0279edb4b9de2_86935358.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/dd3d2ec1c2aef87b0d55f5b2265c68eb_47653895.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/884e698acdb1d08c0d4a6d9c8924f79f_43812413.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/aae8bcc3143a01e85a86e8ab94f6f03a_50205390.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/348e3911fd1442c6c0c8bec5e15451d0_59397317.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/9314ac535f6b3f28bb11b55b7c333880_84793379.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/706d0d5cec9facd3e6c4a908f14719d0_69308602.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/706d0d5cec9facd3e6c4a908f14719d0_31380125.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/debd8ac2b58e4ed7a53b10949e8d140c_29688072.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a46ddfe8b1d9f96bd496ed0a20c40065_57045619.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/147d43b6223fc22939c05a456b955b8c_46604007.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e91ac89024f0b31eadfcc997b7021c3d_89129709.png change filename to text .imagette266827471757412901/ imagette266827471757412901/1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264781_0.png.png imagette266827471757412901/1757412386_1519716_1382764662_c14091f1e1e02b06fbb1825e5a724555_rle_crop_3952263678_0.png.png imagette266827471757412901/1757412546_1525779_1382764458_46147ae60807b861b173c1c5b3cc8f4f_rle_crop_3952264302_0.png.png imagette266827471757412901/1757412667_1531659_1382764784_a3f3b59be98a759ca58405e3ac429b17_rle_crop_3952264604_0.png.png imagette266827471757412901/1757412628_1530353_1382764796_08d82f42711e149b47ba22ccbeb840a9_rle_crop_3952264455_0.png.png imagette266827471757412901/1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265263_0.png.png imagette266827471757412901/1757412427_1521022_1382764673_5ecb9549ff25f2b5c5b29a2e51b2f40b_rle_crop_3952263753_0.png.png imagette266827471757412901/1757412667_1531659_1382764743_368c0f63a17d70057addd5addd212abb_rle_crop_3952264629_0.png.png imagette266827471757412901/1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265261_0.png.png imagette266827471757412901/1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264313_0.png.png imagette266827471757412901/1757412788_1539804_1382764706_aeaf4f6cce2fef5443220053871975ac_rle_crop_3952265252_0.png.png imagette266827471757412901/1757412546_1525779_1382764648_e94bfd28aa54cec404d2aef2e553e9e7_rle_crop_3952264215_0.png.png imagette266827471757412901/1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264780_0.png.png imagette266827471757412901/1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264281_0.png.png imagette266827471757412901/1757412628_1530353_1382764796_08d82f42711e149b47ba22ccbeb840a9_rle_crop_3952264448_0.png.png imagette266827521757412902/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a704caeb3e447d0c76cb2a7a0aa9b740_5306935.png imagette266827471757412901 26682752 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=26682752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266827521757412902 26682753 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=26682753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764753: '1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263625_0.png', 1382764755: '1757412386_1519716_1382764667_b646250500912e8c7126d500a74e3356_rle_crop_3952263639_0.png', 1382764834: '1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264280_0.png', 1382764835: '1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264316_0.png', 1382764902: '1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264826_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/5756e1fe74f758478d8189e44bf49afa_62632298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/c34b2a7ae66c71b97c5da2271e609119_89712075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/17d065479a0a8ba7a1984fa43a3f5cb7_27680665.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/c5353b753988e1573a0db87bae686a5a_32506058.png change filename to text .imagette266827531757412902/ imagette266827531757412902/1757412386_1519716_1382764667_b646250500912e8c7126d500a74e3356_rle_crop_3952263639_0.png.png imagette266827531757412902/1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264316_0.png.png imagette266827531757412902/1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264826_0.png.png imagette266827531757412902/1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264280_0.png.png imagette266827531757412902/1757412386_1519716_1382764671_68cf1060e2ec587656278a3c789e7805_rle_crop_3952263625_0.png.png imagette266827541757412902/ imagette266827551757412902/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8ebe86a2ec32e81cd28c506fb0f64188_93098920.png imagette266827531757412902 26682754 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=26682754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266827541757412902 26682755 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=26682755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266827551757412902 26682748 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=26682748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764756: '1757412386_1519716_1382764663_47aa3c059e84f926c860116c7ddc18b7_rle_crop_3952263666_0.png', 1382764757: '1757412386_1519716_1382764663_47aa3c059e84f926c860116c7ddc18b7_rle_crop_3952263668_0.png', 1382764786: '1757412427_1521022_1382764639_f12ca7ebae0530f9d3e20b6520891243_rle_crop_3952263967_0.png', 1382764903: '1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264782_0.png', 1382764963: '1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/06594a4cb19484d817aa8fa927d4437d_48310972.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e8b1147069bd0f71dfc1bb4e5375798e_76485991.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d1a2921b997e24c63add75faf200eeb4_24062747.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/a63de3b3548180278e5853baa75f4015_96708515.png change filename to text .imagette266827481757412902/ imagette266827481757412902/1757412386_1519716_1382764663_47aa3c059e84f926c860116c7ddc18b7_rle_crop_3952263666_0.png.png imagette266827481757412902/1757412427_1521022_1382764639_f12ca7ebae0530f9d3e20b6520891243_rle_crop_3952263967_0.png.png imagette266827481757412902/1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264782_0.png.png imagette266827481757412902/1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265264_0.png.png imagette266827481757412902/1757412386_1519716_1382764663_47aa3c059e84f926c860116c7ddc18b7_rle_crop_3952263668_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/6e1ae26c0613c84dcbd173957ae12c9c_4814859.png imagette266827481757412902 26682749 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=26682749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764827: '1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264255_0.png', 1382764828: '1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264252_0.png', 1382764829: '1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264251_0.png', 1382764830: '1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264283_0.png', 1382764831: '1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264320_0.png', 1382764832: '1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264317_0.png', 1382764891: '1757412667_1531659_1382764784_a3f3b59be98a759ca58405e3ac429b17_rle_crop_3952264613_0.png', 1382764892: '1757412667_1531659_1382764743_368c0f63a17d70057addd5addd212abb_rle_crop_3952264638_0.png', 1382764962: '1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265268_0.png', 1382765029: '1757412865_1542412_1382764874_20a1edd6fbdfe9d54c8605bf9dc3709b_rle_crop_3952265348_0.png', 1382765030: '1757412865_1542412_1382764872_3b534de6f6e39358587363e03722d047_rle_crop_3952265369_0.png', 1382765031: '1757412865_1542412_1382764872_3b534de6f6e39358587363e03722d047_rle_crop_3952265360_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/49347192738732d3e0fe95554f678be8_18752067.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/fe5ec3a12df1d3e57e246eacacc3662c_90687055.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/ac2c3916f6626a34f913ee8337b1215b_40801367.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/640ac89542c7450de4b3bc906119f8b1_86906199.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/0474e2fd544f97e90cc93e74114730e5_14546133.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/b117022ee8153300d8dcd5afc3ee50f5_98149476.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d89687d5598385062d985613cf43c6d9_99384523.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d89687d5598385062d985613cf43c6d9_20727862.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/72b6acd3bd64a1e41122992b1dff68a4_27193049.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4e0ce848026b2789c86d4f45fb076982_55517728.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/4abb34707d2e861177db3c931ec91b5a_12026889.png change filename to text .imagette266827491757412902/ imagette266827491757412902/1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264320_0.png.png imagette266827491757412902/1757412546_1525779_1382764489_8f45f5859cf3db2ffa859aa3c3353665_rle_crop_3952264283_0.png.png imagette266827491757412902/1757412667_1531659_1382764784_a3f3b59be98a759ca58405e3ac429b17_rle_crop_3952264613_0.png.png imagette266827491757412902/1757412667_1531659_1382764743_368c0f63a17d70057addd5addd212abb_rle_crop_3952264638_0.png.png imagette266827491757412902/1757412865_1542412_1382764872_3b534de6f6e39358587363e03722d047_rle_crop_3952265369_0.png.png imagette266827491757412902/1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264251_0.png.png imagette266827491757412902/1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264317_0.png.png imagette266827491757412902/1757412865_1542412_1382764874_20a1edd6fbdfe9d54c8605bf9dc3709b_rle_crop_3952265348_0.png.png imagette266827491757412902/1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264255_0.png.png imagette266827491757412902/1757412865_1542412_1382764872_3b534de6f6e39358587363e03722d047_rle_crop_3952265360_0.png.png imagette266827491757412902/1757412546_1525779_1382764544_751b70161e5137adef61b9d05215d8ff_rle_crop_3952264252_0.png.png imagette266827491757412902/1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265268_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/40da0afe0688130c15fd72b53e0c96ac_58577810.png imagette266827491757412902 26682756 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=26682756 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382764759: '1757412386_1519716_1382764667_b646250500912e8c7126d500a74e3356_rle_crop_3952263645_0.png', 1382764760: '1757412386_1519716_1382764665_35ba434312c68b96d2008f1936c29efe_rle_crop_3952263654_0.png', 1382764789: '1757412427_1521022_1382764673_5ecb9549ff25f2b5c5b29a2e51b2f40b_rle_crop_3952263748_0.png', 1382764841: '1757412546_1525779_1382764648_e94bfd28aa54cec404d2aef2e553e9e7_rle_crop_3952264216_0.png', 1382764842: '1757412546_1525779_1382764517_60160e48de70ecf084a1a8872fd62c33_rle_crop_3952264268_0.png', 1382764843: '1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264318_0.png', 1382764907: '1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264789_0.png', 1382764908: '1757412687_1534863_1382764684_198c6a7f8c186b5632b197a12c011a13_rle_crop_3952264816_0.png', 1382764909: '1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264832_0.png', 1382764969: '1757412788_1539804_1382764787_6c82463ed09816df9d99ffbf9a6d613c_rle_crop_3952265231_0.png', 1382764970: '1757412788_1539804_1382764745_40dc37e475955a9dc47fdcd86e7821b2_rle_crop_3952265240_0.png', 1382764971: '1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/c9e02f7c3f46eb976a29ed1710d4eb08_94390065.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/d50f6fc9ebb120e840f674724b9e81a4_48052185.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/6e766a74b79938a933e46914907ce150_68344654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/63ab7e01c3511a4460f094457dabcfee_87818935.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/59c6fc6bcf7e95006bb70d9e13db34cd_74997314.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e922d230b446622053735c6bd10d2930_41983523.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1d1bc70849909c16c10c4d572ed7bbc2_79329273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/57b3aa9288a82bb322ea50858b5488a4_24518304.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/1f3c1e47b53ddb90893d83cc80f63154_14899329.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/59a520d8eed0e1eb137ee6c2e7b0ebfe_79237562.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/59a520d8eed0e1eb137ee6c2e7b0ebfe_13248277.png change filename to text .imagette266827561757412903/ imagette266827561757412903/1757412788_1539804_1382764704_14e47ab65b7eab05c038257baa5e7100_rle_crop_3952265265_0.png.png imagette266827561757412903/1757412687_1534863_1382764682_8eb10e2b8f662b1d1539da7912ca00d0_rle_crop_3952264832_0.png.png imagette266827561757412903/1757412546_1525779_1382764648_e94bfd28aa54cec404d2aef2e553e9e7_rle_crop_3952264216_0.png.png imagette266827561757412903/1757412546_1525779_1382764456_407e33b4a71f69998c7a39da7a2707f0_rle_crop_3952264318_0.png.png imagette266827561757412903/1757412687_1534863_1382764684_198c6a7f8c186b5632b197a12c011a13_rle_crop_3952264816_0.png.png imagette266827561757412903/1757412546_1525779_1382764517_60160e48de70ecf084a1a8872fd62c33_rle_crop_3952264268_0.png.png imagette266827561757412903/1757412386_1519716_1382764667_b646250500912e8c7126d500a74e3356_rle_crop_3952263645_0.png.png imagette266827561757412903/1757412386_1519716_1382764665_35ba434312c68b96d2008f1936c29efe_rle_crop_3952263654_0.png.png imagette266827561757412903/1757412788_1539804_1382764745_40dc37e475955a9dc47fdcd86e7821b2_rle_crop_3952265240_0.png.png imagette266827561757412903/1757412788_1539804_1382764787_6c82463ed09816df9d99ffbf9a6d613c_rle_crop_3952265231_0.png.png imagette266827561757412903/1757412687_1534863_1382764708_fc63a0a564fffd0b9970a7ec70398032_rle_crop_3952264789_0.png.png imagette266827561757412903/1757412427_1521022_1382764673_5ecb9549ff25f2b5c5b29a2e51b2f40b_rle_crop_3952263748_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/60dba1343466815be1d2d4aee3602f4b_7231360.png imagette266827561757412903 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26682684 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26682757,26682758,26682759,26682760,26682761,26682762,26682763,26682764,26682765,26682766,26682767,26682768?tags=plastique,metal,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,papier,flou,autre_refus,mal_croppe,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1382765008] : ('0.0514705348929829',) no score found for photo 1382765008 We are sending mail with results at report@fotonower.com args[1382764987] : ('0.0514705348929829',) no score found for photo 1382764987 We are sending mail with results at report@fotonower.com args[1382764985] : ('0.0514705348929829',) no score found for photo 1382764985 We are sending mail with results at report@fotonower.com args[1382764945] : ('0.0514705348929829',) no score found for photo 1382764945 We are sending mail with results at report@fotonower.com args[1382764943] : ('0.0514705348929829',) no score found for photo 1382764943 We are sending mail with results at report@fotonower.com args[1382764941] : ('0.0514705348929829',) no score found for photo 1382764941 We are sending mail with results at report@fotonower.com args[1382764938] : ('0.0514705348929829',) no score found for photo 1382764938 We are sending mail with results at report@fotonower.com args[1382764936] : ('0.0514705348929829',) no score found for photo 1382764936 We are sending mail with results at report@fotonower.com args[1382764925] : ('0.0514705348929829',) no score found for photo 1382764925 We are sending mail with results at report@fotonower.com args[1382764922] : ('0.0514705348929829',) no score found for photo 1382764922 We are sending mail with results at report@fotonower.com args[1382764917] : ('0.0514705348929829',) no score found for photo 1382764917 We are sending mail with results at report@fotonower.com args[1382764915] : ('0.0514705348929829',) no score found for photo 1382764915 We are sending mail with results at report@fotonower.com args[1382764913] : ('0.0514705348929829',) no score found for photo 1382764913 We are sending mail with results at report@fotonower.com refus_total : 0.0514705348929829 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=26682684 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_P26682684_09-09-2025_12_15_00.pdf results_Auto_P26682684_09-09-2025_12_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_15_00.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','26682684','results_Auto_P26682684_09-09-2025_12_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_15_00.pdf','pdf','','0.28','0.0514705348929829') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26682684]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] map_info['map_portfolio_photo'] : {26682684: [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913, 1382764876, 1382764874, 1382764872, 1382764846, 1382764820, 1382764817, 1382764813, 1382764796, 1382764793, 1382764787, 1382764784, 1382764779, 1382764774, 1382764770, 1382764765, 1382764745, 1382764743, 1382764740, 1382764708, 1382764706, 1382764704, 1382764688, 1382764686, 1382764684, 1382764682, 1382764673, 1382764671, 1382764667, 1382764665, 1382764663, 1382764662, 1382764648, 1382764644, 1382764641, 1382764640, 1382764639, 1382764544, 1382764517, 1382764489, 1382764458, 1382764456]} final : False mtd_id 4302 list_pids : [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] 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, '3684038') ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '26682684', '1382765008', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038')] time used for this insertion : 0.01717352867126465 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.370827913284302 time spend to save output : 0.017407894134521484 total time spend for step 4 : 5.388235807418823 step5:split_time_score Tue Sep 9 12:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26682684'] 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 : [('26682684',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26682684) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1382765008: {'path': 'temp/1757412900_1029043_1382765008_c96fb4c76f5b069b3c2495c209548bea.jpg', 'extension': 'jpg'}, 1382764945: {'path': 'temp/1757412900_1029043_1382764945_a3e2792820b731cb81a01c32b66bfcdc.jpg', 'extension': 'jpg'}, 1382764985: {'path': 'temp/1757412900_1029043_1382764985_9f4fa1d787001f384092082db7c2cfcc.jpg', 'extension': 'jpg'}, 1382764987: {'path': 'temp/1757412900_1029043_1382764987_b407b0d516da895c5d9bb6357d239373.jpg', 'extension': 'jpg'}, 1382764922: {'path': 'temp/1757412900_1029043_1382764922_dd9c352470ad9615e01f8b4f3d6d41b2.jpg', 'extension': 'jpg'}, 1382764925: {'path': 'temp/1757412900_1029043_1382764925_d60ed2c26dd3a2f3a140f0a5e80ed3e2.jpg', 'extension': 'jpg'}, 1382764936: {'path': 'temp/1757412900_1029043_1382764936_e778561b41de41817688ff67552a5fad.jpg', 'extension': 'jpg'}, 1382764938: {'path': 'temp/1757412900_1029043_1382764938_e63f97c1f4783b5c5bf6c27016a27a91.jpg', 'extension': 'jpg'}, 1382764941: {'path': 'temp/1757412900_1029043_1382764941_84537a331422e1b33064dcf193ad8e42.jpg', 'extension': 'jpg'}, 1382764943: {'path': 'temp/1757412900_1029043_1382764943_c1997bdf8bc7a7aac418797b38103b86.jpg', 'extension': 'jpg'}, 1382764913: {'path': 'temp/1757412900_1029043_1382764913_70570f0efe2f5e9de5898b43de4f5f52.jpg', 'extension': 'jpg'}, 1382764915: {'path': 'temp/1757412900_1029043_1382764915_640dc61925fc03905529d101b081f6a7.jpg', 'extension': 'jpg'}, 1382764917: {'path': 'temp/1757412900_1029043_1382764917_1f0d4197e50a5732da2e6bfca380061d.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 = 26682684; (('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 = 26682684 group by h (('12', 54),) 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=26682684 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 (26682684) 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 (26682684) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09092025 26682684 Nombre de photos uploadées : 54 / 23040 (0%) 09092025 26682684 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 09092025 26682684 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1382764544, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/751b70161e5137adef61b9d05215d8ff.jpg', 'username': None, 'uploaded_at': 1757412073, 'text': 'image_09092025_12_00_04_010164m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382764517, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/60160e48de70ecf084a1a8872fd62c33.jpg', 'username': None, 'uploaded_at': 1757412073, 'text': 'image_09092025_12_00_13_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382764489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/8f45f5859cf3db2ffa859aa3c3353665.jpg', 'username': None, 'uploaded_at': 1757412073, 'text': 'image_09092025_12_00_23_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382764458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/46147ae60807b861b173c1c5b3cc8f4f.jpg', 'username': None, 'uploaded_at': 1757412073, 'text': 'image_09092025_12_00_33_010140m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024738311767578125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26682684, '2025-09-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2253579,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2406325340270996 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= 2253579 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26665951, 'dashboard_result_id': 14939834, '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_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26666470, 'dashboard_result_id': 14939835, '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_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26666997, 'dashboard_result_id': 14939836, '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_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26667314, 'dashboard_result_id': 14939837, '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_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26668399, 'dashboard_result_id': 14939838, '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_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26668763, 'dashboard_result_id': 14939839, '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_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26669124, 'dashboard_result_id': 14939840, '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_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26669820, 'dashboard_result_id': 14939841, '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_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26670286, 'dashboard_result_id': 14939842, '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_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26670744, 'dashboard_result_id': 14939843, '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_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26671134, 'dashboard_result_id': 14939844, '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_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26671697, 'dashboard_result_id': 14939845, '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_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26672133, 'dashboard_result_id': 14939846, '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_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26672645, 'dashboard_result_id': 14939847, '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_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26673061, 'dashboard_result_id': 14939848, '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_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26674196, 'dashboard_result_id': 14939849, '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_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26674397, 'dashboard_result_id': 14939850, '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_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26674770, 'dashboard_result_id': 14939851, '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_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26678188, 'dashboard_result_id': 14939852, '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_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26678700, 'dashboard_result_id': 14939853, '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_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26679249, 'dashboard_result_id': 14939854, '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_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26679775, 'dashboard_result_id': 14939855, '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_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26680309, 'dashboard_result_id': 14939856, '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_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26681052, 'dashboard_result_id': 14939857, '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_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26681532, 'dashboard_result_id': 14939858, '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_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26682215, 'dashboard_result_id': 14939859, '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_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2264423, 'mtr_portfolio_id': 26682684, 'dashboard_result_id': 14939860, '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_P26682684_09-09-2025_12_11_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, '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 = 26665951 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': 3682647, 'mtr_portfolio_id': 26665951, 'created_at': datetime.datetime(2025, 9, 9, 6, 0, 57), 'result': '0.050389988143182296', 'result_long': None, 'result_double': None}] Qualite : 0.050389988143182296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26665951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26665951 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_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}" where mtr_portfolio_id = 26665951 and dashboard_run_id = 2264423 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`=26665951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939834, 0.050389988143182296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, '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 = 26666470 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': 3682648, 'mtr_portfolio_id': 26666470, 'created_at': datetime.datetime(2025, 9, 9, 6, 1, 28), 'result': '0.052715171053135106', 'result_long': None, 'result_double': None}] Qualite : 0.052715171053135106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_06_01_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666470 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_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}" where mtr_portfolio_id = 26666470 and dashboard_run_id = 2264423 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`=26666470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939835, 0.052715171053135106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, '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 = 26666997 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': 3682649, 'mtr_portfolio_id': 26666997, 'created_at': datetime.datetime(2025, 9, 9, 6, 1, 58), 'result': '0.07067176584757011', 'result_long': None, 'result_double': None}] Qualite : 0.07067176584757011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666997 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_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}" where mtr_portfolio_id = 26666997 and dashboard_run_id = 2264423 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`=26666997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939836, 0.07067176584757011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, '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 = 26667314 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': 3682650, 'mtr_portfolio_id': 26667314, 'created_at': datetime.datetime(2025, 9, 9, 6, 2, 30), 'result': '0.07133135033351763', 'result_long': None, 'result_double': None}] Qualite : 0.07133135033351763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26667314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26667314 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_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}" where mtr_portfolio_id = 26667314 and dashboard_run_id = 2264423 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`=26667314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939837, 0.07133135033351763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, '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 = 26668399 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': 3682651, 'mtr_portfolio_id': 26668399, 'created_at': datetime.datetime(2025, 9, 9, 6, 2, 57), 'result': '0.04170839703830682', 'result_long': None, 'result_double': None}] Qualite : 0.04170839703830682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668399 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_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}" where mtr_portfolio_id = 26668399 and dashboard_run_id = 2264423 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`=26668399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939838, 0.04170839703830682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, '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 = 26668763 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': 3682652, 'mtr_portfolio_id': 26668763, 'created_at': datetime.datetime(2025, 9, 9, 6, 3, 28), 'result': '0.05141645040090347', 'result_long': None, 'result_double': None}] Qualite : 0.05141645040090347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668763 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_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}" where mtr_portfolio_id = 26668763 and dashboard_run_id = 2264423 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`=26668763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939839, 0.05141645040090347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, '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 = 26669124 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': 3682653, 'mtr_portfolio_id': 26669124, 'created_at': datetime.datetime(2025, 9, 9, 6, 3, 58), 'result': '0.04270834225482556', 'result_long': None, 'result_double': None}] Qualite : 0.04270834225482556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_06_04_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669124 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_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}" where mtr_portfolio_id = 26669124 and dashboard_run_id = 2264423 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`=26669124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939840, 0.04270834225482556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, '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 = 26669820 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': 3682654, 'mtr_portfolio_id': 26669820, 'created_at': datetime.datetime(2025, 9, 9, 6, 4, 29), 'result': '0.035313723721439066', 'result_long': None, 'result_double': None}] Qualite : 0.035313723721439066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_06_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669820 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_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}" where mtr_portfolio_id = 26669820 and dashboard_run_id = 2264423 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`=26669820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939841, 0.035313723721439066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, '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 = 26670286 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': 3682655, 'mtr_portfolio_id': 26670286, 'created_at': datetime.datetime(2025, 9, 9, 6, 5), 'result': '0.05178657613991953', 'result_long': None, 'result_double': None}] Qualite : 0.05178657613991953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_06_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670286 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_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}" where mtr_portfolio_id = 26670286 and dashboard_run_id = 2264423 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`=26670286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939842, 0.05178657613991953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, '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 = 26670744 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': 3682656, 'mtr_portfolio_id': 26670744, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 30), 'result': '0.05170990512872997', 'result_long': None, 'result_double': None}] Qualite : 0.05170990512872997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670744 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_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}" where mtr_portfolio_id = 26670744 and dashboard_run_id = 2264423 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`=26670744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939843, 0.05170990512872997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, '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 = 26671134 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': 3682657, 'mtr_portfolio_id': 26671134, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 40), 'result': '0.049280891076028885', 'result_long': None, 'result_double': None}] Qualite : 0.049280891076028885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_06_05_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671134 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_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}" where mtr_portfolio_id = 26671134 and dashboard_run_id = 2264423 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`=26671134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939844, 0.049280891076028885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, '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 = 26671697 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': 3682658, 'mtr_portfolio_id': 26671697, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 58), 'result': '0.051077693266027596', 'result_long': None, 'result_double': None}] Qualite : 0.051077693266027596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671697 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_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}" where mtr_portfolio_id = 26671697 and dashboard_run_id = 2264423 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`=26671697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939845, 0.051077693266027596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, '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 = 26672133 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': 3682659, 'mtr_portfolio_id': 26672133, 'created_at': datetime.datetime(2025, 9, 9, 6, 6, 29), 'result': '0.08192827917858833', 'result_long': None, 'result_double': None}] Qualite : 0.08192827917858833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672133 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_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}" where mtr_portfolio_id = 26672133 and dashboard_run_id = 2264423 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`=26672133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939846, 0.08192827917858833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, '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 = 26672645 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': 3682660, 'mtr_portfolio_id': 26672645, 'created_at': datetime.datetime(2025, 9, 9, 6, 7), 'result': '0.04794720727428164', 'result_long': None, 'result_double': None}] Qualite : 0.04794720727428164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672645 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_06_07_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672645 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_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}" where mtr_portfolio_id = 26672645 and dashboard_run_id = 2264423 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`=26672645 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939847, 0.04794720727428164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, '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 = 26673061 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': 3682661, 'mtr_portfolio_id': 26673061, 'created_at': datetime.datetime(2025, 9, 9, 6, 7, 29), 'result': '0.049283104467753455', 'result_long': None, 'result_double': None}] Qualite : 0.049283104467753455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26673061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26673061 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_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}" where mtr_portfolio_id = 26673061 and dashboard_run_id = 2264423 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`=26673061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939848, 0.049283104467753455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, '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 = 26674196 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': 3682662, 'mtr_portfolio_id': 26674196, 'created_at': datetime.datetime(2025, 9, 9, 6, 7, 57), 'result': '0.054113474413085574', 'result_long': None, 'result_double': None}] Qualite : 0.054113474413085574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674196 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_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}" where mtr_portfolio_id = 26674196 and dashboard_run_id = 2264423 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`=26674196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939849, 0.054113474413085574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, '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 = 26674397 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': 3682663, 'mtr_portfolio_id': 26674397, 'created_at': datetime.datetime(2025, 9, 9, 6, 8, 30), 'result': '0.06827761438954877', 'result_long': None, 'result_double': None}] Qualite : 0.06827761438954877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_06_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674397 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_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, 'pht': 3726}}" where mtr_portfolio_id = 26674397 and dashboard_run_id = 2264423 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`=26674397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939850, 0.06827761438954877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, '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 = 26674770 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': 3682583, 'mtr_portfolio_id': 26674770, 'created_at': datetime.datetime(2025, 9, 9, 8, 59, 57), 'result': '0.05322324101949038', 'result_long': None, 'result_double': None}] Qualite : 0.05322324101949038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674770_09-09-2025_08_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674770 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_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, 'pht': 3726}}" where mtr_portfolio_id = 26674770 and dashboard_run_id = 2264423 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`=26674770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939851, 0.05322324101949038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, '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 = 26678188 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': 3683364, 'mtr_portfolio_id': 26678188, 'created_at': datetime.datetime(2025, 9, 9, 10, 18, 58), 'result': '0.025788329520295653', 'result_long': None, 'result_double': None}] Qualite : 0.025788329520295653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26678188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678188_09-09-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26678188 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_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, 'pht': 3726}}" where mtr_portfolio_id = 26678188 and dashboard_run_id = 2264423 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`=26678188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939852, 0.025788329520295653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, '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 = 26678700 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': 3683410, 'mtr_portfolio_id': 26678700, 'created_at': datetime.datetime(2025, 9, 9, 10, 32, 57), 'result': '0.06138995695646494', 'result_long': None, 'result_double': None}] Qualite : 0.06138995695646494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26678700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678700_09-09-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26678700 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_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, 'pht': 3726}}" where mtr_portfolio_id = 26678700 and dashboard_run_id = 2264423 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`=26678700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939853, 0.06138995695646494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, '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 = 26679249 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': 3683494, 'mtr_portfolio_id': 26679249, 'created_at': datetime.datetime(2025, 9, 9, 10, 48, 58), 'result': '0.02889670551077109', 'result_long': None, 'result_double': None}] Qualite : 0.02889670551077109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26679249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679249_09-09-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26679249 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_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, 'pht': 3726}}" where mtr_portfolio_id = 26679249 and dashboard_run_id = 2264423 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`=26679249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939854, 0.02889670551077109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, '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 = 26679775 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': 3683577, 'mtr_portfolio_id': 26679775, 'created_at': datetime.datetime(2025, 9, 9, 11, 2, 59), 'result': '0.022492366342729685', 'result_long': None, 'result_double': None}] Qualite : 0.022492366342729685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26679775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679775_09-09-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26679775 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_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, 'pht': 3726}}" where mtr_portfolio_id = 26679775 and dashboard_run_id = 2264423 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`=26679775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939855, 0.022492366342729685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, '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 = 26680309 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': 3683672, 'mtr_portfolio_id': 26680309, 'created_at': datetime.datetime(2025, 9, 9, 11, 18, 58), 'result': '0.03175616611629535', 'result_long': None, 'result_double': None}] Qualite : 0.03175616611629535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26680309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26680309_09-09-2025_11_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26680309 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_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, 'pht': 3726}}" where mtr_portfolio_id = 26680309 and dashboard_run_id = 2264423 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`=26680309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939856, 0.03175616611629535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, '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 = 26681052 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': 3683773, 'mtr_portfolio_id': 26681052, 'created_at': datetime.datetime(2025, 9, 9, 11, 32, 57), 'result': '0.04065304722993697', 'result_long': None, 'result_double': None}] Qualite : 0.04065304722993697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26681052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681052_09-09-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26681052 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_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, 'pht': 3726}}" where mtr_portfolio_id = 26681052 and dashboard_run_id = 2264425 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`=26681052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939857, 0.04065304722993697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, '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 = 26681532 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': 3683862, 'mtr_portfolio_id': 26681532, 'created_at': datetime.datetime(2025, 9, 9, 11, 48, 57), 'result': '0.04552230045232157', 'result_long': None, 'result_double': None}] Qualite : 0.04552230045232157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26681532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681532_09-09-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26681532 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_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, 'pht': 3726}}" where mtr_portfolio_id = 26681532 and dashboard_run_id = 2264425 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`=26681532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939858, 0.04552230045232157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, '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 = 26682215 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': 3683946, 'mtr_portfolio_id': 26682215, 'created_at': datetime.datetime(2025, 9, 9, 12, 2, 57), 'result': '0.045279369160612475', 'result_long': None, 'result_double': None}] Qualite : 0.045279369160612475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26682215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682215_09-09-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26682215 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_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, 'pht': 3726}}" where mtr_portfolio_id = 26682215 and dashboard_run_id = 2264425 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`=26682215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939859, 0.045279369160612475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, '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 = 26682684 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': 3684038, 'mtr_portfolio_id': 26682684, 'created_at': datetime.datetime(2025, 9, 9, 12, 14, 59), 'result': '0.0514705348929829', 'result_long': None, 'result_double': None}] Qualite : 0.0514705348929829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26682684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26682684 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_P26682684_09-09-2025_12_15_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, 'pht': 3726}}" where mtr_portfolio_id = 26682684 and dashboard_run_id = 2264425 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`=26682684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14939860, 0.0514705348929829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_15_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, '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 (26665951,26666470,26666997,26667314,26668399,26668763,26669124,26669820,26670286,26670744,26671134,26671697,26672133,26672645,26673061,26674196,26674397,26674770,26678188,26678700,26679249,26679775,26680309,26681052,26681532,26682215,26682684) result : ((1382694087,), (1382694183,), (1382694245,), (1382694319,), (1382694895,), (1382694983,), (1382695070,), (1382695164,), (1382695818,), (1382695895,), (1382695984,), (1382696065,), (1382696130,), (1382696190,), (1382696400,), (1382696407,), (1382696438,), (1382696470,), (1382696837,), (1382696868,), (1382696928,), (1382696966,), (1382696999,), (1382697040,), (1382697100,), (1382697146,), (1382697174,), (1382697194,), (1382697215,), (1382697218,), (1382697224,), (1382697271,), (1382697272,), (1382697291,), (1382697326,), (1382697385,), (1382697470,), (1382697558,), (1382697652,), (1382698439,), (1382698441,), (1382698443,), (1382698446,), (1382698451,), (1382698455,), (1382698698,), (1382698753,), (1382698793,), (1382698825,), (1382698855,), (1382698894,), (1382698911,), (1382698928,), (1382698938,), (1382698948,), (1382698964,), (1382699012,), (1382699014,), (1382699017,), (1382699021,), (1382699030,), (1382699038,), (1382699054,), (1382699056,), (1382699058,), (1382699060,), (1382699061,), (1382699073,), (1382699077,), (1382699081,), (1382699083,), (1382699089,), (1382699095,), (1382699099,), (1382699104,), (1382699110,), (1382699281,), (1382699199,), (1382699230,), (1382699263,), (1382699321,), (1382699322,), (1382699324,), (1382699328,), (1382699395,), (1382699396,), (1382699398,), (1382699403,), (1382699429,), (1382699433,), (1382699438,), (1382699441,), (1382699466,), (1382699467,), (1382699468,), (1382699473,), (1382699477,), (1382699484,), (1382699612,), (1382699647,), (1382699675,), (1382699722,), (1382700012,), (1382700045,), (1382700074,), (1382700103,), (1382700433,), (1382700465,), (1382700502,), (1382700533,), (1382700741,), (1382700750,), (1382700754,), (1382700756,), (1382700958,), (1382700969,), (1382700971,), (1382700974,), (1382700978,), (1382700981,), (1382701248,), (1382701333,), (1382701237,), (1382701240,), (1382701241,), (1382701244,), (1382701310,), (1382701311,), (1382701313,), (1382701318,), (1382701321,), (1382701324,), (1382701330,), (1382701341,), (1382701347,), (1382701362,), (1382701364,), (1382701366,), (1382701369,), (1382701375,), (1382701408,), (1382701411,), (1382701412,), (1382701416,), (1382701419,), (1382701439,), (1382701441,), (1382701449,), (1382701453,), (1382701463,), (1382701520,), (1382701522,), (1382701525,), (1382701530,), (1382701549,), (1382701552,), (1382701555,), (1382701589,), (1382701591,), (1382701592,), (1382701595,), (1382701616,), (1382701617,), (1382701619,), (1382701623,), (1382701626,), (1382701631,), (1382701641,), (1382701642,), (1382701643,), (1382701645,), (1382701651,), (1382701663,), (1382701668,), (1382701673,), (1382701677,), (1382701680,), (1382701685,), (1382701689,), (1382701690,), (1382701692,), (1382701694,), (1382701696,), (1382701707,), (1382701710,), (1382701714,), (1382701716,), (1382701718,), (1382701720,), (1382701734,), (1382701741,), (1382701744,), (1382701747,), (1382701749,), (1382701751,), (1382701762,), (1382701769,), (1382701773,), (1382701777,), (1382701784,), (1382701755,), (1382701758,), (1382701791,), (1382701794,), (1382701798,), (1382701802,), (1382701805,), (1382701808,), (1382701828,), (1382701830,), (1382701832,), (1382701835,), (1382701841,), (1382701854,), (1382701856,), (1382701908,), (1382701922,), (1382701925,), (1382701929,), (1382701933,), (1382701960,), (1382701962,), (1382701966,), (1382701971,), (1382701975,), (1382702002,), (1382702004,), (1382702005,), (1382702007,), (1382702013,), (1382702035,), (1382702062,), (1382702067,), (1382702072,), (1382702076,), (1382702080,), (1382702087,), (1382702090,), (1382702092,), (1382702097,), (1382702101,), (1382702115,), (1382702119,), (1382702123,), (1382702126,), (1382702156,), (1382702160,), (1382702162,), (1382702165,), (1382702185,), (1382702187,), (1382702189,), (1382702192,), (1382702195,), (1382702218,), (1382702219,), (1382702230,), (1382702237,), (1382702241,), (1382702246,), (1382706399,), (1382706429,), (1382706431,), (1382706513,), (1382706515,), (1382706516,), (1382706519,), (1382706522,), (1382706544,), (1382706545,), (1382706548,), (1382706552,), (1382706575,), (1382706580,), (1382706585,), (1382706589,), (1382706595,), (1382706609,), (1382706615,), (1382706619,), (1382706636,), (1382706637,), (1382706638,), (1382706640,), (1382706645,), (1382706672,), (1382706674,), (1382706676,), (1382706680,), (1382706685,), (1382706700,), (1382706703,), (1382706706,), (1382706708,), (1382706735,), (1382706765,), (1382706769,), (1382706774,), (1382706805,), (1382706808,), (1382706810,), (1382706813,), (1382706872,), (1382706874,), (1382706876,), (1382706880,), (1382706885,), (1382706914,), (1382706915,), (1382706917,), (1382706920,), (1382706923,), (1382706940,), (1382706941,), (1382706943,), (1382706946,), (1382706980,), (1382706963,), (1382706965,), (1382706968,), (1382706971,), (1382706976,), (1382706990,), (1382706992,), (1382706995,), (1382706999,), (1382707003,), (1382707006,), (1382707022,), (1382707028,), (1382707029,), (1382707109,), (1382707112,), (1382707116,), (1382707120,), (1382707124,), (1382707146,), (1382707147,), (1382707148,), (1382707150,), (1382707155,), (1382707174,), (1382707397,), (1382707425,), (1382707452,), (1382707483,), (1382707513,), (1382707747,), (1382707773,), (1382707885,), (1382707887,), (1382707888,), (1382708041,), (1382708071,), (1382708103,), (1382708139,), (1382708321,), (1382708324,), (1382708327,), (1382708343,), (1382708345,), (1382708348,), (1382708372,), (1382708375,), (1382708378,), (1382708389,), (1382708419,), (1382708421,), (1382708423,), (1382708745,), (1382708775,), (1382708807,), (1382708837,), (1382708869,), (1382709572,), (1382709404,), (1382709461,), (1382709516,), (1382709816,), (1382709853,), (1382709878,), (1382710151,), (1382710173,), (1382710205,), (1382710216,), (1382710238,), (1382710240,), (1382710248,), (1382710250,), (1382710251,), (1382710254,), (1382710257,), (1382710261,), (1382710266,), (1382710391,), (1382710422,), (1382710454,), (1382710493,), (1382710527,), (1382710561,), (1382710684,), (1382710715,), (1382711170,), (1382711231,), (1382711643,), (1382711682,), (1382711742,), (1382711773,), (1382712106,), (1382712136,), (1382712141,), (1382712162,), (1382712216,), (1382712277,), (1382712279,), (1382712282,), (1382712286,), (1382712317,), (1382712333,), (1382712337,), (1382712342,), (1382712347,), (1382712352,), (1382712568,), (1382712599,), (1382712630,), (1382712663,), (1382712694,), (1382712729,), (1382712836,), (1382712861,), (1382712863,), (1382712865,), (1382712931,), (1382712965,), (1382712974,), (1382712986,), (1382713010,), (1382713049,), (1382713052,), (1382713058,), (1382713062,), (1382713064,), (1382713066,), (1382713103,), (1382713269,), (1382713304,), (1382713423,), (1382713077,), (1382713087,), (1382713094,), (1382713099,), (1382713102,), (1382713125,), (1382713159,), (1382713190,), (1382713231,), (1382713511,), (1382713541,), (1382713571,), (1382713878,), (1382713908,), (1382713938,), (1382713942,), (1382713946,), (1382713975,), (1382713977,), (1382713979,), (1382713982,), (1382713990,), (1382714291,), (1382714323,), (1382714353,), (1382714477,), (1382714478,), (1382714479,), (1382714481,), (1382714500,), (1382714501,), (1382714505,), (1382714510,), (1382714514,), (1382714517,), (1382714522,), (1382714532,), (1382714544,), (1382714549,), (1382714559,), (1382714561,), (1382714563,), (1382714566,), (1382714570,), (1382714598,), (1382714600,), (1382714602,), (1382714605,), (1382714632,), (1382714634,), (1382714637,), (1382714641,), (1382714673,), (1382714676,), (1382714679,), (1382714683,), (1382714686,), (1382714704,), (1382714707,), (1382714710,), (1382714744,), (1382714745,), (1382714746,), (1382714749,), (1382714804,), (1382714802,), (1382714803,), (1382714827,), (1382714830,), (1382714886,), (1382714887,), (1382714888,), (1382714892,), (1382714896,), (1382714924,), (1382714926,), (1382714928,), (1382714931,), (1382714935,), (1382714941,), (1382714965,), (1382714970,), (1382714975,), (1382714981,), (1382714985,), (1382714989,), (1382715003,), (1382715006,), (1382715007,), (1382715008,), (1382715013,), (1382715017,), (1382715027,), (1382715030,), (1382715034,), (1382715037,), (1382715047,), (1382715060,), (1382715074,), (1382715112,), (1382715115,), (1382715117,), (1382715120,), (1382715142,), (1382715144,), (1382715147,), (1382715150,), (1382715190,), (1382715192,), (1382715215,), (1382715218,), (1382715222,), (1382715228,), (1382715257,), (1382715263,), (1382715276,), (1382715299,), (1382715300,), (1382715301,), (1382715305,), (1382715333,), (1382715336,), (1382715338,), (1382715341,), (1382715346,), (1382715349,), (1382715363,), (1382715368,), (1382715373,), (1382715379,), (1382715383,), (1382715388,), (1382715393,), (1382715395,), (1382715414,), (1382715398,), (1382715401,), (1382715405,), (1382715408,), (1382715411,), (1382715449,), (1382715451,), (1382715453,), (1382715455,), (1382715459,), (1382715463,), (1382715485,), (1382715487,), (1382715488,), (1382715500,), (1382715513,), (1382715530,), (1382715533,), (1382715535,), (1382715567,), (1382715568,), (1382715569,), (1382715571,), (1382715591,), (1382715595,), (1382715600,), (1382715619,), (1382715620,), (1382715621,), (1382715633,), (1382715636,), (1382715639,), (1382715642,), (1382715649,), (1382715650,), (1382715659,), (1382715661,), (1382715663,), (1382715666,), (1382715681,), (1382715684,), (1382715689,), (1382715696,), (1382715702,), (1382715711,), (1382715713,), (1382715715,), (1382715728,), (1382715730,), (1382715742,), (1382715807,), (1382715810,), (1382715813,), (1382715815,), (1382716517,), (1382716576,), (1382716637,), (1382716691,), (1382716752,), (1382716895,), (1382716947,), (1382717004,), (1382717059,), (1382717386,), (1382718157,), (1382717203,), (1382717254,), (1382717293,), (1382717346,), (1382717714,), (1382717744,), (1382717775,), (1382717809,), (1382717841,), (1382717896,), (1382718081,), (1382718125,), (1382718295,), (1382718352,), (1382718631,), (1382718658,), (1382718687,), (1382718706,), (1382718707,), (1382718735,), (1382718769,), (1382718962,), (1382718993,), (1382719024,), (1382719081,), (1382719084,), (1382719087,), (1382719100,), (1382719105,), (1382719120,), (1382719154,), (1382719156,), (1382719160,), (1382719162,), (1382719164,), (1382719168,), (1382719186,), (1382719219,), (1382719225,), (1382719229,), (1382719233,), (1382719237,), (1382719245,), (1382719247,), (1382719251,), (1382719269,), (1382719272,), (1382719275,), (1382719279,), (1382719282,), (1382719292,), (1382719295,), (1382719300,), (1382719304,), (1382719313,), (1382719315,), (1382719318,), (1382719332,), (1382719335,), (1382719337,), (1382719339,), (1382719341,), (1382719353,), (1382719355,), (1382719358,), (1382719363,), (1382719366,), (1382719369,), (1382719385,), (1382719387,), (1382719389,), (1382719404,), (1382719405,), (1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,), (1382719710,), (1382719714,), (1382719718,), (1382719722,), (1382719728,), (1382719732,), (1382719739,), (1382719741,), (1382719743,), (1382719745,), (1382719774,), (1382719779,), (1382719784,), (1382719788,), (1382719797,), (1382719812,), (1382719844,), (1382719846,), (1382719848,), (1382719854,), (1382719856,), (1382719858,), (1382719859,), (1382719860,), (1382719861,), (1382719870,), (1382719902,), (1382719904,), (1382719905,), (1382719909,), (1382719912,), (1382719936,), (1382719929,), (1382719930,), (1382719932,), (1382719934,), (1382719955,), (1382719958,), (1382719960,), (1382719963,), (1382719966,), (1382719977,), (1382719983,), (1382719987,), (1382719990,), (1382719993,), (1382720000,), (1382720007,), (1382720009,), (1382720013,), (1382720016,), (1382720019,), (1382720021,), (1382720033,), (1382720039,), (1382720043,), (1382720047,), (1382720055,), (1382720060,), (1382720063,), (1382720070,), (1382720077,), (1382720087,), (1382720090,), (1382720092,), (1382720093,), (1382720095,), (1382720097,), (1382720101,), (1382720108,), (1382720117,), (1382720174,), (1382720194,), (1382720196,), (1382720198,), (1382720200,), (1382720202,), (1382720207,), (1382720208,), (1382720210,), (1382720219,), (1382720240,), (1382720241,), (1382720242,), (1382720245,), (1382720248,), (1382720251,), (1382720267,), (1382720271,), (1382720322,), (1382720328,), (1382720330,), (1382720343,), (1382720385,), (1382720386,), (1382720389,), (1382720392,), (1382720397,), (1382720406,), (1382720412,), (1382720413,), (1382720414,), (1382720415,), (1382720418,), (1382720421,), (1382720429,), (1382720478,), (1382720464,), (1382720472,), (1382720475,), (1382720490,), (1382720494,), (1382720502,), (1382720507,), (1382720527,), (1382720554,), (1382720556,), (1382720559,), (1382720562,), (1382720564,), (1382720577,), (1382720579,), (1382720582,), (1382720611,), (1382720612,), (1382720613,), (1382720615,), (1382720620,), (1382720630,), (1382720632,), (1382720634,), (1382720638,), (1382720641,), (1382720645,), (1382720671,), (1382720687,), (1382720705,), (1382720719,), (1382720724,), (1382720728,), (1382720735,), (1382720739,), (1382720741,), (1382720753,), (1382720755,), (1382720758,), (1382720773,), (1382720777,), (1382720781,), (1382720803,), (1382720805,), (1382720809,), (1382720812,), (1382720816,), (1382720818,), (1382720830,), (1382720853,), (1382720882,), (1382720910,), (1382721214,), (1382721234,), (1382721263,), (1382721580,), (1382721604,), (1382721630,), (1382721655,), (1382721681,), (1382721706,), (1382721822,), (1382721851,), (1382721877,), (1382721902,), (1382721929,), (1382722069,), (1382722015,), (1382722043,), (1382722317,), (1382722344,), (1382722371,), (1382722396,), (1382722423,), (1382722787,), (1382722864,), (1382722914,), (1382722974,), (1382723027,), (1382723079,), (1382723162,), (1382723207,), (1382723267,), (1382723321,), (1382723449,), (1382723478,), (1382723505,), (1382723541,), (1382723569,), (1382723641,), (1382723642,), (1382723661,), (1382723664,), (1382723693,), (1382723695,), (1382723722,), (1382723723,), (1382723753,), (1382723756,), (1382723782,), (1382723785,), (1382723832,), (1382723864,), (1382723872,), (1382723902,), (1382723915,), (1382723919,), (1382723923,), (1382723924,), (1382723926,), (1382723930,), (1382723936,), (1382723947,), (1382723951,), (1382723969,), (1382727871,), (1382727904,), (1382727940,), (1382727941,), (1382727967,), (1382727970,), (1382727974,), (1382727995,), (1382728025,), (1382728028,), (1382728031,), (1382728035,), (1382728039,), (1382728057,), (1382728060,), (1382728063,), (1382728066,), (1382728070,), (1382728085,), (1382728088,), (1382728105,), (1382728107,), (1382728111,), (1382728137,), (1382728140,), (1382728142,), (1382728147,), (1382728151,), (1382728157,), (1382728159,), (1382728162,), (1382728166,), (1382728171,), (1382728174,), (1382728183,), (1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,), (1382728699,), (1382728703,), (1382728708,), (1382728712,), (1382728717,), (1382728723,), (1382728759,), (1382728745,), (1382728751,), (1382728755,), (1382728779,), (1382728781,), (1382728783,), (1382728785,), (1382728788,), (1382728798,), (1382728801,), (1382728806,), (1382728809,), (1382728817,), (1382728822,), (1382728829,), (1382728836,), (1382728848,), (1382728852,), (1382728855,), (1382728870,), (1382728873,), (1382728916,), (1382728964,), (1382728967,), (1382729036,), (1382742279,), (1382747835,), (1382747925,), (1382748668,), (1382748729,), (1382748779,), (1382748811,), (1382749453,), (1382749539,), (1382749609,), (1382749675,), (1382749712,), (1382750004,), (1382750006,), (1382750009,), (1382750012,), (1382750031,), (1382750034,), (1382750038,), (1382750043,), (1382750060,), (1382750062,), (1382750065,), (1382750069,), (1382750074,), (1382750090,), (1382750092,), (1382750094,), (1382750097,), (1382750101,), (1382750106,), (1382750122,), (1382750124,), (1382750127,), (1382750131,), (1382750149,), (1382750151,), (1382750157,), (1382750163,), (1382750168,), (1382750186,), (1382750188,), (1382750191,), (1382750195,), (1382750198,), (1382750216,), (1382750221,), (1382750224,), (1382750228,), (1382750230,), (1382750243,), (1382750245,), (1382750247,), (1382750252,), (1382750257,), (1382750261,), (1382750276,), (1382750281,), (1382750286,), (1382750289,), (1382750293,), (1382750302,), (1382750305,), (1382750309,), (1382750314,), (1382750316,), (1382750320,), (1382750336,), (1382750339,), (1382750340,), (1382750345,), (1382750351,), (1382750354,), (1382750390,), (1382750373,), (1382750376,), (1382750379,), (1382750383,), (1382750386,), (1382750400,), (1382750402,), (1382750405,), (1382750409,), (1382750412,), (1382750449,), (1382750451,), (1382750454,), (1382750458,), (1382750478,), (1382750482,), (1382750487,), (1382750520,), (1382750523,), (1382750526,), (1382750530,), (1382750534,), (1382750545,), (1382750552,), (1382750555,), (1382750558,), (1382750560,), (1382750570,), (1382750574,), (1382750577,), (1382750581,), (1382750598,), (1382750600,), (1382750604,), (1382750639,), (1382750642,), (1382750646,), (1382750651,), (1382750658,), (1382750663,), (1382750676,), (1382750678,), (1382750682,), (1382750688,), (1382750704,), (1382750705,), (1382750707,), (1382750712,), (1382750715,), (1382750729,), (1382750731,), (1382750733,), (1382750739,), (1382750764,), (1382750767,), (1382750771,), (1382750774,), (1382750777,), (1382750798,), (1382750800,), (1382750802,), (1382750863,), (1382750872,), (1382750873,), (1382750878,), (1382750879,), (1382750883,), (1382750884,), (1382750887,), (1382750888,), (1382750898,), (1382750896,), (1382750924,), (1382750926,), (1382750929,), (1382750933,), (1382750975,), (1382750979,), (1382750983,), (1382750987,), (1382750992,), (1382751005,), (1382751010,), (1382751012,), (1382751033,), (1382751036,), (1382751078,), (1382751080,), (1382751108,), (1382751110,), (1382751114,), (1382751119,), (1382751208,), (1382751209,), (1382751211,), (1382751213,), (1382751231,), (1382751236,), (1382751241,), (1382751244,), (1382751249,), (1382751266,), (1382751269,), (1382751272,), (1382751276,), (1382751308,), (1382751310,), (1382751312,), (1382751315,), (1382751340,), (1382751342,), (1382751344,), (1382751348,), (1382751351,), (1382751357,), (1382751367,), (1382751368,), (1382751369,), (1382751372,), (1382751405,), (1382751407,), (1382751409,), (1382751422,), (1382751447,), (1382751449,), (1382751451,), (1382751454,), (1382751472,), (1382751638,), (1382751618,), (1382751625,), (1382751628,), (1382751632,), (1382751658,), (1382751662,), (1382751707,), (1382751710,), (1382751715,), (1382751719,), (1382751724,), (1382751737,), (1382751741,), (1382751745,), (1382751751,), (1382751755,), (1382751760,), (1382751783,), (1382751786,), (1382751790,), (1382751796,), (1382751856,), (1382751859,), (1382751861,), (1382752193,), (1382752197,), (1382752201,), (1382752208,), (1382752250,), (1382752253,), (1382752256,), (1382752283,), (1382752286,), (1382753295,), (1382753379,), (1382753470,), (1382753556,), (1382753653,), (1382753747,), (1382754098,), (1382754155,), (1382754193,), (1382754225,), (1382754679,), (1382754396,), (1382754458,), (1382754499,), (1382754540,), (1382754622,), (1382754916,), (1382754922,), (1382754939,), (1382754964,), (1382754967,), (1382755235,), (1382755269,), (1382755327,), (1382755781,), (1382755782,), (1382755783,), (1382755797,), (1382755830,), (1382755864,), (1382755944,), (1382755946,), (1382755975,), (1382756027,), (1382756073,), (1382756102,), (1382756279,), (1382756285,), (1382756292,), (1382756385,), (1382756389,), (1382756395,), (1382756399,), (1382756403,), (1382756407,), (1382756413,), (1382756415,), (1382756422,), (1382756424,), (1382756426,), (1382756430,), (1382756434,), (1382756440,), (1382756442,), (1382756444,), (1382756449,), (1382756452,), (1382756464,), (1382756466,), (1382756476,), (1382756480,), (1382756488,), (1382756568,), (1382756571,), (1382756574,), (1382756578,), (1382756658,), (1382756663,), (1382756664,), (1382756681,), (1382756683,), (1382756686,), (1382756691,), (1382756699,), (1382756723,), (1382756725,), (1382756729,), (1382756733,), (1382756736,), (1382756751,), (1382756753,), (1382756755,), (1382756796,), (1382756858,), (1382756782,), (1382756785,), (1382756787,), (1382756793,), (1382756813,), (1382756814,), (1382756816,), (1382756820,), (1382756824,), (1382756829,), (1382756847,), (1382756850,), (1382756855,), (1382756862,), (1382756866,), (1382756870,), (1382756873,), (1382756874,), (1382756875,), (1382756881,), (1382756884,), (1382756886,), (1382756889,), (1382756891,), (1382756899,), (1382756902,), (1382756917,), (1382756920,), (1382756923,), (1382756982,), (1382757014,), (1382757015,), (1382757051,), (1382757053,), (1382757055,), (1382757058,), (1382757073,), (1382757075,), (1382757076,), (1382757079,), (1382757083,), (1382757096,), (1382757098,), (1382757100,), (1382757105,), (1382757109,), (1382757140,), (1382757143,), (1382757144,), (1382757178,), (1382757179,), (1382757182,), (1382757185,), (1382757189,), (1382757192,), (1382757197,), (1382757198,), (1382757202,), (1382757205,), (1382757207,), (1382757209,), (1382757212,), (1382757218,), (1382757219,), (1382757220,), (1382757222,), (1382757241,), (1382757247,), (1382757248,), (1382757308,), (1382757277,), (1382757279,), (1382757283,), (1382757614,), (1382757646,), (1382757671,), (1382757675,), (1382757678,), (1382757956,), (1382757995,), (1382758025,), (1382758069,), (1382758431,), (1382758523,), (1382758553,), (1382758584,), (1382758760,), (1382758763,), (1382758790,), (1382758820,), (1382758853,), (1382758883,), (1382759223,), (1382759279,), (1382759331,), (1382759385,), (1382759785,), (1382759841,), (1382759896,), (1382759952,), (1382760007,), (1382760055,), (1382760160,), (1382760188,), (1382760220,), (1382760248,), (1382760368,), (1382760416,), (1382760760,), (1382760789,), (1382760796,), (1382760802,), (1382760805,), (1382760822,), (1382760825,), (1382760827,), (1382760831,), (1382760853,), (1382761116,), (1382761148,), (1382761180,), (1382761209,), (1382761393,), (1382761395,), (1382761397,), (1382761582,), (1382761583,), (1382761585,), (1382761589,), (1382761592,), (1382761595,), (1382761615,), (1382761623,), (1382761651,), (1382761683,), (1382761953,), (1382761978,), (1382761982,), (1382761985,), (1382761988,), (1382762094,), (1382762171,), (1382762020,), (1382762025,), (1382762054,), (1382762089,), (1382762091,), (1382762104,), (1382762113,), (1382762121,), (1382762143,), (1382762145,), (1382762147,), (1382762157,), (1382762162,), (1382762167,), (1382762169,), (1382762181,), (1382762184,), (1382762187,), (1382762192,), (1382762194,), (1382762196,), (1382762200,), (1382762216,), (1382762219,), (1382762221,), (1382762247,), (1382762251,), (1382762259,), (1382762285,), (1382762291,), (1382762294,), (1382762297,), (1382762300,), (1382762308,), (1382762309,), (1382762310,), (1382762314,), (1382762335,), (1382762339,), (1382762342,), (1382762347,), (1382762351,), (1382762354,), (1382762365,), (1382762367,), (1382762370,), (1382762374,), (1382762376,), (1382762379,), (1382762398,), (1382762400,), (1382762403,), (1382762406,), (1382762417,), (1382762419,), (1382762422,), (1382762425,), (1382762428,), (1382762431,), (1382762466,), (1382762474,), (1382762481,), (1382762484,), (1382762503,), (1382762532,), (1382762565,), (1382762596,), (1382762632,), (1382762691,), (1382763694,), (1382763746,), (1382763795,), (1382764061,), (1382764062,), (1382764114,), (1382764117,), (1382764164,), (1382764170,), (1382764229,), (1382764250,), (1382764295,), (1382764331,), (1382764554,), (1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09092025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26682684]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] map_info['map_portfolio_photo'] : {26682684: [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913, 1382764876, 1382764874, 1382764872, 1382764846, 1382764820, 1382764817, 1382764813, 1382764796, 1382764793, 1382764787, 1382764784, 1382764779, 1382764774, 1382764770, 1382764765, 1382764745, 1382764743, 1382764740, 1382764708, 1382764706, 1382764704, 1382764688, 1382764686, 1382764684, 1382764682, 1382764673, 1382764671, 1382764667, 1382764665, 1382764663, 1382764662, 1382764648, 1382764644, 1382764641, 1382764640, 1382764639, 1382764544, 1382764517, 1382764489, 1382764458, 1382764456]} final : True mtd_id 4302 list_pids : [1382765008, 1382764987, 1382764985, 1382764945, 1382764943, 1382764941, 1382764938, 1382764936, 1382764925, 1382764922, 1382764917, 1382764915, 1382764913] Looping around the photos to save general results len do output : 1 /26682684Didn'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, '3684038') ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038') ('4302', None, None, None, None, None, None, None, '3684038') ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '26682684', 'None', None, None, None, None, '3684038'), ('4302', '26682684', '1382765008', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764987', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764985', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764945', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764943', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764941', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764938', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764936', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764925', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764922', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764917', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764915', None, None, None, None, None, '3684038'), ('4302', '26682684', '1382764913', None, None, None, None, None, '3684038')] time used for this insertion : 0.021263837814331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4024834632873535 time spend to save output : 0.021504878997802734 total time spend for step 5 : 2.4239883422851562 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 (3684038) 2.37user 2.82system 0:13.94elapsed 37%CPU (0avgtext+0avgdata 161904maxresident)k 3368inputs+15664outputs (22major+70812minor)pagefaults 0swaps