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 : 692627 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 (4057007) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4057007) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599377 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4057007'] with mtr_portfolio_ids : ['28599377'] and first list_photo_ids : [] new path : /proc/692627/ Name: python3 Umask: 0002 State: R (running) Tgid: 692627 Ngid: 0 Pid: 692627 PPid: 692626 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 692627 NSpid: 692627 NSpgid: 691049 NSsid: 691049 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 101168 kB VmRSS: 101168 kB RssAnon: 59908 kB RssFile: 41260 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 47 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '692627', 'Ngid': '0', 'Pid': '692627', 'PPid': '692626', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '692627', 'NSpid': '692627', 'NSpgid': '691049', 'NSsid': '691049', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '101168 kB', 'VmRSS': '101168 kB', 'RssAnon': '59908 kB', 'RssFile': '41260 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '47', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '692627', '1106908', '0', '1106884', '865636', '101168', b'', 'marlene', '4057007') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28599377) 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 (4057007 ) ) 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 (28599377) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394840600, 'portfolio_id': 28599377}, {'photo_id': 1394840567, 'portfolio_id': 28599377}, {'photo_id': 1394840531, 'portfolio_id': 28599377}, {'photo_id': 1394840512, 'portfolio_id': 28599377}, {'photo_id': 1394840510, 'portfolio_id': 28599377}, {'photo_id': 1394840470, 'portfolio_id': 28599377}, {'photo_id': 1394840467, 'portfolio_id': 28599377}, {'photo_id': 1394840465, 'portfolio_id': 28599377}, {'photo_id': 1394840453, 'portfolio_id': 28599377}, {'photo_id': 1394840386, 'portfolio_id': 28599377}, {'photo_id': 1394840381, 'portfolio_id': 28599377}, {'photo_id': 1394840378, 'portfolio_id': 28599377}, {'photo_id': 1394840357, 'portfolio_id': 28599377}, {'photo_id': 1394840308, 'portfolio_id': 28599377}, {'photo_id': 1394840288, 'portfolio_id': 28599377}, {'photo_id': 1394840286, 'portfolio_id': 28599377}, {'photo_id': 1394840285, 'portfolio_id': 28599377}, {'photo_id': 1394840259, 'portfolio_id': 28599377}, {'photo_id': 1394840217, 'portfolio_id': 28599377}, {'photo_id': 1394840037, 'portfolio_id': 28599377}, {'photo_id': 1394839972, 'portfolio_id': 28599377}, {'photo_id': 1394839930, 'portfolio_id': 28599377}, {'photo_id': 1394839914, 'portfolio_id': 28599377}, {'photo_id': 1394839908, 'portfolio_id': 28599377}, {'photo_id': 1394839904, 'portfolio_id': 28599377}, {'photo_id': 1394839850, 'portfolio_id': 28599377}, {'photo_id': 1394839840, 'portfolio_id': 28599377}, {'photo_id': 1394839836, 'portfolio_id': 28599377}, {'photo_id': 1394839833, 'portfolio_id': 28599377}, {'photo_id': 1394839829, 'portfolio_id': 28599377}, {'photo_id': 1394839787, 'portfolio_id': 28599377}, {'photo_id': 1394839779, 'portfolio_id': 28599377}, {'photo_id': 1394839761, 'portfolio_id': 28599377}, {'photo_id': 1394839743, 'portfolio_id': 28599377}, {'photo_id': 1394839740, 'portfolio_id': 28599377}, {'photo_id': 1394839735, 'portfolio_id': 28599377}, {'photo_id': 1394839722, 'portfolio_id': 28599377}, {'photo_id': 1394839691, 'portfolio_id': 28599377}, {'photo_id': 1394839659, 'portfolio_id': 28599377}, {'photo_id': 1394839368, 'portfolio_id': 28599377}, {'photo_id': 1394839333, 'portfolio_id': 28599377}, {'photo_id': 1394839292, 'portfolio_id': 28599377}, {'photo_id': 1394839257, 'portfolio_id': 28599377}, {'photo_id': 1394839232, 'portfolio_id': 28599377}, {'photo_id': 1394839228, 'portfolio_id': 28599377}, {'photo_id': 1394839178, 'portfolio_id': 28599377}, {'photo_id': 1394839176, 'portfolio_id': 28599377}, {'photo_id': 1394839174, 'portfolio_id': 28599377}, {'photo_id': 1394839171, 'portfolio_id': 28599377}, {'photo_id': 1394839071, 'portfolio_id': 28599377}, {'photo_id': 1394839039, 'portfolio_id': 28599377}, {'photo_id': 1394839003, 'portfolio_id': 28599377}, {'photo_id': 1394838967, 'portfolio_id': 28599377}, {'photo_id': 1394838962, 'portfolio_id': 28599377}, {'photo_id': 1394838960, 'portfolio_id': 28599377}, {'photo_id': 1394838937, 'portfolio_id': 28599377}, {'photo_id': 1394838934, 'portfolio_id': 28599377}, {'photo_id': 1394838933, 'portfolio_id': 28599377}, {'photo_id': 1394838932, 'portfolio_id': 28599377}, {'photo_id': 1394838826, 'portfolio_id': 28599377}, {'photo_id': 1394838824, 'portfolio_id': 28599377}, {'photo_id': 1394838774, 'portfolio_id': 28599377}, {'photo_id': 1394838723, 'portfolio_id': 28599377}, {'photo_id': 1394838692, 'portfolio_id': 28599377}, {'photo_id': 1394838640, 'portfolio_id': 28599377}, {'photo_id': 1394838350, 'portfolio_id': 28599377}, {'photo_id': 1394838347, 'portfolio_id': 28599377}, {'photo_id': 1394838343, 'portfolio_id': 28599377}, {'photo_id': 1394838338, 'portfolio_id': 28599377}, {'photo_id': 1394838080, 'portfolio_id': 28599377}, {'photo_id': 1394838024, 'portfolio_id': 28599377}, {'photo_id': 1394837964, 'portfolio_id': 28599377}, {'photo_id': 1394837901, 'portfolio_id': 28599377}] map_portfolio_id_photo_id: {28599377: [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829, 1394839787, 1394839779, 1394839761, 1394839743, 1394839740, 1394839735, 1394839722, 1394839691, 1394839659, 1394839368, 1394839333, 1394839292, 1394839257, 1394839232, 1394839228, 1394839178, 1394839176, 1394839174, 1394839171, 1394839071, 1394839039, 1394839003, 1394838967, 1394838962, 1394838960, 1394838937, 1394838934, 1394838933, 1394838932, 1394838826, 1394838824, 1394838774, 1394838723, 1394838692, 1394838640, 1394838350, 1394838347, 1394838343, 1394838338, 1394838080, 1394838024, 1394837964, 1394837901]} ##### 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.016366243362426758 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Nov 17 10:14:55 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 (28599377) 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 : 28599377 get user id for portfolio 28599377 get sub ptf for main ptf 28599377, type 3726 and hashtags ['cartonnette', 'kraft', 'autre_refus', 'Carton_gris', 'plastique', 'flou', 'mal_croppe', 'papier', 'environnement', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal'] 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`=28599377 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','Carton_gris','plastique','flou','mal_croppe','papier','environnement','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=28599377 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','Carton_gris','plastique','flou','mal_croppe','papier','environnement','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28599377, 'sub_port_id': 28599428, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389407, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'Carton_gris': {'main_port_id': 28599377, 'sub_port_id': 28599429, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389408, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'Carton_brun': {'main_port_id': 28599377, 'sub_port_id': 28599430, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389409, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'mal_croppe': {'main_port_id': 28599377, 'sub_port_id': 28599431, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389410, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'kraft': {'main_port_id': 28599377, 'sub_port_id': 28599432, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389411, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28599377, 'sub_port_id': 28599433, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389412, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'metal': {'main_port_id': 28599377, 'sub_port_id': 28599434, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389413, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'environnement': {'main_port_id': 28599377, 'sub_port_id': 28599435, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389414, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'autre_refus': {'main_port_id': 28599377, 'sub_port_id': 28599436, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389415, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'papier': {'main_port_id': 28599377, 'sub_port_id': 28599437, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389416, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'cartonnette': {'main_port_id': 28599377, 'sub_port_id': 28599438, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389417, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}, 'plastique': {'main_port_id': 28599377, 'sub_port_id': 28599439, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389418, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599428 , 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=28599377 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 (28599428) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599429 , 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=28599377 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 (28599429) result : ((1394839089,), (1394839091,), (1394839224,), (1394839225,), (1394839527,), (1394839567,), (1394839824,), (1394839825,), (1394839900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599430 , 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=28599377 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 (28599430) result : ((1394839546,), (1394839580,), (1394839901,), (1394839902,), (1394840474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599431 , 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=28599377 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 (28599431) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599432 , 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=28599377 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 (28599432) result : ((1394839101,), (1394839826,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599433 , 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=28599377 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 (28599433) result : ((1394839074,), (1394839075,), (1394839076,), (1394839077,), (1394839078,), (1394839222,), (1394839223,), (1394839490,), (1394839817,), (1394839818,), (1394839819,), (1394839820,), (1394839821,), (1394840473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599434 , 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=28599377 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 (28599434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599435 , 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=28599377 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 (28599435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599436 , 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=28599377 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 (28599436) result : ((1394839080,), (1394839509,), (1394839511,), (1394839513,), (1394839515,), (1394839517,), (1394839565,), (1394839822,), (1394839899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599437 , 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=28599377 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 (28599437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599438 , 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=28599377 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 (28599438) result : ((1394839536,), (1394839572,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28599439 , 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=28599377 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 (28599439) result : ((1394839590,), (1394839592,), (1394839903,), (1394840478,), (1394840479,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28599377) result : ((1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) 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 (1394840600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28599377 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','Carton_gris','plastique','flou','mal_croppe','papier','environnement','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=28599377 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','autre_refus','Carton_gris','plastique','flou','mal_croppe','papier','environnement','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28599377, 'sub_port_id': 28599441, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389419, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'Carton_gris': {'main_port_id': 28599377, 'sub_port_id': 28599442, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389420, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'Carton_brun': {'main_port_id': 28599377, 'sub_port_id': 28599443, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389421, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'mal_croppe': {'main_port_id': 28599377, 'sub_port_id': 28599444, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389422, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'kraft': {'main_port_id': 28599377, 'sub_port_id': 28599445, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389423, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 28599377, 'sub_port_id': 28599446, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389424, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'metal': {'main_port_id': 28599377, 'sub_port_id': 28599447, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389425, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'environnement': {'main_port_id': 28599377, 'sub_port_id': 28599448, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389426, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'autre_refus': {'main_port_id': 28599377, 'sub_port_id': 28599449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389427, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'papier': {'main_port_id': 28599377, 'sub_port_id': 28599450, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389428, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'cartonnette': {'main_port_id': 28599377, 'sub_port_id': 28599451, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389429, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}, 'plastique': {'main_port_id': 28599377, 'sub_port_id': 28599452, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19389430, 'last_updated_at': datetime.datetime(2025, 11, 17, 10, 11, 12), 'last_updated_at_desc': datetime.datetime(2025, 11, 17, 10, 11, 12), 'last_updated_at_asc': datetime.datetime(2025, 11, 17, 10, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599441,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599442,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599444,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599431 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28599452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28599439 lien utilise dans velours : https://marlene.fotonower.com/velours/28599441,28599442,28599443,28599444,28599445,28599446,28599447,28599448,28599449,28599450,28599451,28599452?tags=flou,Carton_gris,Carton_brun,mal_croppe,kraft,Teint_Dans_La_Masse,metal,environnement,autre_refus,papier,cartonnette,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28599377]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] map_info['map_portfolio_photo'] : {28599377: [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829, 1394839787, 1394839779, 1394839761, 1394839743, 1394839740, 1394839735, 1394839722, 1394839691, 1394839659, 1394839368, 1394839333, 1394839292, 1394839257, 1394839232, 1394839228, 1394839178, 1394839176, 1394839174, 1394839171, 1394839071, 1394839039, 1394839003, 1394838967, 1394838962, 1394838960, 1394838937, 1394838934, 1394838933, 1394838932, 1394838826, 1394838824, 1394838774, 1394838723, 1394838692, 1394838640, 1394838350, 1394838347, 1394838343, 1394838338, 1394838080, 1394838024, 1394837964, 1394837901]} final : False mtd_id 4302 list_pids : [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] Looping around the photos to save general results len do output : 1 /28599377. 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, '4057007') ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 31 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, '28599377', "{'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439}", None, None, None, None, '4057007'), ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007')] time used for this insertion : 0.02041006088256836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4731767177581787 time spend to save output : 0.020811796188354492 total time spend for step 1 : 0.4939885139465332 step2:final Mon Nov 17 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (28599377) 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 28599377 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394838080,1394838024,1394837964,1394837901,1394838350,1394838347,1394838343,1394838338,1394838826,1394838824,1394838774,1394838723,1394838692,1394838640,1394838937,1394838934,1394838933,1394838932,1394839071,1394839039,1394839003,1394838967,1394838962,1394838960,1394839178,1394839176,1394839174,1394839171,1394839368,1394839333,1394839292,1394839257,1394839232,1394839228,1394839743,1394839740,1394839735,1394839722,1394839691,1394839659,1394839787,1394839779,1394839761,1394840386,1394839850,1394840381,1394839840,1394839836,1394840378,1394840037,1394839833,1394840357,1394839972,1394839930,1394839829,1394840308,1394839914,1394840288,1394840286,1394839908,1394840285,1394839904,1394840259,1394840217,1394840470,1394840467,1394840465,1394840453,1394840600,1394840567,1394840531,1394840512,1394840510); 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([28599377]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} new output for save of step final : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] map_info['map_portfolio_photo'] : {28599377: [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829, 1394839787, 1394839779, 1394839761, 1394839743, 1394839740, 1394839735, 1394839722, 1394839691, 1394839659, 1394839368, 1394839333, 1394839292, 1394839257, 1394839232, 1394839228, 1394839178, 1394839176, 1394839174, 1394839171, 1394839071, 1394839039, 1394839003, 1394838967, 1394838962, 1394838960, 1394838937, 1394838934, 1394838933, 1394838932, 1394838826, 1394838824, 1394838774, 1394838723, 1394838692, 1394838640, 1394838350, 1394838347, 1394838343, 1394838338, 1394838080, 1394838024, 1394837964, 1394837901]} final : False mtd_id 4302 list_pids : [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] Looping around the photos to save general results len do output : 30 /1394840600.Didn't retrieve data . /1394840567.Didn't retrieve data . /1394840531.Didn't retrieve data . /1394840512.Didn't retrieve data . /1394840510.Didn't retrieve data . /1394840470.Didn't retrieve data . /1394840467.Didn't retrieve data . /1394840465.Didn't retrieve data . /1394840453.Didn't retrieve data . /1394840386.Didn't retrieve data . /1394840381.Didn't retrieve data . /1394840378.Didn't retrieve data . /1394840357.Didn't retrieve data . /1394840308.Didn't retrieve data . /1394840288.Didn't retrieve data . /1394840286.Didn't retrieve data . /1394840285.Didn't retrieve data . /1394840259.Didn't retrieve data . /1394840217.Didn't retrieve data . /1394840037.Didn't retrieve data . /1394839972.Didn't retrieve data . /1394839930.Didn't retrieve data . /1394839914.Didn't retrieve data . /1394839908.Didn't retrieve data . /1394839904.Didn't retrieve data . /1394839850.Didn't retrieve data . /1394839840.Didn't retrieve data . /1394839836.Didn't retrieve data . /1394839833.Didn't retrieve data . /1394839829.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, '4057007') ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 90 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', '28599377', '1394840600', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840567', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840531', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840512', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840510', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840470', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840467', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840465', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840453', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840386', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840381', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840378', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840357', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840308', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840288', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840286', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840285', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840259', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840217', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394840037', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839972', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839930', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839914', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839908', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839904', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839850', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839840', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839836', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839833', '0.04753465016075036', None, None, None, None, '4057007'), ('4302', '28599377', '1394839829', '0.04753465016075036', None, None, None, None, '4057007')] time used for this insertion : 0.020650148391723633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07303977012634277 time spend to save output : 0.021702051162719727 total time spend for step 2 : 0.0947418212890625 step3:velours_tree Mon Nov 17 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {28599377: [{'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439}]} input_args_next_step : {28599377: ()} output_args : {28599377: [{'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439}]} args : 28599377 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 : ({'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28599377) 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([28599377]) 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.5539994239807129 time spend to save output : 5.698204040527344e-05 total time spend for step 3 : 0.5540564060211182 step4:send_mail_cod Mon Nov 17 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} input_args_next_step : {1394840600: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840600 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840567 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840531 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840512 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840510 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840470 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840467 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840465 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840453 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840386 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840381 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840378 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840357 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840308 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840288 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840286 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840285 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840259 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840217 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394840037 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839972 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839930 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839914 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839908 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839904 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839850 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839840 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839836 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839833 depend.output_id : 0 input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ()} output_args : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',)} args : 1394839829 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 : {28599377: [{'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439}]} input_args_next_step : {1394840600: ('0.04753465016075036',), 1394840567: ('0.04753465016075036',), 1394840531: ('0.04753465016075036',), 1394840512: ('0.04753465016075036',), 1394840510: ('0.04753465016075036',), 1394840470: ('0.04753465016075036',), 1394840467: ('0.04753465016075036',), 1394840465: ('0.04753465016075036',), 1394840453: ('0.04753465016075036',), 1394840386: ('0.04753465016075036',), 1394840381: ('0.04753465016075036',), 1394840378: ('0.04753465016075036',), 1394840357: ('0.04753465016075036',), 1394840308: ('0.04753465016075036',), 1394840288: ('0.04753465016075036',), 1394840286: ('0.04753465016075036',), 1394840285: ('0.04753465016075036',), 1394840259: ('0.04753465016075036',), 1394840217: ('0.04753465016075036',), 1394840037: ('0.04753465016075036',), 1394839972: ('0.04753465016075036',), 1394839930: ('0.04753465016075036',), 1394839914: ('0.04753465016075036',), 1394839908: ('0.04753465016075036',), 1394839904: ('0.04753465016075036',), 1394839850: ('0.04753465016075036',), 1394839840: ('0.04753465016075036',), 1394839836: ('0.04753465016075036',), 1394839833: ('0.04753465016075036',), 1394839829: ('0.04753465016075036',), 28599377: ()} output_args : {28599377: [{'flou': 28599428, 'Carton_gris': 28599429, 'Carton_brun': 28599430, 'mal_croppe': 28599431, 'kraft': 28599432, 'Teint_Dans_La_Masse': 28599433, 'metal': 28599434, 'environnement': 28599435, 'autre_refus': 28599436, 'papier': 28599437, 'cartonnette': 28599438, 'plastique': 28599439}]} args : 28599377 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 :31, first value : ('0.04753465016075036',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28599377) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1394840600,1394840567,1394840531,1394840512,1394840510,1394840470,1394840467,1394840465,1394840453,1394840386,1394840381,1394840378,1394840357,1394840308,1394840288,1394840286,1394840285,1394840259,1394840217,1394840037,1394839972,1394839930,1394839914,1394839908,1394839904,1394839850,1394839840,1394839836,1394839833,1394839829) Found this number of photos: 30 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394839829 begin to download photo : 1394839914 begin to download photo : 1394840286 begin to download photo : 1394840453 begin to download photo : 1394840567 download finish for photo 1394839914 begin to download photo : 1394839930 download finish for photo 1394839829 begin to download photo : 1394839833 download finish for photo 1394840453 begin to download photo : 1394840465 download finish for photo 1394840286 begin to download photo : 1394840288 download finish for photo 1394840567 begin to download photo : 1394840600 download finish for photo 1394839930 begin to download photo : 1394839972 download finish for photo 1394839833 begin to download photo : 1394839836 download finish for photo 1394840465 begin to download photo : 1394840467 download finish for photo 1394840288 begin to download photo : 1394840308 download finish for photo 1394840600 download finish for photo 1394839972 begin to download photo : 1394840037 download finish for photo 1394840467 begin to download photo : 1394840470 download finish for photo 1394839836 begin to download photo : 1394839840 download finish for photo 1394840308 begin to download photo : 1394840357 download finish for photo 1394840037 begin to download photo : 1394840217 download finish for photo 1394839840 begin to download photo : 1394839850 download finish for photo 1394840470 begin to download photo : 1394840510 download finish for photo 1394840357 begin to download photo : 1394840378 download finish for photo 1394840217 begin to download photo : 1394840259 download finish for photo 1394839850 begin to download photo : 1394839904 download finish for photo 1394840510 begin to download photo : 1394840512 download finish for photo 1394840378 begin to download photo : 1394840381 download finish for photo 1394840259 begin to download photo : 1394840285 download finish for photo 1394840512 begin to download photo : 1394840531 download finish for photo 1394839904 begin to download photo : 1394839908 download finish for photo 1394840381 begin to download photo : 1394840386 download finish for photo 1394839908 download finish for photo 1394840285 download finish for photo 1394840386 download finish for photo 1394840531 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette285994281763370897/ imagette285994311763370897/ length of list_filenames : 30 ; length of list_pids : 30 ; length of list_args : 30 results_Auto_P28599377_17-11-2025_10_14_57.pdf 28599428 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285994281763370897 28599431 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285994311763370897 28599432 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839101: '1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187222_0.png', 1394839826: '1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/c95b7a2b775e422bbaac8b6ba0a6c9fd_57302227.png change filename to text .imagette285994321763370897/ imagette285994321763370897/1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187222_0.png.png imagette285994321763370897/1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187222_0.png.png imagette285994341763370897/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/c95b7a2b775e422bbaac8b6ba0a6c9fd_14200855.png imagette285994321763370897 28599434 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285994341763370897 28599436 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839080: '1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187259_0.png', 1394839509: '1763370425_1259047_1394838937_15b2431f79ff679e9ba0fafa32437742_rle_crop_4036188120_0.png', 1394839511: '1763370425_1259047_1394838774_5065b8e9a1d4bea1d18190d01fa63e4e_rle_crop_4036188148_0.png', 1394839513: '1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188155_0.png', 1394839515: '1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188160_0.png', 1394839517: '1763370425_1259047_1394838692_03e93cd53ba9631a5f6b2cfb961cd274_rle_crop_4036188177_0.png', 1394839565: '1763370447_1261501_1394838343_0dcbd9833e63f95adf86df16cbb2633b_rle_crop_4036188326_0.png', 1394839822: '1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187259_0.png', 1394839899: '1763370665_1272927_1394839232_fc46318b52fc6170af52f1accf49990c_rle_crop_4036190039_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7205bcb582d5d1a4546dd06d576e802c_87321444.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7fe0b42b3e857abd48cd23d4d92f0386_93323322.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/49f414a5e45735eeb0b9dd50862895c5_52724593.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/bdd8e8cd6529ef2f4dd108ffec63f950_15020560.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/e0322a104f364c35b0c327ce4c03e9f2_58101168.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/d3ee39dc98dd0959ed7ca72db79cb56b_79638854.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/35f09f96e61d6cfc88ba9dabfc3c9e80_65255619.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7205bcb582d5d1a4546dd06d576e802c_30672791.png change filename to text .imagette285994361763370897/ imagette285994361763370897/1763370447_1261501_1394838343_0dcbd9833e63f95adf86df16cbb2633b_rle_crop_4036188326_0.png.png imagette285994361763370897/1763370425_1259047_1394838692_03e93cd53ba9631a5f6b2cfb961cd274_rle_crop_4036188177_0.png.png imagette285994361763370897/1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187259_0.png.png imagette285994361763370897/1763370665_1272927_1394839232_fc46318b52fc6170af52f1accf49990c_rle_crop_4036190039_0.png.png imagette285994361763370897/1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187259_0.png.png imagette285994361763370897/1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188155_0.png.png imagette285994361763370897/1763370425_1259047_1394838774_5065b8e9a1d4bea1d18190d01fa63e4e_rle_crop_4036188148_0.png.png imagette285994361763370897/1763370425_1259047_1394838937_15b2431f79ff679e9ba0fafa32437742_rle_crop_4036188120_0.png.png imagette285994361763370897/1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188160_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/03877103b063889d3ba3f8065501f886_20325326.png imagette285994361763370897 28599438 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839536: '1763370425_1259047_1394838692_03e93cd53ba9631a5f6b2cfb961cd274_rle_crop_4036188176_0.png', 1394839572: '1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188304_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/20cb8649ea74d1e058b9e50550a00d52_25046754.png change filename to text .imagette285994381763370898/ imagette285994381763370898/1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188304_0.png.png imagette285994381763370898/1763370425_1259047_1394838692_03e93cd53ba9631a5f6b2cfb961cd274_rle_crop_4036188176_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/ef7e8cb3cbec5e253dd84efe5c2292bc_52098008.png imagette285994381763370898 28599439 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839590: '1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188313_0.png', 1394839592: '1763370447_1261501_1394838343_0dcbd9833e63f95adf86df16cbb2633b_rle_crop_4036188329_0.png', 1394839903: '1763370665_1272927_1394839228_5e01fdc1b0947c718311f73a5617ad0e_rle_crop_4036190054_0.png', 1394840478: '1763370785_1276374_1394839003_d20e53a1588728851c11fa9f98985c8f_rle_crop_4036190643_0.png', 1394840479: '1763370785_1276374_1394838962_34bd1c7be8fc6a9525a5f6b1c0c83649_rle_crop_4036190683_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/7fb97f94de3d94601af5ef1efe7f1a69_17806198.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/38884782438d4bc2775fd00b6c3f6d66_34598109.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/276a88886af98fc41c0ccd5cee2326c6_74783469.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/79f4353ff14af864bf79057bfb50dbb8_24364017.png change filename to text .imagette285994391763370898/ imagette285994391763370898/1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188313_0.png.png imagette285994391763370898/1763370447_1261501_1394838343_0dcbd9833e63f95adf86df16cbb2633b_rle_crop_4036188329_0.png.png imagette285994391763370898/1763370665_1272927_1394839228_5e01fdc1b0947c718311f73a5617ad0e_rle_crop_4036190054_0.png.png imagette285994391763370898/1763370785_1276374_1394838962_34bd1c7be8fc6a9525a5f6b1c0c83649_rle_crop_4036190683_0.png.png imagette285994391763370898/1763370785_1276374_1394839003_d20e53a1588728851c11fa9f98985c8f_rle_crop_4036190643_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/e62e18a41d51bacd7f298867f8da754d_28216889.png imagette285994391763370898 28599429 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599429 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839089: '1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187223_0.png', 1394839091: '1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187225_0.png', 1394839224: '1763370384_1257252_1394838934_46013713a8afaf1801313d3aeccdeb46_rle_crop_4036187659_0.png', 1394839225: '1763370384_1257252_1394838933_93557081cad782a1b024752569b1006c_rle_crop_4036187670_0.png', 1394839527: '1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188159_0.png', 1394839567: '1763370447_1261501_1394838347_8291bf8763c3469708962a99d35b5315_rle_crop_4036188318_0.png', 1394839824: '1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187223_0.png', 1394839825: '1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187225_0.png', 1394839900: '1763370665_1272927_1394839232_fc46318b52fc6170af52f1accf49990c_rle_crop_4036190040_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/cc318808b6b6b8854f0652727431722d_87628271.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8d1dc707bfba5958098aef915de9e90e_56249938.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/cf9445793d23fc1d0e48d8328ca6d74c_847362.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/0a8630c6ec248b59ef483ad0688d335f_25246303.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/9c232bf768a6942c15f4d72243a0aa8d_24916057.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/08718d72b3e0bdffa6204ee54ce7b558_98373932.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/cc318808b6b6b8854f0652727431722d_85280671.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8d1dc707bfba5958098aef915de9e90e_54860408.png change filename to text .imagette285994291763370899/ imagette285994291763370899/1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187225_0.png.png imagette285994291763370899/1763370447_1261501_1394838347_8291bf8763c3469708962a99d35b5315_rle_crop_4036188318_0.png.png imagette285994291763370899/1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187223_0.png.png imagette285994291763370899/1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187225_0.png.png imagette285994291763370899/1763370384_1257252_1394838934_46013713a8afaf1801313d3aeccdeb46_rle_crop_4036187659_0.png.png imagette285994291763370899/1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187223_0.png.png imagette285994291763370899/1763370665_1272927_1394839232_fc46318b52fc6170af52f1accf49990c_rle_crop_4036190040_0.png.png imagette285994291763370899/1763370384_1257252_1394838933_93557081cad782a1b024752569b1006c_rle_crop_4036187670_0.png.png imagette285994291763370899/1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188159_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/4bb95fc9c3bfbd2c7d02096defa5a81d_20962425.png imagette285994291763370899 28599430 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839546: '1763370425_1259047_1394838774_5065b8e9a1d4bea1d18190d01fa63e4e_rle_crop_4036188145_0.png', 1394839580: '1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188308_0.png', 1394839901: '1763370665_1272927_1394839257_2f3da78ad47dce0fc245290d3a70492f_rle_crop_4036190026_0.png', 1394839902: '1763370665_1272927_1394839257_2f3da78ad47dce0fc245290d3a70492f_rle_crop_4036190028_0.png', 1394840474: '1763370785_1276374_1394838967_caf241152098868a1bdf90ca5ead232d_rle_crop_4036190673_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/22c42da873f51890dd7236621a3548ba_57519037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/56371d4526d56198d8ab4875285ac4eb_2061454.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/03749e77764f8b0bb56b3f3e9502d3f6_1112549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/1ab6a6a73635e6823a38ff248a825e03_18783147.png change filename to text .imagette285994301763370899/ imagette285994301763370899/1763370447_1261501_1394838826_82484cbec8aa0fc23b8c225ae9c46c72_rle_crop_4036188308_0.png.png imagette285994301763370899/1763370425_1259047_1394838774_5065b8e9a1d4bea1d18190d01fa63e4e_rle_crop_4036188145_0.png.png imagette285994301763370899/1763370665_1272927_1394839257_2f3da78ad47dce0fc245290d3a70492f_rle_crop_4036190026_0.png.png imagette285994301763370899/1763370665_1272927_1394839257_2f3da78ad47dce0fc245290d3a70492f_rle_crop_4036190028_0.png.png imagette285994301763370899/1763370785_1276374_1394838967_caf241152098868a1bdf90ca5ead232d_rle_crop_4036190673_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/e4628e259988981693ccc46486004cb5_49635921.png imagette285994301763370899 28599433 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394839074: '1763370307_1254722_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187207_0.png', 1394839075: '1763370307_1254722_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187208_0.png', 1394839076: '1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187224_0.png', 1394839077: '1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187261_0.png', 1394839078: '1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187263_0.png', 1394839222: '1763370384_1257252_1394838933_93557081cad782a1b024752569b1006c_rle_crop_4036187672_0.png', 1394839223: '1763370384_1257252_1394838932_2c0b89e625254c18bc677679c986e009_rle_crop_4036187694_0.png', 1394839490: '1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188161_0.png', 1394839817: '1763370566_1267334_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187207_0.png', 1394839818: '1763370566_1267334_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187208_0.png', 1394839819: '1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187224_0.png', 1394839820: '1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187261_0.png', 1394839821: '1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187263_0.png', 1394840473: '1763370785_1276374_1394839003_d20e53a1588728851c11fa9f98985c8f_rle_crop_4036190637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/986e46f6514ff4fed898697353ec90af_24599792.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/2628a4942eb8a970f0176d94fad2b94a_93865870.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8cb4fc9db96db1ddffe6a367c05b4778_78160925.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/e11d54e1b8453803ac9bebd125f1ff70_99493378.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8e9cdd05ec5a1a23407a78c6e3c33bcc_58627276.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/1b02faed472c2d431452c3b508b0349a_18988144.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/0865a91bd0b1b36c350c190b2198995f_6725553.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/9c0dc2543f093ee480ad1ee7da3f0fe1_12865910.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/986e46f6514ff4fed898697353ec90af_14784317.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/2628a4942eb8a970f0176d94fad2b94a_28380593.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8cb4fc9db96db1ddffe6a367c05b4778_71147599.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/e11d54e1b8453803ac9bebd125f1ff70_16390572.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/8e9cdd05ec5a1a23407a78c6e3c33bcc_64064192.png change filename to text .imagette285994331763370900/ imagette285994331763370900/1763370384_1257252_1394838932_2c0b89e625254c18bc677679c986e009_rle_crop_4036187694_0.png.png imagette285994331763370900/1763370425_1259047_1394838723_6b0578170f26cb99f01c16cbfc93219c_rle_crop_4036188161_0.png.png imagette285994331763370900/1763370384_1257252_1394838933_93557081cad782a1b024752569b1006c_rle_crop_4036187672_0.png.png imagette285994331763370900/1763370566_1267334_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187224_0.png.png imagette285994331763370900/1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187263_0.png.png imagette285994331763370900/1763370307_1254722_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187208_0.png.png imagette285994331763370900/1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187261_0.png.png imagette285994331763370900/1763370307_1254722_1394838024_10b046c8520922646038e3d84d665f52_rle_crop_4036187224_0.png.png imagette285994331763370900/1763370566_1267334_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187207_0.png.png imagette285994331763370900/1763370307_1254722_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187207_0.png.png imagette285994331763370900/1763370307_1254722_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187261_0.png.png imagette285994331763370900/1763370566_1267334_1394837964_406e833378e694ed3ab8b77fd7f6dec4_rle_crop_4036187263_0.png.png imagette285994331763370900/1763370566_1267334_1394838080_64ffe7bfb0d20192904434de1127131a_rle_crop_4036187208_0.png.png imagette285994331763370900/1763370785_1276374_1394839003_d20e53a1588728851c11fa9f98985c8f_rle_crop_4036190637_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/5c403fc3672df27c59a354290ec92cff_90066703.png imagette285994331763370900 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28599377 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28599441,28599442,28599443,28599444,28599445,28599446,28599447,28599448,28599449,28599450,28599451,28599452?tags=flou,Carton_gris,Carton_brun,mal_croppe,kraft,Teint_Dans_La_Masse,metal,environnement,autre_refus,papier,cartonnette,plastique your option no_mail is active, we will not send the real mail to your client args[1394840600] : ('0.04753465016075036',) no score found for photo 1394840600 We are sending mail with results at report@fotonower.com args[1394840567] : ('0.04753465016075036',) no score found for photo 1394840567 We are sending mail with results at report@fotonower.com args[1394840531] : ('0.04753465016075036',) no score found for photo 1394840531 We are sending mail with results at report@fotonower.com args[1394840512] : ('0.04753465016075036',) no score found for photo 1394840512 We are sending mail with results at report@fotonower.com args[1394840510] : ('0.04753465016075036',) no score found for photo 1394840510 We are sending mail with results at report@fotonower.com args[1394840470] : ('0.04753465016075036',) no score found for photo 1394840470 We are sending mail with results at report@fotonower.com args[1394840467] : ('0.04753465016075036',) no score found for photo 1394840467 We are sending mail with results at report@fotonower.com args[1394840465] : ('0.04753465016075036',) no score found for photo 1394840465 We are sending mail with results at report@fotonower.com args[1394840453] : ('0.04753465016075036',) no score found for photo 1394840453 We are sending mail with results at report@fotonower.com args[1394840386] : ('0.04753465016075036',) no score found for photo 1394840386 We are sending mail with results at report@fotonower.com args[1394840381] : ('0.04753465016075036',) no score found for photo 1394840381 We are sending mail with results at report@fotonower.com args[1394840378] : ('0.04753465016075036',) no score found for photo 1394840378 We are sending mail with results at report@fotonower.com args[1394840357] : ('0.04753465016075036',) no score found for photo 1394840357 We are sending mail with results at report@fotonower.com args[1394840308] : ('0.04753465016075036',) no score found for photo 1394840308 We are sending mail with results at report@fotonower.com args[1394840288] : ('0.04753465016075036',) no score found for photo 1394840288 We are sending mail with results at report@fotonower.com args[1394840286] : ('0.04753465016075036',) no score found for photo 1394840286 We are sending mail with results at report@fotonower.com args[1394840285] : ('0.04753465016075036',) no score found for photo 1394840285 We are sending mail with results at report@fotonower.com args[1394840259] : ('0.04753465016075036',) no score found for photo 1394840259 We are sending mail with results at report@fotonower.com args[1394840217] : ('0.04753465016075036',) no score found for photo 1394840217 We are sending mail with results at report@fotonower.com args[1394840037] : ('0.04753465016075036',) no score found for photo 1394840037 We are sending mail with results at report@fotonower.com args[1394839972] : ('0.04753465016075036',) no score found for photo 1394839972 We are sending mail with results at report@fotonower.com args[1394839930] : ('0.04753465016075036',) no score found for photo 1394839930 We are sending mail with results at report@fotonower.com args[1394839914] : ('0.04753465016075036',) no score found for photo 1394839914 We are sending mail with results at report@fotonower.com args[1394839908] : ('0.04753465016075036',) no score found for photo 1394839908 We are sending mail with results at report@fotonower.com args[1394839904] : ('0.04753465016075036',) no score found for photo 1394839904 We are sending mail with results at report@fotonower.com args[1394839850] : ('0.04753465016075036',) no score found for photo 1394839850 We are sending mail with results at report@fotonower.com args[1394839840] : ('0.04753465016075036',) no score found for photo 1394839840 We are sending mail with results at report@fotonower.com args[1394839836] : ('0.04753465016075036',) no score found for photo 1394839836 We are sending mail with results at report@fotonower.com args[1394839833] : ('0.04753465016075036',) no score found for photo 1394839833 We are sending mail with results at report@fotonower.com args[1394839829] : ('0.04753465016075036',) no score found for photo 1394839829 We are sending mail with results at report@fotonower.com refus_total : 0.04753465016075036 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599377 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_P28599377_17-11-2025_10_14_57.pdf results_Auto_P28599377_17-11-2025_10_14_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_17-11-2025_10_14_57.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','28599377','results_Auto_P28599377_17-11-2025_10_14_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_17-11-2025_10_14_57.pdf','pdf','','0.33','0.04753465016075036') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28599377]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] map_info['map_portfolio_photo'] : {28599377: [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829, 1394839787, 1394839779, 1394839761, 1394839743, 1394839740, 1394839735, 1394839722, 1394839691, 1394839659, 1394839368, 1394839333, 1394839292, 1394839257, 1394839232, 1394839228, 1394839178, 1394839176, 1394839174, 1394839171, 1394839071, 1394839039, 1394839003, 1394838967, 1394838962, 1394838960, 1394838937, 1394838934, 1394838933, 1394838932, 1394838826, 1394838824, 1394838774, 1394838723, 1394838692, 1394838640, 1394838350, 1394838347, 1394838343, 1394838338, 1394838080, 1394838024, 1394837964, 1394837901]} final : False mtd_id 4302 list_pids : [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] 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, '4057007') ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28599377', '1394840600', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007')] time used for this insertion : 0.017757415771484375 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.020024538040161 time spend to save output : 0.018112659454345703 total time spend for step 4 : 6.038137197494507 step5:split_time_score Mon Nov 17 10:15:02 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 : ['28599377'] 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 : [('28599377',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28599377) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394840567: {'path': 'temp/1763370896_692627_1394840567_42b9f51b19fb421eabe8a3912ba05199.jpg', 'extension': 'jpg'}, 1394840600: {'path': 'temp/1763370896_692627_1394840600_7e5702ec54386e3b08db478861ae79c6.jpg', 'extension': 'jpg'}, 1394839829: {'path': 'temp/1763370896_692627_1394839829_4a0cf64b3d654bf021bc9d659d983a9c.jpg', 'extension': 'jpg'}, 1394839833: {'path': 'temp/1763370896_692627_1394839833_d928cc71cba7fc7b97c96e0f0198d9d6.jpg', 'extension': 'jpg'}, 1394839836: {'path': 'temp/1763370896_692627_1394839836_258e5df05f5fd5c4f32c74adc8e65863.jpg', 'extension': 'jpg'}, 1394839840: {'path': 'temp/1763370896_692627_1394839840_1fbd6ea4e43769b638257c9007f5dc0b.jpg', 'extension': 'jpg'}, 1394839850: {'path': 'temp/1763370896_692627_1394839850_c5d3facb1ba829ed3aca43a06f08166c.jpg', 'extension': 'jpg'}, 1394839904: {'path': 'temp/1763370896_692627_1394839904_7e52ec83a044825672e13c1a6026180e.jpg', 'extension': 'jpg'}, 1394839908: {'path': 'temp/1763370896_692627_1394839908_3e82befb7995b76490b0bbbf71f56af4.jpg', 'extension': 'jpg'}, 1394839914: {'path': 'temp/1763370896_692627_1394839914_39c3cf5afcd939e66ff8286060e9d61d.jpg', 'extension': 'jpg'}, 1394839930: {'path': 'temp/1763370896_692627_1394839930_26e22ab1b586083c925e60d12acb9eb0.jpg', 'extension': 'jpg'}, 1394839972: {'path': 'temp/1763370896_692627_1394839972_c183f101c6be901b7e3cfa158284f69e.jpg', 'extension': 'jpg'}, 1394840037: {'path': 'temp/1763370896_692627_1394840037_5d22a0d02a3c8edea602381e43e023e7.jpg', 'extension': 'jpg'}, 1394840217: {'path': 'temp/1763370896_692627_1394840217_40212ee814e7313ee6bd0d5071d55e9c.jpg', 'extension': 'jpg'}, 1394840259: {'path': 'temp/1763370896_692627_1394840259_9b9b195ed3e8e0d4b5c42c34254e958a.jpg', 'extension': 'jpg'}, 1394840285: {'path': 'temp/1763370896_692627_1394840285_0f9354480d65d918254083ebaaa8f8fe.jpg', 'extension': 'jpg'}, 1394840286: {'path': 'temp/1763370896_692627_1394840286_a2c0f6d445b4c2ed9aee52396b5ffe0c.jpg', 'extension': 'jpg'}, 1394840288: {'path': 'temp/1763370896_692627_1394840288_b602e5c17a4780861ca031b3af663772.jpg', 'extension': 'jpg'}, 1394840308: {'path': 'temp/1763370896_692627_1394840308_f86a75c14dbc750951851005cfa9c5d6.jpg', 'extension': 'jpg'}, 1394840357: {'path': 'temp/1763370896_692627_1394840357_e699df1782b6ab03b467ecf84bc96537.jpg', 'extension': 'jpg'}, 1394840378: {'path': 'temp/1763370896_692627_1394840378_20360d09dfe3bdca8f80c02bdf36a107.jpg', 'extension': 'jpg'}, 1394840381: {'path': 'temp/1763370896_692627_1394840381_7b95b15e1d86b6156ea6cbcc291e4032.jpg', 'extension': 'jpg'}, 1394840386: {'path': 'temp/1763370896_692627_1394840386_b9376b67ac89fe374024a2551ae0c63b.jpg', 'extension': 'jpg'}, 1394840453: {'path': 'temp/1763370896_692627_1394840453_8978b5d1df97ea381dc5fbca2a52b07b.jpg', 'extension': 'jpg'}, 1394840465: {'path': 'temp/1763370896_692627_1394840465_fef2a3f2cd20c8dcd1dee025e6ec8755.jpg', 'extension': 'jpg'}, 1394840467: {'path': 'temp/1763370896_692627_1394840467_25cc20306c4d4c30e34a6f0a6f0fe7f4.jpg', 'extension': 'jpg'}, 1394840470: {'path': 'temp/1763370896_692627_1394840470_1094e46a606f6e2641eda86bc2cfad39.jpg', 'extension': 'jpg'}, 1394840510: {'path': 'temp/1763370896_692627_1394840510_56b14d382d606c65296540fd2230fd81.jpg', 'extension': 'jpg'}, 1394840512: {'path': 'temp/1763370896_692627_1394840512_a229fca832e1d186808bf128412c1b25.jpg', 'extension': 'jpg'}, 1394840531: {'path': 'temp/1763370896_692627_1394840531_8f58b9f6f2f7a4c3c09e508b9a88aded.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 = 28599377; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28599377 group by h (('10', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28599377 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 (28599377) 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 (28599377) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17112025 28599377 Nombre de photos uploadées : 73 / 23040 (0%) 17112025 28599377 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 17112025 28599377 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1394838080, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/64ffe7bfb0d20192904434de1127131a.jpg', 'username': None, 'uploaded_at': 1763370108, 'text': 'image_17112025_10_00_14_010201m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394838024, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/10b046c8520922646038e3d84d665f52.jpg', 'username': None, 'uploaded_at': 1763370108, 'text': 'image_17112025_10_00_24_010142m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1394837964, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/406e833378e694ed3ab8b77fd7f6dec4.jpg', 'username': None, 'uploaded_at': 1763370108, 'text': 'image_17112025_10_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394837901, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/17/b6918854e95b19ab9a57bae47d0d186b.jpg', 'username': None, 'uploaded_at': 1763370108, 'text': 'image_17112025_10_00_45_010137m0.jpg 4e-05 for time 1, id_amount 2 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 4.76837158203125e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003151416778564453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28599377, '2025-11-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2592139,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2076559066772461 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= 2592139 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28588540, 'dashboard_result_id': 17333963, '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_P28588540_17-11-2025_05_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28588944, 'dashboard_result_id': 17333964, '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_P28588944_17-11-2025_05_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28589312, 'dashboard_result_id': 17333965, '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_P28589312_17-11-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28589740, 'dashboard_result_id': 17333966, '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_P28589740_17-11-2025_06_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28590136, 'dashboard_result_id': 17333967, '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_P28590136_17-11-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28590689, 'dashboard_result_id': 17333968, '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_P28590689_17-11-2025_06_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28591089, 'dashboard_result_id': 17333969, '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_P28591089_17-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28591538, 'dashboard_result_id': 17333970, '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_P28591538_17-11-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28592014, 'dashboard_result_id': 17333971, '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_P28592014_17-11-2025_07_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28592687, 'dashboard_result_id': 17333972, '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_P28592687_17-11-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28593232, 'dashboard_result_id': 17333973, '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_P28593232_17-11-2025_07_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28593671, 'dashboard_result_id': 17333974, '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_P28593671_17-11-2025_09_31_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28594377, 'dashboard_result_id': 17333975, '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_P28594377_17-11-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28595117, 'dashboard_result_id': 17333976, '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_P28595117_17-11-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28595738, 'dashboard_result_id': 17333977, '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_P28595738_17-11-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28596408, 'dashboard_result_id': 17333978, '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_P28596408_17-11-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28598195, 'dashboard_result_id': 17333979, '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_P28598195_17-11-2025_09_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28598931, 'dashboard_result_id': 17333980, '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_P28598931_17-11-2025_10_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, 'pht': 3726}}"}, {'dashboat_entry_day': 2592139, 'dashboard_run_id': 2600657, 'mtr_portfolio_id': 28599377, 'dashboard_result_id': 17333981, '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_P28599377_17-11-2025_10_11_13.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, '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 = 28588540 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': 4055474, 'mtr_portfolio_id': 28588540, 'created_at': datetime.datetime(2025, 11, 17, 5, 18, 59), 'result': '0.049213037188093355', 'result_long': None, 'result_double': None}] Qualite : 0.049213037188093355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28588540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_17-11-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28588540 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_P28588540_17-11-2025_05_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, 'pht': 3726}}" where mtr_portfolio_id = 28588540 and dashboard_run_id = 2600657 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`=28588540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333963, 0.049213037188093355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588540_17-11-2025_05_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588553, '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 = 28588944 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': 4055508, 'mtr_portfolio_id': 28588944, 'created_at': datetime.datetime(2025, 11, 17, 5, 33), 'result': '0.04431631758058558', 'result_long': None, 'result_double': None}] Qualite : 0.04431631758058558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28588944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_17-11-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28588944 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_P28588944_17-11-2025_05_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, 'pht': 3726}}" where mtr_portfolio_id = 28588944 and dashboard_run_id = 2600657 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`=28588944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333964, 0.04431631758058558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28588944_17-11-2025_05_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28588947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28588948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28588949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28588950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28588951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28588952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28588953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28588954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28588955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28588956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28588957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28588958, '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 = 28589312 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': 4055564, 'mtr_portfolio_id': 28589312, 'created_at': datetime.datetime(2025, 11, 17, 5, 49), 'result': '0.03502824541316796', 'result_long': None, 'result_double': None}] Qualite : 0.03502824541316796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28589312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_17-11-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28589312 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_P28589312_17-11-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, 'pht': 3726}}" where mtr_portfolio_id = 28589312 and dashboard_run_id = 2600657 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`=28589312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333965, 0.03502824541316796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589312_17-11-2025_05_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589328, '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 = 28589740 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': 4055626, 'mtr_portfolio_id': 28589740, 'created_at': datetime.datetime(2025, 11, 17, 6, 3), 'result': '0.03192295252123967', 'result_long': None, 'result_double': None}] Qualite : 0.03192295252123967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28589740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_17-11-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28589740 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_P28589740_17-11-2025_06_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, 'pht': 3726}}" where mtr_portfolio_id = 28589740 and dashboard_run_id = 2600657 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`=28589740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333966, 0.03192295252123967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28589740_17-11-2025_06_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28589748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28589749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28589750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28589751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28589752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28589753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28589754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28589755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28589756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28589757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28589758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28589759, '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 = 28590136 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': 4055708, 'mtr_portfolio_id': 28590136, 'created_at': datetime.datetime(2025, 11, 17, 6, 18, 59), 'result': '0.03224026798486873', 'result_long': None, 'result_double': None}] Qualite : 0.03224026798486873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28590136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_17-11-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28590136 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_P28590136_17-11-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, 'pht': 3726}}" where mtr_portfolio_id = 28590136 and dashboard_run_id = 2600657 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`=28590136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333967, 0.03224026798486873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590136_17-11-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28590182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590193, '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 = 28590689 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': 4055780, 'mtr_portfolio_id': 28590689, 'created_at': datetime.datetime(2025, 11, 17, 6, 32, 57), 'result': '0.03351984753258383', 'result_long': None, 'result_double': None}] Qualite : 0.03351984753258383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28590689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_17-11-2025_06_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28590689 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_P28590689_17-11-2025_06_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, 'pht': 3726}}" where mtr_portfolio_id = 28590689 and dashboard_run_id = 2600657 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`=28590689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333968, 0.03351984753258383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28590689_17-11-2025_06_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28590698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28590699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28590700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28590701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28590702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28590703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28590704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28590705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28590706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28590707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28590708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28590709, '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 = 28591089 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': 4055854, 'mtr_portfolio_id': 28591089, 'created_at': datetime.datetime(2025, 11, 17, 6, 47), 'result': '0.04149658657554517', 'result_long': None, 'result_double': None}] Qualite : 0.04149658657554517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28591089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_17-11-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28591089 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_P28591089_17-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, 'pht': 3726}}" where mtr_portfolio_id = 28591089 and dashboard_run_id = 2600657 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`=28591089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333969, 0.04149658657554517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591089_17-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591126, '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 = 28591538 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': 4055904, 'mtr_portfolio_id': 28591538, 'created_at': datetime.datetime(2025, 11, 17, 7, 2, 58), 'result': '0.04147314845563943', 'result_long': None, 'result_double': None}] Qualite : 0.04147314845563943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28591538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_17-11-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28591538 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_P28591538_17-11-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, 'pht': 3726}}" where mtr_portfolio_id = 28591538 and dashboard_run_id = 2600657 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`=28591538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333970, 0.04147314845563943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28591538_17-11-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28591547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28591548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28591549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28591550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28591551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28591552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28591554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28591555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28591556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28591557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28591558, '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 = 28592014 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': 4056005, 'mtr_portfolio_id': 28592014, 'created_at': datetime.datetime(2025, 11, 17, 7, 18, 56), 'result': '0.03599651552807738', 'result_long': None, 'result_double': None}] Qualite : 0.03599651552807738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28592014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_17-11-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28592014 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_P28592014_17-11-2025_07_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, 'pht': 3726}}" where mtr_portfolio_id = 28592014 and dashboard_run_id = 2600657 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`=28592014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333971, 0.03599651552807738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592014_17-11-2025_07_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592042, '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 = 28592687 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': 4056103, 'mtr_portfolio_id': 28592687, 'created_at': datetime.datetime(2025, 11, 17, 7, 33), 'result': '0.04066168112865501', 'result_long': None, 'result_double': None}] Qualite : 0.04066168112865501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28592687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_17-11-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28592687 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_P28592687_17-11-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, 'pht': 3726}}" where mtr_portfolio_id = 28592687 and dashboard_run_id = 2600657 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`=28592687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333972, 0.04066168112865501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28592687_17-11-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28592717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28592718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28592719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28592720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28592721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28592722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28592723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28592724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28592725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28592726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28592727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28592728, '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 = 28593232 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': 4056177, 'mtr_portfolio_id': 28593232, 'created_at': datetime.datetime(2025, 11, 17, 7, 47, 1), 'result': '0.030734166954225168', 'result_long': None, 'result_double': None}] Qualite : 0.030734166954225168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28593232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_17-11-2025_07_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28593232 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_P28593232_17-11-2025_07_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, 'pht': 3726}}" where mtr_portfolio_id = 28593232 and dashboard_run_id = 2600657 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`=28593232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333973, 0.030734166954225168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593232_17-11-2025_07_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28593257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28593261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593268, '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 = 28593671 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': 4056231, 'mtr_portfolio_id': 28593671, 'created_at': datetime.datetime(2025, 11, 17, 9, 31, 1), 'result': '0.0494239835402962', 'result_long': None, 'result_double': None}] Qualite : 0.0494239835402962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28593671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_17-11-2025_09_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28593671 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_P28593671_17-11-2025_09_31_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, 'pht': 3726}}" where mtr_portfolio_id = 28593671 and dashboard_run_id = 2600657 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`=28593671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333974, 0.0494239835402962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28593671_17-11-2025_09_31_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28593673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28593674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28593675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28593676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28593677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28593678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28593679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28593680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28593681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28593682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28593683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28593684, '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 = 28594377 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': 4056334, 'mtr_portfolio_id': 28594377, 'created_at': datetime.datetime(2025, 11, 17, 8, 18, 58), 'result': '0.06276379625378292', 'result_long': None, 'result_double': None}] Qualite : 0.06276379625378292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28594377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_17-11-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28594377 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_P28594377_17-11-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, 'pht': 3726}}" where mtr_portfolio_id = 28594377 and dashboard_run_id = 2600657 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`=28594377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333975, 0.06276379625378292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28594377_17-11-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28594388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28594390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28594391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28594392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28594394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28594395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28594396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28594397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28594398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28594399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28594400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28594401, '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 = 28595117 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': 4056437, 'mtr_portfolio_id': 28595117, 'created_at': datetime.datetime(2025, 11, 17, 8, 32, 59), 'result': '0.026174392832266056', 'result_long': None, 'result_double': None}] Qualite : 0.026174392832266056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28595117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_17-11-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28595117 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_P28595117_17-11-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, 'pht': 3726}}" where mtr_portfolio_id = 28595117 and dashboard_run_id = 2600657 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`=28595117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333976, 0.026174392832266056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595117_17-11-2025_08_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28595150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595161, '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 = 28595738 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': 4056532, 'mtr_portfolio_id': 28595738, 'created_at': datetime.datetime(2025, 11, 17, 8, 47), 'result': '0.03734069779011265', 'result_long': None, 'result_double': None}] Qualite : 0.03734069779011265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28595738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_17-11-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28595738 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_P28595738_17-11-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, 'pht': 3726}}" where mtr_portfolio_id = 28595738 and dashboard_run_id = 2600657 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`=28595738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333977, 0.03734069779011265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28595738_17-11-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28595755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28595756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28595757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28595758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28595759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28595760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28595761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28595762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28595763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28595764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28595765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28595766, '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 = 28596408 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': 4056646, 'mtr_portfolio_id': 28596408, 'created_at': datetime.datetime(2025, 11, 17, 9, 32, 58), 'result': '0.04770816857514729', 'result_long': None, 'result_double': None}] Qualite : 0.04770816857514729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28596408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_17-11-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28596408 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_P28596408_17-11-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, 'pht': 3726}}" where mtr_portfolio_id = 28596408 and dashboard_run_id = 2600657 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`=28596408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333978, 0.04770816857514729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28596408_17-11-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28596438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28596439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28596440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28596441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28596442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28596443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28596444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28596445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28596446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28596447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28596448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28596449, '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 = 28598195 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': 4056871, 'mtr_portfolio_id': 28598195, 'created_at': datetime.datetime(2025, 11, 17, 9, 48, 58), 'result': '0.05691740375703781', 'result_long': None, 'result_double': None}] Qualite : 0.05691740375703781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28598195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_17-11-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28598195 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_P28598195_17-11-2025_09_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, 'pht': 3726}}" where mtr_portfolio_id = 28598195 and dashboard_run_id = 2600659 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`=28598195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333979, 0.05691740375703781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598195_17-11-2025_09_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598233, '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 = 28598931 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': 4056930, 'mtr_portfolio_id': 28598931, 'created_at': datetime.datetime(2025, 11, 17, 10, 4, 58), 'result': '0.028375080020170217', 'result_long': None, 'result_double': None}] Qualite : 0.028375080020170217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28598931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_17-11-2025_10_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28598931 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_P28598931_17-11-2025_10_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, 'pht': 3726}}" where mtr_portfolio_id = 28598931 and dashboard_run_id = 2600659 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`=28598931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333980, 0.028375080020170217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28598931_17-11-2025_10_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28598954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28598955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28598956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28598957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28598959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28598960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28598961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28598963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28598964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28598965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28598967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28598968, '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 = 28599377 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': 4057007, 'mtr_portfolio_id': 28599377, 'created_at': datetime.datetime(2025, 11, 17, 10, 14, 56), 'result': '0.04753465016075036', 'result_long': None, 'result_double': None}] Qualite : 0.04753465016075036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28599377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_17-11-2025_10_14_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28599377 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_P28599377_17-11-2025_10_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, 'pht': 3726}}" where mtr_portfolio_id = 28599377 and dashboard_run_id = 2600659 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`=28599377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17333981, 0.04753465016075036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28599377_17-11-2025_10_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28599428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28599429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28599430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28599431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28599432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28599433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28599434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28599435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28599436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28599437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28599438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28599439, '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 (28588540,28588944,28589312,28589740,28590136,28590689,28591089,28591538,28592014,28592687,28593232,28593671,28594377,28595117,28595738,28596408,28598195,28598931,28599377) result : ((1394809138,), (1394809175,), (1394809488,), (1394809490,), (1394809506,), (1394809507,), (1394809508,), (1394809519,), (1394809533,), (1394809535,), (1394809537,), (1394809546,), (1394809548,), (1394809550,), (1394809552,), (1394809554,), (1394809556,), (1394809569,), (1394809571,), (1394809573,), (1394809575,), (1394809585,), (1394809586,), (1394809587,), (1394809588,), (1394809589,), (1394809617,), (1394809619,), (1394809621,), (1394809623,), (1394809625,), (1394809627,), (1394809635,), (1394809637,), (1394809639,), (1394809656,), (1394809658,), (1394809660,), (1394809663,), (1394809665,), (1394809667,), (1394809674,), (1394809676,), (1394809679,), (1394809682,), (1394809714,), (1394809715,), (1394809716,), (1394809717,), (1394809719,), (1394809720,), (1394809725,), (1394809727,), (1394809728,), (1394809733,), (1394809736,), (1394809738,), (1394809740,), (1394809773,), (1394809759,), (1394809763,), (1394809765,), (1394809768,), (1394809771,), (1394809781,), (1394809783,), (1394809785,), (1394809788,), (1394809791,), (1394809814,), (1394809815,), (1394809817,), (1394809820,), (1394809831,), (1394809832,), (1394809833,), (1394809834,), (1394809836,), (1394809839,), (1394809854,), (1394809856,), (1394809858,), (1394809861,), (1394809872,), (1394809873,), (1394809874,), (1394809876,), (1394809878,), (1394809880,), (1394809896,), (1394809898,), (1394809900,), (1394809902,), (1394809926,), (1394809930,), (1394809935,), (1394809939,), (1394809943,), (1394809945,), (1394809995,), (1394809998,), (1394810000,), (1394810002,), (1394810014,), (1394810015,), (1394810016,), (1394810018,), (1394810020,), (1394810022,), (1394810043,), (1394810044,), (1394810046,), (1394810047,), (1394810049,), (1394810056,), (1394810058,), (1394810060,), (1394810062,), (1394810066,), (1394810069,), (1394810093,), (1394810095,), (1394810097,), (1394810099,), (1394810109,), (1394810111,), (1394810113,), (1394810115,), (1394810136,), (1394810138,), (1394810140,), (1394810141,), (1394810143,), (1394810145,), (1394810189,), (1394810191,), (1394810193,), (1394810194,), (1394810206,), (1394810211,), (1394810214,), (1394810186,), (1394810187,), (1394810218,), (1394810219,), (1394810220,), (1394810221,), (1394810222,), (1394810224,), (1394810237,), (1394810239,), (1394810244,), (1394810248,), (1394810273,), (1394810274,), (1394810277,), (1394810279,), (1394810282,), (1394810284,), (1394810292,), (1394810293,), (1394810294,), (1394810295,), (1394810330,), (1394810331,), (1394810332,), (1394810333,), (1394810335,), (1394810337,), (1394810348,), (1394810350,), (1394810352,), (1394810354,), (1394810383,), (1394810384,), (1394810385,), (1394810386,), (1394810389,), (1394810391,), (1394810399,), (1394810401,), (1394810403,), (1394810406,), (1394810424,), (1394810425,), (1394810426,), (1394810428,), (1394810429,), (1394810440,), (1394810441,), (1394810443,), (1394810445,), (1394810447,), (1394810464,), (1394810465,), (1394810466,), (1394810468,), (1394810471,), (1394810481,), (1394810485,), (1394810487,), (1394810491,), (1394810493,), (1394810494,), (1394810508,), (1394810509,), (1394810511,), (1394810517,), (1394810525,), (1394810526,), (1394810528,), (1394810530,), (1394810532,), (1394810546,), (1394810548,), (1394810549,), (1394810550,), (1394810552,), (1394810590,), (1394810593,), (1394810595,), (1394810597,), (1394810599,), (1394810603,), (1394810581,), (1394810583,), (1394810585,), (1394810586,), (1394810588,), (1394810610,), (1394810613,), (1394810616,), (1394810617,), (1394810654,), (1394810656,), (1394810658,), (1394810660,), (1394810663,), (1394810665,), (1394810674,), (1394810676,), (1394810677,), (1394810679,), (1394810702,), (1394810704,), (1394810706,), (1394810708,), (1394810711,), (1394810721,), (1394810723,), (1394810726,), (1394810730,), (1394810732,), (1394810735,), (1394810752,), (1394810756,), (1394810758,), (1394810761,), (1394810764,), (1394810772,), (1394810774,), (1394810777,), (1394810781,), (1394810784,), (1394810787,), (1394810806,), (1394810809,), (1394810811,), (1394810813,), (1394810826,), (1394810827,), (1394810828,), (1394810830,), (1394810833,), (1394810836,), (1394810843,), (1394810844,), (1394810845,), (1394810846,), (1394810851,), (1394810853,), (1394810856,), (1394810858,), (1394810866,), (1394810867,), (1394810899,), (1394810931,), (1394810965,), (1394810997,), (1394811094,), (1394811095,), (1394811096,), (1394811707,), (1394811711,), (1394811714,), (1394811716,), (1394811734,), (1394811770,), (1394811885,), (1394811875,), (1394811877,), (1394811879,), (1394811881,), (1394811910,), (1394811911,), (1394811913,), (1394811914,), (1394811931,), (1394811934,), (1394811937,), (1394811959,), (1394811960,), (1394811961,), (1394811962,), (1394811964,), (1394811966,), (1394811984,), (1394811985,), (1394811988,), (1394811992,), (1394811994,), (1394811997,), (1394812014,), (1394812015,), (1394812017,), (1394812029,), (1394812030,), (1394812032,), (1394812035,), (1394812038,), (1394812041,), (1394812056,), (1394812058,), (1394812060,), (1394812080,), (1394812081,), (1394812082,), (1394812083,), (1394812086,), (1394812089,), (1394812104,), (1394812105,), (1394812107,), (1394812111,), (1394812148,), (1394812150,), (1394812152,), (1394812155,), (1394812159,), (1394812162,), (1394812174,), (1394812177,), (1394812179,), (1394812183,), (1394812186,), (1394812198,), (1394812200,), (1394812202,), (1394812204,), (1394812225,), (1394812226,), (1394812227,), (1394812228,), (1394812266,), (1394812268,), (1394812270,), (1394812272,), (1394812274,), (1394812277,), (1394812293,), (1394812295,), (1394812298,), (1394812299,), (1394812343,), (1394812332,), (1394812334,), (1394812336,), (1394812339,), (1394812359,), (1394812361,), (1394812363,), (1394812366,), (1394812369,), (1394812394,), (1394812397,), (1394812398,), (1394812400,), (1394812411,), (1394812413,), (1394812416,), (1394812420,), (1394812424,), (1394812426,), (1394812438,), (1394812439,), (1394812440,), (1394812441,), (1394812464,), (1394812465,), (1394812466,), (1394812467,), (1394812471,), (1394812473,), (1394812489,), (1394812491,), (1394812493,), (1394812495,), (1394812510,), (1394812511,), (1394812512,), (1394812513,), (1394812516,), (1394812520,), (1394812545,), (1394812547,), (1394812549,), (1394812552,), (1394812571,), (1394812573,), (1394812575,), (1394812578,), (1394812580,), (1394812584,), (1394812604,), (1394812605,), (1394812606,), (1394812610,), (1394812614,), (1394812617,), (1394812625,), (1394812626,), (1394812627,), (1394812628,), (1394812629,), (1394812631,), (1394812636,), (1394812639,), (1394812641,), (1394812643,), (1394812668,), (1394812669,), (1394812670,), (1394812671,), (1394812672,), (1394812675,), (1394812693,), (1394812697,), (1394812700,), (1394812701,), (1394812726,), (1394812728,), (1394812731,), (1394812734,), (1394812738,), (1394812741,), (1394812757,), (1394812761,), (1394812764,), (1394812767,), (1394812787,), (1394812792,), (1394812793,), (1394812754,), (1394812755,), (1394812804,), (1394812805,), (1394812809,), (1394812813,), (1394812817,), (1394812819,), (1394812834,), (1394812835,), (1394812837,), (1394812840,), (1394812887,), (1394812889,), (1394812891,), (1394812895,), (1394812899,), (1394812901,), (1394812911,), (1394812912,), (1394812914,), (1394812959,), (1394812961,), (1394812964,), (1394812967,), (1394812971,), (1394812974,), (1394812981,), (1394812983,), (1394812985,), (1394812990,), (1394812991,), (1394812993,), (1394812997,), (1394813001,), (1394813005,), (1394813034,), (1394813036,), (1394813038,), (1394813040,), (1394813080,), (1394813081,), (1394813082,), (1394813083,), (1394813085,), (1394813089,), (1394813123,), (1394813126,), (1394813131,), (1394813137,), (1394813156,), (1394813157,), (1394813159,), (1394813161,), (1394813165,), (1394813170,), (1394813208,), (1394813213,), (1394813214,), (1394813215,), (1394813239,), (1394813241,), (1394813243,), (1394813247,), (1394813282,), (1394813290,), (1394813291,), (1394813293,), (1394813296,), (1394813299,), (1394813321,), (1394813322,), (1394813324,), (1394813366,), (1394813357,), (1394813358,), (1394813360,), (1394813363,), (1394813383,), (1394813384,), (1394813385,), (1394813387,), (1394813390,), (1394813394,), (1394813421,), (1394813422,), (1394813423,), (1394813426,), (1394813448,), (1394813450,), (1394813453,), (1394813456,), (1394813460,), (1394813463,), (1394813476,), (1394813478,), (1394813484,), (1394813488,), (1394813491,), (1394813492,), (1394813494,), (1394813522,), (1394813523,), (1394813524,), (1394813526,), (1394813528,), (1394813557,), (1394813558,), (1394813559,), (1394813561,), (1394813564,), (1394813584,), (1394813585,), (1394813586,), (1394813589,), (1394813616,), (1394813623,), (1394813625,), (1394813628,), (1394813631,), (1394813648,), (1394813650,), (1394813651,), (1394813690,), (1394813692,), (1394813694,), (1394813718,), (1394813719,), (1394813720,), (1394813721,), (1394813753,), (1394813755,), (1394813757,), (1394813760,), (1394813765,), (1394813789,), (1394813800,), (1394813806,), (1394813810,), (1394813846,), (1394813839,), (1394813840,), (1394813841,), (1394813843,), (1394814127,), (1394814156,), (1394814184,), (1394814214,), (1394814246,), (1394814277,), (1394814564,), (1394814590,), (1394814618,), (1394814816,), (1394814844,), (1394814856,), (1394814860,), (1394814892,), (1394814900,), (1394814964,), (1394814966,), (1394814968,), (1394814971,), (1394815024,), (1394815025,), (1394815026,), (1394815028,), (1394815031,), (1394815035,), (1394815054,), (1394815056,), (1394815061,), (1394815067,), (1394815081,), (1394815090,), (1394815109,), (1394815111,), (1394815130,), (1394815161,), (1394815175,), (1394815176,), (1394815178,), (1394815181,), (1394815194,), (1394815215,), (1394815217,), (1394815220,), (1394815226,), (1394815230,), (1394815285,), (1394815323,), (1394815354,), (1394815361,), (1394815453,), (1394815454,), (1394815455,), (1394815457,), (1394815459,), (1394815463,), (1394815522,), (1394815532,), (1394815538,), (1394815553,), (1394815565,), (1394815619,), (1394815622,), (1394815634,), (1394815638,), (1394815641,), (1394815660,), (1394815661,), (1394815662,), (1394815663,), (1394815671,), (1394815701,), (1394815823,), (1394815824,), (1394815825,), (1394815827,), (1394815879,), (1394815932,), (1394815861,), (1394815869,), (1394815870,), (1394815872,), (1394815876,), (1394815898,), (1394815900,), (1394815902,), (1394815907,), (1394815911,), (1394815915,), (1394815929,), (1394815930,), (1394815931,), (1394815937,), (1394815941,), (1394815946,), (1394815949,), (1394815952,), (1394816010,), (1394816042,), (1394816069,), (1394816081,), (1394816089,), (1394816104,), (1394816158,), (1394816160,), (1394816163,), (1394816166,), (1394816170,), (1394816188,), (1394816189,), (1394816190,), (1394816209,), (1394816232,), (1394816325,), (1394816326,), (1394816328,), (1394816331,), (1394816336,), (1394816356,), (1394816357,), (1394816358,), (1394816394,), (1394816396,), (1394816398,), (1394816400,), (1394816436,), (1394816437,), (1394816438,), (1394816440,), (1394816441,), (1394816445,), (1394816478,), (1394816480,), (1394816482,), (1394816485,), (1394816518,), (1394816519,), (1394816520,), (1394816523,), (1394816527,), (1394816531,), (1394816557,), (1394816560,), (1394816562,), (1394816565,), (1394816570,), (1394816575,), (1394816591,), (1394816592,), (1394816593,), (1394816627,), (1394816630,), (1394816632,), (1394816636,), (1394816639,), (1394816644,), (1394816687,), (1394816705,), (1394816707,), (1394816708,), (1394816709,), (1394816710,), (1394816712,), (1394816662,), (1394816674,), (1394816676,), (1394816680,), (1394816683,), (1394816718,), (1394816722,), (1394816725,), (1394816840,), (1394816870,), (1394816872,), (1394816912,), (1394816913,), (1394816914,), (1394816925,), (1394816937,), (1394816940,), (1394816957,), (1394816958,), (1394816959,), (1394817011,), (1394817013,), (1394817015,), (1394817017,), (1394817022,), (1394817025,), (1394817043,), (1394817044,), (1394817047,), (1394817051,), (1394817056,), (1394817060,), (1394817073,), (1394817076,), (1394817077,), (1394817078,), (1394817079,), (1394817081,), (1394817098,), (1394817101,), (1394817104,), (1394817107,), (1394817110,), (1394817113,), (1394817137,), (1394817140,), (1394817143,), (1394817147,), (1394817151,), (1394817155,), (1394817159,), (1394817163,), (1394817170,), (1394817172,), (1394817175,), (1394817177,), (1394817184,), (1394817235,), (1394817222,), (1394817224,), (1394817226,), (1394817229,), (1394817255,), (1394817257,), (1394817261,), (1394817267,), (1394817293,), (1394817294,), (1394817295,), (1394817297,), (1394817302,), (1394817319,), (1394817323,), (1394817327,), (1394817345,), (1394817350,), (1394817382,), (1394817402,), (1394817409,), (1394817411,), (1394817437,), (1394817438,), (1394817439,), (1394817440,), (1394817443,), (1394817455,), (1394817508,), (1394817510,), (1394817512,), (1394817514,), (1394817518,), (1394817551,), (1394817552,), (1394817553,), (1394817555,), (1394817557,), (1394817583,), (1394817584,), (1394817586,), (1394817589,), (1394817594,), (1394817597,), (1394817623,), (1394817624,), (1394817627,), (1394817634,), (1394817644,), (1394817678,), (1394817681,), (1394817683,), (1394817686,), (1394817756,), (1394817757,), (1394817758,), (1394817762,), (1394817780,), (1394817811,), (1394817905,), (1394817907,), (1394817911,), (1394817915,), (1394817919,), (1394817921,), (1394817933,), (1394817966,), (1394817996,), (1394818027,), (1394818040,), (1394818455,), (1394818489,), (1394818522,), (1394818532,), (1394818553,), (1394818610,), (1394818598,), (1394818601,), (1394818603,), (1394818605,), (1394818981,), (1394819018,), (1394819048,), (1394819080,), (1394819113,), (1394819147,), (1394819457,), (1394819460,), (1394819462,), (1394819466,), (1394819471,), (1394819834,), (1394819898,), (1394819950,), (1394819989,), (1394820354,), (1394820356,), (1394820358,), (1394820360,), (1394820363,), (1394820576,), (1394820605,), (1394820637,), (1394820646,), (1394820765,), (1394820768,), (1394820775,), (1394820785,), (1394820789,), (1394820794,), (1394820887,), (1394820916,), (1394820926,), (1394820948,), (1394820980,), (1394821010,), (1394821148,), (1394821178,), (1394821209,), (1394821242,), (1394821279,), (1394821389,), (1394821420,), (1394821455,), (1394821489,), (1394821523,), (1394821557,), (1394821811,), (1394821843,), (1394821873,), (1394821906,), (1394822086,), (1394822118,), (1394822152,), (1394822185,), (1394822212,), (1394822303,), (1394822304,), (1394822305,), (1394822307,), (1394822311,), (1394822332,), (1394822334,), (1394822336,), (1394822345,), (1394822464,), (1394822494,), (1394822553,), (1394822560,), (1394822570,), (1394822588,), (1394822616,), (1394822618,), (1394822621,), (1394822674,), (1394822661,), (1394822662,), (1394822663,), (1394822665,), (1394822669,), (1394822732,), (1394822733,), (1394822743,), (1394822744,), (1394822748,), (1394822958,), (1394822959,), (1394822960,), (1394822961,), (1394822964,), (1394823160,), (1394823170,), (1394823175,), (1394823180,), (1394823188,), (1394823218,), (1394823251,), (1394823253,), (1394823254,), (1394823255,), (1394823322,), (1394823323,), (1394823325,), (1394823328,), (1394823331,), (1394823359,), (1394823361,), (1394823367,), (1394823369,), (1394823389,), (1394823418,), (1394823420,), (1394823422,), (1394823430,), (1394823434,), (1394823438,), (1394823475,), (1394823477,), (1394823481,), (1394823484,), (1394823488,), (1394823491,), (1394823503,), (1394823506,), (1394823511,), (1394823515,), (1394823524,), (1394823526,), (1394823530,), (1394823534,), (1394823538,), (1394823545,), (1394823573,), (1394823574,), (1394823575,), (1394823576,), (1394823603,), (1394823605,), (1394823607,), (1394823611,), (1394823615,), (1394823618,), (1394823636,), (1394823637,), (1394823639,), (1394823643,), (1394823654,), (1394823656,), (1394823660,), (1394823678,), (1394823680,), (1394823682,), (1394823687,), (1394823691,), (1394823695,), (1394823719,), (1394823720,), (1394823721,), (1394823724,), (1394823730,), (1394823938,), (1394823946,), (1394823984,), (1394824002,), (1394824008,), (1394824010,), (1394823879,), (1394823887,), (1394823890,), (1394823908,), (1394824013,), (1394824015,), (1394824019,), (1394824023,), (1394824026,), (1394824051,), (1394824054,), (1394824059,), (1394824063,), (1394824066,), (1394824070,), (1394824083,), (1394824088,), (1394824095,), (1394824096,), (1394824097,), (1394824105,), (1394824108,), (1394824112,), (1394824116,), (1394824279,), (1394824282,), (1394824290,), (1394824294,), (1394824299,), (1394824303,), (1394824471,), (1394824483,), (1394824486,), (1394824494,), (1394824526,), (1394824551,), (1394824553,), (1394824554,), (1394824564,), (1394824576,), (1394824584,), (1394824730,), (1394824731,), (1394824732,), (1394824733,), (1394824845,), (1394824863,), (1394824866,), (1394824887,), (1394824890,), (1394824892,), (1394824993,), (1394824994,), (1394824995,), (1394825076,), (1394825099,), (1394825108,), (1394825129,), (1394825165,), (1394825204,), (1394825318,), (1394825390,), (1394825449,), (1394825513,), (1394825548,), (1394825583,), (1394825695,), (1394825709,), (1394825821,), (1394825823,), (1394825825,), (1394825829,), (1394825872,), (1394825874,), (1394825876,), (1394825919,), (1394825915,), (1394825916,), (1394826039,), (1394826070,), (1394826102,), (1394826136,), (1394826166,), (1394826203,), (1394826343,), (1394826345,), (1394826347,), (1394826357,), (1394826374,), (1394826376,), (1394826387,), (1394826393,), (1394826407,), (1394826412,), (1394826447,), (1394826449,), (1394826451,), (1394826454,), (1394826484,), (1394826485,), (1394826486,), (1394826488,), (1394826491,), (1394826522,), (1394826532,), (1394826534,), (1394826617,), (1394826618,), (1394826638,), (1394826643,), (1394826683,), (1394826686,), (1394826694,), (1394826707,), (1394826712,), (1394826728,), (1394826800,), (1394826802,), (1394826806,), (1394826815,), (1394826818,), (1394826867,), (1394826869,), (1394826871,), (1394826922,), (1394826923,), (1394826924,), (1394826926,), (1394826929,), (1394826950,), (1394826951,), (1394826952,), (1394826954,), (1394827438,), (1394827444,), (1394827450,), (1394827453,), (1394827456,), (1394827476,), (1394827600,), (1394827607,), (1394827632,), (1394827635,), (1394827656,), (1394827733,), (1394827737,), (1394827743,), (1394827752,), (1394827773,), (1394831375,), (1394831360,), (1394831369,), (1394831372,), (1394831452,), (1394831453,), (1394831461,), (1394831468,), (1394831474,), (1394831478,), (1394831529,), (1394831532,), (1394831535,), (1394831560,), (1394831561,), (1394831562,), (1394831563,), (1394831566,), (1394831569,), (1394831588,), (1394831619,), (1394831650,), (1394831681,), (1394831986,), (1394831988,), (1394831994,), (1394832000,), (1394832005,), (1394832009,), (1394832031,), (1394832038,), (1394832043,), (1394832048,), (1394832159,), (1394832196,), (1394832227,), (1394832242,), (1394832252,), (1394832437,), (1394832464,), (1394832466,), (1394832485,), (1394832495,), (1394832509,), (1394832593,), (1394832594,), (1394832595,), (1394832597,), (1394832602,), (1394832680,), (1394832681,), (1394832682,), (1394832685,), (1394832690,), (1394832710,), (1394833012,), (1394833033,), (1394833038,), (1394833061,), (1394833154,), (1394833158,), (1394833165,), (1394833168,), (1394833176,), (1394833214,), (1394833216,), (1394833217,), (1394833220,), (1394833224,), (1394833228,), (1394833407,), (1394833438,), (1394833469,), (1394833737,), (1394833653,), (1394833671,), (1394833703,), (1394833729,), (1394833734,), (1394833839,), (1394833842,), (1394833872,), (1394833880,), (1394833898,), (1394833955,), (1394833956,), (1394833957,), (1394833959,), (1394833961,), (1394833965,), (1394834189,), (1394834221,), (1394834257,), (1394834296,), (1394834473,), (1394834498,), (1394834507,), (1394834525,), (1394834540,), (1394834555,), (1394834564,), (1394834566,), (1394834567,), (1394834591,), (1394834608,), (1394834614,), (1394834618,), (1394834622,), (1394834650,), (1394834652,), (1394834654,), (1394834657,), (1394834661,), (1394834668,), (1394834728,), (1394834729,), (1394834730,), (1394834732,), (1394834735,), (1394834765,), (1394834767,), (1394834768,), (1394834771,), (1394834775,), (1394834778,), (1394834805,), (1394834807,), (1394834810,), (1394834816,), (1394834827,), (1394834898,), (1394834930,), (1394834961,), (1394834992,), (1394835392,), (1394835425,), (1394835456,), (1394835487,), (1394835521,), (1394835556,), (1394835654,), (1394835686,), (1394835714,), (1394835745,), (1394836324,), (1394836381,), (1394836422,), (1394836439,), (1394836443,), (1394836469,), (1394836731,), (1394836826,), (1394836909,), (1394836989,), (1394838139,), (1394838198,), (1394838353,), (1394838355,), (1394838455,), (1394837901,), (1394837964,), (1394838024,), (1394838080,), (1394838338,), (1394838343,), (1394838347,), (1394838350,), (1394838640,), (1394838692,), (1394838723,), (1394838774,), (1394838824,), (1394838826,), (1394838932,), (1394838933,), (1394838934,), (1394838937,), (1394838960,), (1394838962,), (1394838967,), (1394839003,), (1394839039,), (1394839071,), (1394839171,), (1394839174,), (1394839176,), (1394839178,), (1394839228,), (1394839232,), (1394839257,), (1394839292,), (1394839333,), (1394839368,), (1394839659,), (1394839691,), (1394839722,), (1394839735,), (1394839740,), (1394839743,), (1394839761,), (1394839779,), (1394839787,), (1394839829,), (1394839833,), (1394839836,), (1394839840,), (1394839850,), (1394839904,), (1394839908,), (1394839914,), (1394839930,), (1394839972,), (1394840037,), (1394840217,), (1394840259,), (1394840285,), (1394840286,), (1394840288,), (1394840308,), (1394840357,), (1394840378,), (1394840381,), (1394840386,), (1394840453,), (1394840465,), (1394840467,), (1394840470,), (1394840510,), (1394840512,), (1394840531,), (1394840567,), (1394840600,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17112025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28599377]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] map_info['map_portfolio_photo'] : {28599377: [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829, 1394839787, 1394839779, 1394839761, 1394839743, 1394839740, 1394839735, 1394839722, 1394839691, 1394839659, 1394839368, 1394839333, 1394839292, 1394839257, 1394839232, 1394839228, 1394839178, 1394839176, 1394839174, 1394839171, 1394839071, 1394839039, 1394839003, 1394838967, 1394838962, 1394838960, 1394838937, 1394838934, 1394838933, 1394838932, 1394838826, 1394838824, 1394838774, 1394838723, 1394838692, 1394838640, 1394838350, 1394838347, 1394838343, 1394838338, 1394838080, 1394838024, 1394837964, 1394837901]} final : True mtd_id 4302 list_pids : [1394840600, 1394840567, 1394840531, 1394840512, 1394840510, 1394840470, 1394840467, 1394840465, 1394840453, 1394840386, 1394840381, 1394840378, 1394840357, 1394840308, 1394840288, 1394840286, 1394840285, 1394840259, 1394840217, 1394840037, 1394839972, 1394839930, 1394839914, 1394839908, 1394839904, 1394839850, 1394839840, 1394839836, 1394839833, 1394839829] Looping around the photos to save general results len do output : 1 /28599377Didn'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, '4057007') ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007') ('4302', None, None, None, None, None, None, None, '4057007') ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 31 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, '28599377', 'None', None, None, None, None, '4057007'), ('4302', '28599377', '1394840600', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840567', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840531', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840512', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840510', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840470', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840467', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840465', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840453', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840386', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840381', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840378', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840357', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840308', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840288', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840286', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840285', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840259', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840217', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394840037', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839972', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839930', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839914', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839908', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839904', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839850', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839840', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839836', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839833', None, None, None, None, None, '4057007'), ('4302', '28599377', '1394839829', None, None, None, None, None, '4057007')] time used for this insertion : 0.017434120178222656 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3721041679382324 time spend to save output : 0.017725467681884766 total time spend for step 5 : 1.3898296356201172 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 (4057007) 2.68user 2.66system 0:09.94elapsed 53%CPU (0avgtext+0avgdata 171380maxresident)k 95312inputs+23832outputs (439major+79955minor)pagefaults 0swaps