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 : 1416215 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 (3248895) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3248895) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710277 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3248895'] with mtr_portfolio_ids : ['24710277'] and first list_photo_ids : [] new path : /proc/1416215/ Name: python3 Umask: 0002 State: R (running) Tgid: 1416215 Ngid: 0 Pid: 1416215 PPid: 1416214 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1416215 NSpid: 1416215 NSpgid: 1415021 NSsid: 1415021 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100140 kB VmRSS: 100140 kB RssAnon: 59800 kB RssFile: 40340 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 45 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1416215', 'Ngid': '0', 'Pid': '1416215', 'PPid': '1416214', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1416215', 'NSpid': '1416215', 'NSpgid': '1415021', 'NSsid': '1415021', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100140 kB', 'VmRSS': '100140 kB', 'RssAnon': '59800 kB', 'RssFile': '40340 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '45', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1416215', '1106864', '0', '1106864', '865616', '100140', b'', 'marlene', '3248895') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24710277) 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 (3248895 ) ) 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 (24710277) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371125747, 'portfolio_id': 24710277}, {'photo_id': 1371125744, 'portfolio_id': 24710277}, {'photo_id': 1371125741, 'portfolio_id': 24710277}, {'photo_id': 1371125736, 'portfolio_id': 24710277}, {'photo_id': 1371125729, 'portfolio_id': 24710277}, {'photo_id': 1371125724, 'portfolio_id': 24710277}, {'photo_id': 1371125690, 'portfolio_id': 24710277}, {'photo_id': 1371125688, 'portfolio_id': 24710277}, {'photo_id': 1371125685, 'portfolio_id': 24710277}, {'photo_id': 1371125682, 'portfolio_id': 24710277}, {'photo_id': 1371125677, 'portfolio_id': 24710277}, {'photo_id': 1371125667, 'portfolio_id': 24710277}, {'photo_id': 1371125643, 'portfolio_id': 24710277}, {'photo_id': 1371125640, 'portfolio_id': 24710277}, {'photo_id': 1371125636, 'portfolio_id': 24710277}, {'photo_id': 1371125630, 'portfolio_id': 24710277}, {'photo_id': 1371125624, 'portfolio_id': 24710277}, {'photo_id': 1371125619, 'portfolio_id': 24710277}, {'photo_id': 1371125564, 'portfolio_id': 24710277}, {'photo_id': 1371125562, 'portfolio_id': 24710277}, {'photo_id': 1371125559, 'portfolio_id': 24710277}, {'photo_id': 1371125554, 'portfolio_id': 24710277}, {'photo_id': 1371125546, 'portfolio_id': 24710277}, {'photo_id': 1371125521, 'portfolio_id': 24710277}, {'photo_id': 1371125489, 'portfolio_id': 24710277}, {'photo_id': 1371125485, 'portfolio_id': 24710277}, {'photo_id': 1371125480, 'portfolio_id': 24710277}, {'photo_id': 1371125476, 'portfolio_id': 24710277}, {'photo_id': 1371125471, 'portfolio_id': 24710277}, {'photo_id': 1371125466, 'portfolio_id': 24710277}, {'photo_id': 1371125437, 'portfolio_id': 24710277}, {'photo_id': 1371125435, 'portfolio_id': 24710277}, {'photo_id': 1371125432, 'portfolio_id': 24710277}, {'photo_id': 1371125429, 'portfolio_id': 24710277}, {'photo_id': 1371125417, 'portfolio_id': 24710277}, {'photo_id': 1371125402, 'portfolio_id': 24710277}, {'photo_id': 1371125376, 'portfolio_id': 24710277}, {'photo_id': 1371125374, 'portfolio_id': 24710277}, {'photo_id': 1371125371, 'portfolio_id': 24710277}, {'photo_id': 1371125369, 'portfolio_id': 24710277}, {'photo_id': 1371125365, 'portfolio_id': 24710277}, {'photo_id': 1371125361, 'portfolio_id': 24710277}, {'photo_id': 1371125347, 'portfolio_id': 24710277}, {'photo_id': 1371125345, 'portfolio_id': 24710277}, {'photo_id': 1371125340, 'portfolio_id': 24710277}, {'photo_id': 1371125331, 'portfolio_id': 24710277}, {'photo_id': 1371125321, 'portfolio_id': 24710277}, {'photo_id': 1371125310, 'portfolio_id': 24710277}] map_portfolio_id_photo_id: {24710277: [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667, 1371125643, 1371125640, 1371125636, 1371125630, 1371125624, 1371125619, 1371125564, 1371125562, 1371125559, 1371125554, 1371125546, 1371125521, 1371125489, 1371125485, 1371125480, 1371125476, 1371125471, 1371125466, 1371125437, 1371125435, 1371125432, 1371125429, 1371125417, 1371125402, 1371125376, 1371125374, 1371125371, 1371125369, 1371125365, 1371125361, 1371125347, 1371125345, 1371125340, 1371125331, 1371125321, 1371125310]} ##### 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.0162200927734375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 8 04:24: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24710277) 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 : 24710277 get user id for portfolio 24710277 get sub ptf for main ptf 24710277, type 3726 and hashtags ['autre_refus', 'metal', 'kraft', 'Teint_Dans_La_Masse', 'papier', 'plastique', 'Carton_gris', 'cartonnette', 'environnement', 'Carton_brun', 'flou', 'mal_croppe'] 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`=24710277 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','Teint_Dans_La_Masse','papier','plastique','Carton_gris','cartonnette','environnement','Carton_brun','flou','mal_croppe')) 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`=24710277 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','Teint_Dans_La_Masse','papier','plastique','Carton_gris','cartonnette','environnement','Carton_brun','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24710277, 'sub_port_id': 24710292, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616247, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'Carton_brun': {'main_port_id': 24710277, 'sub_port_id': 24710293, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616248, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'metal': {'main_port_id': 24710277, 'sub_port_id': 24710294, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616249, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'papier': {'main_port_id': 24710277, 'sub_port_id': 24710295, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616250, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'flou': {'main_port_id': 24710277, 'sub_port_id': 24710296, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616251, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'environnement': {'main_port_id': 24710277, 'sub_port_id': 24710297, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616252, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'Carton_gris': {'main_port_id': 24710277, 'sub_port_id': 24710298, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616253, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'cartonnette': {'main_port_id': 24710277, 'sub_port_id': 24710299, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616254, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'autre_refus': {'main_port_id': 24710277, 'sub_port_id': 24710300, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616255, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'mal_croppe': {'main_port_id': 24710277, 'sub_port_id': 24710301, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616256, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'kraft': {'main_port_id': 24710277, 'sub_port_id': 24710302, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616257, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 24710277, 'sub_port_id': 24710303, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616258, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710292 , 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=24710277 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 (24710292) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710293 , 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=24710277 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 (24710293) result : ((1371125541,), (1371125717,), (1371125718,), (1371125719,), (1371125790,), (1371125791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710294 , 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=24710277 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 (24710294) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710295 , 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=24710277 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 (24710295) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710296 , 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=24710277 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 (24710296) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710297 , 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=24710277 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 (24710297) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710298 , 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=24710277 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 (24710298) result : ((1371125524,), (1371125526,), (1371125533,), (1371125535,), (1371125538,), (1371125665,), (1371125666,), (1371125668,), (1371125780,), (1371125824,), (1371125825,), (1371125826,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710299 , 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=24710277 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 (24710299) result : ((1371125532,), (1371125534,), (1371125536,), (1371125539,), (1371125543,), (1371125544,), (1371125545,), (1371125547,), (1371125548,), (1371125549,), (1371125671,), (1371125672,), (1371125673,), (1371125675,), (1371125710,), (1371125711,), (1371125712,), (1371125713,), (1371125714,), (1371125715,), (1371125783,), (1371125784,), (1371125785,), (1371125786,), (1371125787,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710300 , 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=24710277 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 (24710300) result : ((1371125512,), (1371125514,), (1371125516,), (1371125517,), (1371125519,), (1371125520,), (1371125525,), (1371125527,), (1371125528,), (1371125529,), (1371125658,), (1371125659,), (1371125660,), (1371125662,), (1371125663,), (1371125705,), (1371125706,), (1371125707,), (1371125708,), (1371125709,), (1371125772,), (1371125773,), (1371125774,), (1371125775,), (1371125776,), (1371125778,), (1371125815,), (1371125816,), (1371125818,), (1371125819,), (1371125820,), (1371125822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710301 , 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=24710277 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 (24710301) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710302 , 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=24710277 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 (24710302) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24710303 , 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=24710277 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 (24710303) result : ((1371125499,), (1371125501,), (1371125502,), (1371125504,), (1371125505,), (1371125506,), (1371125507,), (1371125508,), (1371125509,), (1371125510,), (1371125511,), (1371125513,), (1371125515,), (1371125649,), (1371125650,), (1371125651,), (1371125652,), (1371125653,), (1371125654,), (1371125655,), (1371125656,), (1371125695,), (1371125696,), (1371125697,), (1371125698,), (1371125699,), (1371125700,), (1371125701,), (1371125703,), (1371125759,), (1371125760,), (1371125762,), (1371125763,), (1371125764,), (1371125765,), (1371125766,), (1371125768,), (1371125769,), (1371125770,), (1371125808,), (1371125809,), (1371125810,), (1371125811,), (1371125812,), (1371125813,), (1371125814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24710277) result : ((1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24710277 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','Teint_Dans_La_Masse','papier','plastique','Carton_gris','cartonnette','environnement','Carton_brun','flou','mal_croppe')) 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`=24710277 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','Teint_Dans_La_Masse','papier','plastique','Carton_gris','cartonnette','environnement','Carton_brun','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24710277, 'sub_port_id': 24710304, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616259, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'Carton_brun': {'main_port_id': 24710277, 'sub_port_id': 24710305, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616260, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'metal': {'main_port_id': 24710277, 'sub_port_id': 24710306, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616261, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'papier': {'main_port_id': 24710277, 'sub_port_id': 24710307, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616262, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'flou': {'main_port_id': 24710277, 'sub_port_id': 24710308, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616263, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'environnement': {'main_port_id': 24710277, 'sub_port_id': 24710309, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616264, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'Carton_gris': {'main_port_id': 24710277, 'sub_port_id': 24710310, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616265, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'cartonnette': {'main_port_id': 24710277, 'sub_port_id': 24710311, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616266, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'autre_refus': {'main_port_id': 24710277, 'sub_port_id': 24710312, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616267, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'mal_croppe': {'main_port_id': 24710277, 'sub_port_id': 24710313, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616268, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'kraft': {'main_port_id': 24710277, 'sub_port_id': 24710314, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616269, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24710277, 'sub_port_id': 24710315, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16616270, 'last_updated_at': datetime.datetime(2025, 7, 8, 4, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 4, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 4, 19, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710304,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24710315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24710303 lien utilise dans velours : https://www.fotonower.com/velours/24710304,24710305,24710306,24710307,24710308,24710309,24710310,24710311,24710312,24710313,24710314,24710315?tags=plastique,Carton_brun,metal,papier,flou,environnement,Carton_gris,cartonnette,autre_refus,mal_croppe,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24710277]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] map_info['map_portfolio_photo'] : {24710277: [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667, 1371125643, 1371125640, 1371125636, 1371125630, 1371125624, 1371125619, 1371125564, 1371125562, 1371125559, 1371125554, 1371125546, 1371125521, 1371125489, 1371125485, 1371125480, 1371125476, 1371125471, 1371125466, 1371125437, 1371125435, 1371125432, 1371125429, 1371125417, 1371125402, 1371125376, 1371125374, 1371125371, 1371125369, 1371125365, 1371125361, 1371125347, 1371125345, 1371125340, 1371125331, 1371125321, 1371125310]} final : False mtd_id 4302 list_pids : [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] Looping around the photos to save general results len do output : 1 /24710277. 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, '3248895') ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24710277', "{'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303}", None, None, None, None, '3248895'), ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895')] time used for this insertion : 0.016568899154663086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5624845027923584 time spend to save output : 0.01676487922668457 total time spend for step 1 : 1.579249382019043 step2:final Tue Jul 8 04:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24710277) 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 24710277 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371125347,1371125345,1371125340,1371125331,1371125321,1371125310,1371125376,1371125374,1371125371,1371125369,1371125365,1371125361,1371125437,1371125435,1371125432,1371125429,1371125417,1371125402,1371125489,1371125485,1371125480,1371125476,1371125471,1371125466,1371125564,1371125562,1371125559,1371125554,1371125546,1371125521,1371125643,1371125640,1371125636,1371125630,1371125624,1371125619,1371125690,1371125688,1371125685,1371125682,1371125677,1371125667,1371125747,1371125744,1371125741,1371125736,1371125729,1371125724); 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([24710277]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} new output for save of step final : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] map_info['map_portfolio_photo'] : {24710277: [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667, 1371125643, 1371125640, 1371125636, 1371125630, 1371125624, 1371125619, 1371125564, 1371125562, 1371125559, 1371125554, 1371125546, 1371125521, 1371125489, 1371125485, 1371125480, 1371125476, 1371125471, 1371125466, 1371125437, 1371125435, 1371125432, 1371125429, 1371125417, 1371125402, 1371125376, 1371125374, 1371125371, 1371125369, 1371125365, 1371125361, 1371125347, 1371125345, 1371125340, 1371125331, 1371125321, 1371125310]} final : False mtd_id 4302 list_pids : [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] Looping around the photos to save general results len do output : 12 /1371125747.Didn't retrieve data . /1371125744.Didn't retrieve data . /1371125741.Didn't retrieve data . /1371125736.Didn't retrieve data . /1371125729.Didn't retrieve data . /1371125724.Didn't retrieve data . /1371125690.Didn't retrieve data . /1371125688.Didn't retrieve data . /1371125685.Didn't retrieve data . /1371125682.Didn't retrieve data . /1371125677.Didn't retrieve data . /1371125667.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, '3248895') ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24710277', '1371125747', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125744', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125741', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125736', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125729', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125724', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125690', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125688', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125685', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125682', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125677', '0.030757157019156264', None, None, None, None, '3248895'), ('4302', '24710277', '1371125667', '0.030757157019156264', None, None, None, None, '3248895')] time used for this insertion : 0.019206762313842773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06872677803039551 time spend to save output : 0.019830942153930664 total time spend for step 2 : 0.08855772018432617 step3:velours_tree Tue Jul 8 04:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24710277: [{'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303}]} input_args_next_step : {24710277: ()} output_args : {24710277: [{'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303}]} args : 24710277 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24710277) 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([24710277]) 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.27432751655578613 time spend to save output : 4.124641418457031e-05 total time spend for step 3 : 0.2743687629699707 step4:send_mail_cod Tue Jul 8 04:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} input_args_next_step : {1371125747: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125747 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125744 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125741 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125736 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125729 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125724 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125690 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125688 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125685 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125682 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125677 depend.output_id : 0 input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ()} output_args : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',)} args : 1371125667 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 : {24710277: [{'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303}]} input_args_next_step : {1371125747: ('0.030757157019156264',), 1371125744: ('0.030757157019156264',), 1371125741: ('0.030757157019156264',), 1371125736: ('0.030757157019156264',), 1371125729: ('0.030757157019156264',), 1371125724: ('0.030757157019156264',), 1371125690: ('0.030757157019156264',), 1371125688: ('0.030757157019156264',), 1371125685: ('0.030757157019156264',), 1371125682: ('0.030757157019156264',), 1371125677: ('0.030757157019156264',), 1371125667: ('0.030757157019156264',), 24710277: ()} output_args : {24710277: [{'plastique': 24710292, 'Carton_brun': 24710293, 'metal': 24710294, 'papier': 24710295, 'flou': 24710296, 'environnement': 24710297, 'Carton_gris': 24710298, 'cartonnette': 24710299, 'autre_refus': 24710300, 'mal_croppe': 24710301, 'kraft': 24710302, 'Teint_Dans_La_Masse': 24710303}]} args : 24710277 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 :13, first value : ('0.030757157019156264',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24710277) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1371125747,1371125744,1371125741,1371125736,1371125729,1371125724,1371125690,1371125688,1371125685,1371125682,1371125677,1371125667) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371125667 begin to download photo : 1371125685 begin to download photo : 1371125724 begin to download photo : 1371125741 download finish for photo 1371125667 begin to download photo : 1371125677 download finish for photo 1371125685 begin to download photo : 1371125688 download finish for photo 1371125741 begin to download photo : 1371125744 download finish for photo 1371125724 begin to download photo : 1371125729 download finish for photo 1371125677 begin to download photo : 1371125682 download finish for photo 1371125688 begin to download photo : 1371125690 download finish for photo 1371125729 begin to download photo : 1371125736 download finish for photo 1371125682 download finish for photo 1371125736 download finish for photo 1371125690 download finish for photo 1371125744 begin to download photo : 1371125747 download finish for photo 1371125747 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247102921751941501/ imagette247102941751941501/ imagette247102961751941501/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24710277_08-07-2025_04_25_01.pdf 24710292 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247102921751941501 24710294 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247102941751941501 24710296 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247102961751941501 24710299 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371125673: '1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518544_0.png', 1371125787: '1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519249_0.png', 1371125786: '1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519232_0.png', 1371125785: '1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519216_0.png', 1371125784: '1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519196_0.png', 1371125783: '1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519177_0.png', 1371125715: '1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518891_0.png', 1371125714: '1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518875_0.png', 1371125713: '1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518860_0.png', 1371125712: '1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518841_0.png', 1371125711: '1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518824_0.png', 1371125710: '1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518805_0.png', 1371125675: '1751941285_3407794_1371125402_d9930c69227e56a84afaab7db7ac760f_rle_crop_3875518572_0.png', 1371125532: '1751941165_3404108_1371125376_911329b9e9528445e332361f84429985_rle_crop_3875517995_0.png', 1371125672: '1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518537_0.png', 1371125671: '1751941285_3407794_1371125437_13ff06fc2cf843a058ed2f4f0c7a6190_rle_crop_3875518483_0.png', 1371125549: '1751941165_2456148_1371125310_d2b715e67ea3485fa0e50c14e2966c6a_rle_crop_3875518187_0.png', 1371125548: '1751941165_2456148_1371125321_7598132bfda293bf5d94fee84c0054f2_rle_crop_3875518170_0.png', 1371125547: '1751941165_2456148_1371125331_80ed7b025f01ddd8200943ee7dd73dda_rle_crop_3875518130_0.png', 1371125545: '1751941165_2456148_1371125340_e506c4fe0a379ae4cd708bda4adf0d83_rle_crop_3875518099_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7187df426ef40a05ff18aaf5e8e29239_41703469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3d98a5cd0b6f00137dd3ec5439a07f60_87339674.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fca48ca4d529a1c51496691175cc88d8_34592268.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/86be95271630d046db25a79f0a015431_181054.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/40d3c40671218fa46f71638f20bb660c_37495032.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f9deed983282cd3a27cffaad4b1abbc7_15803532.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e1216e146971bca8042478081760ab79_48630311.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bab022072437b037a30118bb11ac4186_29705746.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8164fd1cd184272faa69bec3a22a4f01_83420755.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a302e45a2efff062d11bea2716f58f51_9140289.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9e321302c5d30bd0f53909b56ed1308b_40734060.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/775159b1110f432e1f74e393f5b82090_5893378.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6786a9a7014a0a2299b438dec0af0116_480126.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d551c6216bcbe58987e62794eae30f59_3225081.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/53521ccb248c9a2a4a679e04370fe14c_11411273.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0fddcd023f721a8e16bf54be21d0854b_80793419.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/88886c952773e4349a0ca50fe0aeeefd_11698991.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c62d238b8f5069215a7fa6cd9f4add78_53865798.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/85c7ad566b78afd9d7b10b91cca5086d_46324745.png change filename to text .imagette247102991751941501/ imagette247102991751941501/1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519196_0.png.png imagette247102991751941501/1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518544_0.png.png imagette247102991751941501/1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518805_0.png.png imagette247102991751941501/1751941165_2456148_1371125331_80ed7b025f01ddd8200943ee7dd73dda_rle_crop_3875518130_0.png.png imagette247102991751941501/1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518875_0.png.png imagette247102991751941501/1751941165_3404108_1371125376_911329b9e9528445e332361f84429985_rle_crop_3875517995_0.png.png imagette247102991751941501/1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518824_0.png.png imagette247102991751941501/1751941285_3407794_1371125402_d9930c69227e56a84afaab7db7ac760f_rle_crop_3875518572_0.png.png imagette247102991751941501/1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519177_0.png.png imagette247102991751941501/1751941285_3407794_1371125437_13ff06fc2cf843a058ed2f4f0c7a6190_rle_crop_3875518483_0.png.png imagette247102991751941501/1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518537_0.png.png imagette247102991751941501/1751941165_2456148_1371125340_e506c4fe0a379ae4cd708bda4adf0d83_rle_crop_3875518099_0.png.png imagette247102991751941501/1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519249_0.png.png imagette247102991751941501/1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519216_0.png.png imagette247102991751941501/1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518841_0.png.png imagette247102991751941501/1751941165_2456148_1371125321_7598132bfda293bf5d94fee84c0054f2_rle_crop_3875518170_0.png.png imagette247102991751941501/1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518891_0.png.png imagette247102991751941501/1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519232_0.png.png imagette247102991751941501/1751941165_2456148_1371125310_d2b715e67ea3485fa0e50c14e2966c6a_rle_crop_3875518187_0.png.png imagette247102991751941501/1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518860_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ed05eb4bf1384a68fcafdf8ba65951f7_35354934.png imagette247102991751941501 24710300 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371125706: '1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518827_0.png', 1371125822: '1751941446_2465350_1371125619_18fa3736582b2c7871e6d57a51ca2def_rle_crop_3875519589_0.png', 1371125820: '1751941446_2465350_1371125624_94baf6d77ce5982869dbd177eedf7a6d_rle_crop_3875519570_0.png', 1371125819: '1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519552_0.png', 1371125818: '1751941446_2465350_1371125636_21cfc5ef647bf04cc399ebccc011b0e0_rle_crop_3875519531_0.png', 1371125816: '1751941446_2465350_1371125640_a9911c108abc3324499ca6d63da7fe1b_rle_crop_3875519515_0.png', 1371125815: '1751941446_2465350_1371125643_c0d77830fcfad89b93ade67847c998f8_rle_crop_3875519497_0.png', 1371125778: '1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519248_0.png', 1371125776: '1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519237_0.png', 1371125775: '1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519214_0.png', 1371125774: '1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519194_0.png', 1371125773: '1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519174_0.png', 1371125772: '1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519159_0.png', 1371125709: '1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518893_0.png', 1371125708: '1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518878_0.png', 1371125707: '1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518859_0.png', 1371125512: '1751941165_3404108_1371125376_911329b9e9528445e332361f84429985_rle_crop_3875517998_0.png', 1371125705: '1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518808_0.png', 1371125663: '1751941285_3407794_1371125417_06aa61a096c994d1016fdaae9e197d08_rle_crop_3875518556_0.png', 1371125662: '1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518536_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6053388fce3c288a51f60984b41782c0_45597893.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3f23374bdadc80ed5938434a0a490bf2_42577617.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8b2157a89a951dde42482f16c099403d_5590612.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f174fda6960a0874a8429d41509e9700_12876188.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/03fab8dabb4f15d12f4bd32c084bb7dc_75787544.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1480054893304f132d3e874bdb7f800d_62943377.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/705d0ef68fadaed747d6c34f4220cd3a_75876876.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3a908b206baa09b86a4d86287c47348c_60064557.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/543242c019b4a01dfebead9a6bd688a5_33464050.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3ed2286337bbda35e157105d36658383_60964231.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8bd3be0861827d947f972c67a01154ed_18335082.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3dca2d83c8481dec206e7ccc6e77e387_79126946.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1bc868098c1fa6786a2872cf85600b59_77785815.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e2ebd4967e899c0446c6342576efc603_16794912.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7c203075bfb12fe49a0b023c732d0ef6_3820479.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/db2d52b30262787b654c92b68deaf3ca_46899820.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/19a288c3f18c1ab6f5fa1fcf8bb398a1_15459877.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5253f176ddb68ed6a6002cf58f0efda9_9603125.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7932311d5498486db0cf7761b03a6037_95505792.png change filename to text .imagette247103001751941502/ imagette247103001751941502/1751941446_2465350_1371125643_c0d77830fcfad89b93ade67847c998f8_rle_crop_3875519497_0.png.png imagette247103001751941502/1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519159_0.png.png imagette247103001751941502/1751941285_3407794_1371125417_06aa61a096c994d1016fdaae9e197d08_rle_crop_3875518556_0.png.png imagette247103001751941502/1751941446_2465350_1371125624_94baf6d77ce5982869dbd177eedf7a6d_rle_crop_3875519570_0.png.png imagette247103001751941502/1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518827_0.png.png imagette247103001751941502/1751941446_2465350_1371125636_21cfc5ef647bf04cc399ebccc011b0e0_rle_crop_3875519531_0.png.png imagette247103001751941502/1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519214_0.png.png imagette247103001751941502/1751941446_2465350_1371125640_a9911c108abc3324499ca6d63da7fe1b_rle_crop_3875519515_0.png.png imagette247103001751941502/1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519174_0.png.png imagette247103001751941502/1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519552_0.png.png imagette247103001751941502/1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519237_0.png.png imagette247103001751941502/1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518859_0.png.png imagette247103001751941502/1751941165_3404108_1371125376_911329b9e9528445e332361f84429985_rle_crop_3875517998_0.png.png imagette247103001751941502/1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518808_0.png.png imagette247103001751941502/1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519194_0.png.png imagette247103001751941502/1751941285_3407794_1371125429_dafd88f873d1edf70dbedcad46e49e32_rle_crop_3875518536_0.png.png imagette247103001751941502/1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518878_0.png.png imagette247103001751941502/1751941446_2465350_1371125619_18fa3736582b2c7871e6d57a51ca2def_rle_crop_3875519589_0.png.png imagette247103001751941502/1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518893_0.png.png imagette247103001751941502/1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519248_0.png.png imagette247103011751941503/ imagette247103021751941503/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2d531f16444d91c86265eafe4e6e8a7b_82341743.png imagette247103001751941502 24710301 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247103011751941503 24710302 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247103021751941503 24710293 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371125541: '1751941165_3404108_1371125371_3ac345f8772f1b1a4b64def0587a54b1_rle_crop_3875518048_0.png', 1371125717: '1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518807_0.png', 1371125718: '1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518840_0.png', 1371125719: '1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518856_0.png', 1371125790: '1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519160_0.png', 1371125791: '1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519236_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1a432a0bdc45e27db3d8c95ac1479d0c_90168102.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/df013f34a0f927a3dceeb820d5a025c6_93043017.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/af3611827e0d3ce5051856341e808a9a_34346894.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/65bbe8b4077f5ce0416f7dff237d4fe9_55865450.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f16a9579452ce49e94b17d0b5347d1f1_93408045.png change filename to text .imagette247102931751941503/ imagette247102931751941503/1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519160_0.png.png imagette247102931751941503/1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518856_0.png.png imagette247102931751941503/1751941326_2460874_1371125489_565a5078b93678e8a0ce6bb7eeef07eb_rle_crop_3875518807_0.png.png imagette247102931751941503/1751941165_3404108_1371125371_3ac345f8772f1b1a4b64def0587a54b1_rle_crop_3875518048_0.png.png imagette247102931751941503/1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519236_0.png.png imagette247102931751941503/1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518840_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e37fb5ea13ae3538066b347a038a2ec4_42247069.png imagette247102931751941503 24710298 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371125524: '1751941165_3404108_1371125374_7025b8e3e6933d7051aca5ebec979331_rle_crop_3875518013_0.png', 1371125526: '1751941165_3404108_1371125369_8a53c3bcd303c4daa1330642afc0af99_rle_crop_3875518080_0.png', 1371125533: '1751941165_2456148_1371125347_28a19f79f7b9d93938751a984df45519_rle_crop_3875518025_0.png', 1371125535: '1751941165_2456148_1371125345_098dcc9ee9181ffe94f3dcfece35d2f8_rle_crop_3875518059_0.png', 1371125538: '1751941165_2456148_1371125340_e506c4fe0a379ae4cd708bda4adf0d83_rle_crop_3875518104_0.png', 1371125665: '1751941285_3407794_1371125437_13ff06fc2cf843a058ed2f4f0c7a6190_rle_crop_3875518487_0.png', 1371125666: '1751941285_3407794_1371125435_5d44352cb5ac0339a3810deef77ee9ae_rle_crop_3875518501_0.png', 1371125668: '1751941285_3407794_1371125402_d9930c69227e56a84afaab7db7ac760f_rle_crop_3875518566_0.png', 1371125780: '1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519246_0.png', 1371125824: '1751941446_2465350_1371125636_21cfc5ef647bf04cc399ebccc011b0e0_rle_crop_3875519527_0.png', 1371125825: '1751941446_2465350_1371125624_94baf6d77ce5982869dbd177eedf7a6d_rle_crop_3875519565_0.png', 1371125826: '1751941446_2465350_1371125619_18fa3736582b2c7871e6d57a51ca2def_rle_crop_3875519583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5ac5abb6f9edae038094e6f840482e6b_73620659.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1ee4e27e2e8e3673a9537f6a2026b2f5_18630039.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/663d69ded51b4ad4f68432e93992c8c8_21118700.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/46e861a2985a2b05f01f1cd1cbbf3acc_49934445.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/be5e6c15641ec81354554d9f46cf50ae_24832853.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/89234ba9c987b3e3386104f4c6e0496b_9382667.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bfb75cde49d8ee318695612489677a82_35715159.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/26b65df270a02f20e61ecb8ad29219c4_58625949.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/03a92dcd53fb09a864c24101c999efbb_43238364.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/dd71e49742c6364acc4db415e1da8706_12451085.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/97a4f9db69560b15a8c571e37b5b64c3_78639434.png change filename to text .imagette247102981751941503/ imagette247102981751941503/1751941165_2456148_1371125340_e506c4fe0a379ae4cd708bda4adf0d83_rle_crop_3875518104_0.png.png imagette247102981751941503/1751941285_3407794_1371125435_5d44352cb5ac0339a3810deef77ee9ae_rle_crop_3875518501_0.png.png imagette247102981751941503/1751941165_3404108_1371125369_8a53c3bcd303c4daa1330642afc0af99_rle_crop_3875518080_0.png.png imagette247102981751941503/1751941165_2456148_1371125347_28a19f79f7b9d93938751a984df45519_rle_crop_3875518025_0.png.png imagette247102981751941503/1751941165_3404108_1371125374_7025b8e3e6933d7051aca5ebec979331_rle_crop_3875518013_0.png.png imagette247102981751941503/1751941446_2465350_1371125619_18fa3736582b2c7871e6d57a51ca2def_rle_crop_3875519583_0.png.png imagette247102981751941503/1751941285_3407794_1371125437_13ff06fc2cf843a058ed2f4f0c7a6190_rle_crop_3875518487_0.png.png imagette247102981751941503/1751941165_2456148_1371125345_098dcc9ee9181ffe94f3dcfece35d2f8_rle_crop_3875518059_0.png.png imagette247102981751941503/1751941446_2465350_1371125624_94baf6d77ce5982869dbd177eedf7a6d_rle_crop_3875519565_0.png.png imagette247102981751941503/1751941446_2465350_1371125636_21cfc5ef647bf04cc399ebccc011b0e0_rle_crop_3875519527_0.png.png imagette247102981751941503/1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519246_0.png.png imagette247102981751941503/1751941285_3407794_1371125402_d9930c69227e56a84afaab7db7ac760f_rle_crop_3875518566_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/231eaa1fe8ffddcc30efd843554abbbc_16777020.png imagette247102981751941503 24710303 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371125766: '1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519220_0.png', 1371125698: '1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518846_0.png', 1371125699: '1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518864_0.png', 1371125700: '1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518857_0.png', 1371125701: '1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518881_0.png', 1371125703: '1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518898_0.png', 1371125759: '1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519161_0.png', 1371125760: '1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519156_0.png', 1371125762: '1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519181_0.png', 1371125763: '1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519175_0.png', 1371125764: '1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519199_0.png', 1371125765: '1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519193_0.png', 1371125697: '1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518826_0.png', 1371125768: '1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519238_0.png', 1371125769: '1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519233_0.png', 1371125770: '1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519256_0.png', 1371125808: '1751941446_2465350_1371125643_c0d77830fcfad89b93ade67847c998f8_rle_crop_3875519501_0.png', 1371125809: '1751941446_2465350_1371125640_a9911c108abc3324499ca6d63da7fe1b_rle_crop_3875519518_0.png', 1371125810: '1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519555_0.png', 1371125811: '1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6eec4382707815dd8b123472f9e42e3b_27388580.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/880f71b9e53a3f03707d8115819445a5_37142446.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5a5adb50d1bc9368e028294b3f63fab3_82327969.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/04391666825c8f952e59a1dd066709c1_58623316.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/887bde36bb7f92558766c6468cf12754_2625122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/95c1458572bad82f5422f4982e9264a6_95802317.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/80f48de71849e8c142cc05fb4f1f6143_42897753.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bc2bc8a6c8de57fefaa7df2a8fc471f8_15684897.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/803c23ac8ad292fd1d51f27bf9d20247_85936216.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f8b6ac7b1288f8077e436b9cdc858145_57423261.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1019181e44495df0508aa9b01f049f39_26423962.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cb2000786d9c9b65bf621e172224dcb1_6330361.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/be834acb252e66e823c6ea013413d9a8_74654888.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0fcde26c1a0f0a61bf0895e4989cfc5e_10987362.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/360c456a928ab8391cd10c4215690839_52710240.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8389fb1575cb2b7c47c00357ad7cbe24_81899763.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/48138e899218376e2b39419a73103b65_82085771.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/80b525c8a5ed6875a000627494c80ffb_33907294.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5317fc864bcd16f3f0f507fc16aa619a_90107905.png change filename to text .imagette247103031751941504/ imagette247103031751941504/1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519233_0.png.png imagette247103031751941504/1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519181_0.png.png imagette247103031751941504/1751941405_3410554_1371125554_103e3c5c49905d85eb5892da730489bd_rle_crop_3875519220_0.png.png imagette247103031751941504/1751941326_2460874_1371125480_da5268fc3e2925ce479471599b7febba_rle_crop_3875518846_0.png.png imagette247103031751941504/1751941405_3410554_1371125562_889f59a39a2174bd98b4e75a1fc65f14_rle_crop_3875519175_0.png.png imagette247103031751941504/1751941446_2465350_1371125640_a9911c108abc3324499ca6d63da7fe1b_rle_crop_3875519518_0.png.png imagette247103031751941504/1751941405_3410554_1371125546_d8a7381d775c26cd18828bc156109ad3_rle_crop_3875519238_0.png.png imagette247103031751941504/1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519156_0.png.png imagette247103031751941504/1751941326_2460874_1371125466_f1b6fc1fc7c87dc7105da13665f8d10c_rle_crop_3875518898_0.png.png imagette247103031751941504/1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518857_0.png.png imagette247103031751941504/1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519193_0.png.png imagette247103031751941504/1751941405_3410554_1371125559_a5571d6dd65b298e2b7e2f4ed40076e1_rle_crop_3875519199_0.png.png imagette247103031751941504/1751941326_2460874_1371125471_ac4da0abb5bc49d32649c72b24dc2f17_rle_crop_3875518881_0.png.png imagette247103031751941504/1751941326_2460874_1371125485_c09a1e53a64a46685c07367101c8f8e4_rle_crop_3875518826_0.png.png imagette247103031751941504/1751941405_3410554_1371125564_ad218c158db42c90ee913866c0eb9a95_rle_crop_3875519161_0.png.png imagette247103031751941504/1751941405_3410554_1371125521_0d7232f688c6f74fc9b44960abbfd61c_rle_crop_3875519256_0.png.png imagette247103031751941504/1751941326_2460874_1371125476_2918de579e62d3180ac69c8116d0a582_rle_crop_3875518864_0.png.png imagette247103031751941504/1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519555_0.png.png imagette247103031751941504/1751941446_2465350_1371125643_c0d77830fcfad89b93ade67847c998f8_rle_crop_3875519501_0.png.png imagette247103031751941504/1751941446_2465350_1371125630_80a601baf27321af81bb450e7ccc8617_rle_crop_3875519551_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5417b5edd703867dbcc135abfb3746f7_14164410.png imagette247103031751941504 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24710277 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24710304,24710305,24710306,24710307,24710308,24710309,24710310,24710311,24710312,24710313,24710314,24710315?tags=plastique,Carton_brun,metal,papier,flou,environnement,Carton_gris,cartonnette,autre_refus,mal_croppe,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1371125747] : ('0.030757157019156264',) no score found for photo 1371125747 We are sending mail with results at report@fotonower.com args[1371125744] : ('0.030757157019156264',) no score found for photo 1371125744 We are sending mail with results at report@fotonower.com args[1371125741] : ('0.030757157019156264',) no score found for photo 1371125741 We are sending mail with results at report@fotonower.com args[1371125736] : ('0.030757157019156264',) no score found for photo 1371125736 We are sending mail with results at report@fotonower.com args[1371125729] : ('0.030757157019156264',) no score found for photo 1371125729 We are sending mail with results at report@fotonower.com args[1371125724] : ('0.030757157019156264',) no score found for photo 1371125724 We are sending mail with results at report@fotonower.com args[1371125690] : ('0.030757157019156264',) no score found for photo 1371125690 We are sending mail with results at report@fotonower.com args[1371125688] : ('0.030757157019156264',) no score found for photo 1371125688 We are sending mail with results at report@fotonower.com args[1371125685] : ('0.030757157019156264',) no score found for photo 1371125685 We are sending mail with results at report@fotonower.com args[1371125682] : ('0.030757157019156264',) no score found for photo 1371125682 We are sending mail with results at report@fotonower.com args[1371125677] : ('0.030757157019156264',) no score found for photo 1371125677 We are sending mail with results at report@fotonower.com args[1371125667] : ('0.030757157019156264',) no score found for photo 1371125667 We are sending mail with results at report@fotonower.com refus_total : 0.030757157019156264 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710277 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_P24710277_08-07-2025_04_25_01.pdf results_Auto_P24710277_08-07-2025_04_25_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_04_25_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24710277','results_Auto_P24710277_08-07-2025_04_25_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_04_25_01.pdf','pdf','','0.28','0.030757157019156264') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24710277]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] map_info['map_portfolio_photo'] : {24710277: [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667, 1371125643, 1371125640, 1371125636, 1371125630, 1371125624, 1371125619, 1371125564, 1371125562, 1371125559, 1371125554, 1371125546, 1371125521, 1371125489, 1371125485, 1371125480, 1371125476, 1371125471, 1371125466, 1371125437, 1371125435, 1371125432, 1371125429, 1371125417, 1371125402, 1371125376, 1371125374, 1371125371, 1371125369, 1371125365, 1371125361, 1371125347, 1371125345, 1371125340, 1371125331, 1371125321, 1371125310]} final : False mtd_id 4302 list_pids : [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] 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, '3248895') ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24710277', '1371125747', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895')] time used for this insertion : 0.025571584701538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.13779902458191 time spend to save output : 0.025803565979003906 total time spend for step 4 : 8.163602590560913 step5:split_time_score Tue Jul 8 04:25:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24710277'] 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 : [('24710277',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24710277) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371125667: {'path': 'temp/1751941498_1416215_1371125667_ffc10030edfc6eef164f9642d5482472.jpg', 'extension': 'jpg'}, 1371125677: {'path': 'temp/1751941498_1416215_1371125677_cd0f668e62fc1d6b7413d03763f0ce98.jpg', 'extension': 'jpg'}, 1371125682: {'path': 'temp/1751941498_1416215_1371125682_523c977ec26797df94f24bde8e4c4fdb.jpg', 'extension': 'jpg'}, 1371125724: {'path': 'temp/1751941498_1416215_1371125724_c43efebb21ae9ccd1248b48261450623.jpg', 'extension': 'jpg'}, 1371125729: {'path': 'temp/1751941498_1416215_1371125729_884068a29b519034dbda584c402c6e8b.jpg', 'extension': 'jpg'}, 1371125736: {'path': 'temp/1751941498_1416215_1371125736_2cba553c29789dfc06ca320b33abd62f.jpg', 'extension': 'jpg'}, 1371125685: {'path': 'temp/1751941498_1416215_1371125685_58a20dfc4c37a5627ec29b9dda8ffb38.jpg', 'extension': 'jpg'}, 1371125688: {'path': 'temp/1751941498_1416215_1371125688_97cff01a3ff81fa1da3de8b6e16f6ad8.jpg', 'extension': 'jpg'}, 1371125690: {'path': 'temp/1751941498_1416215_1371125690_b4f89d2b9fa25ea3df2046bf22d37d56.jpg', 'extension': 'jpg'}, 1371125741: {'path': 'temp/1751941498_1416215_1371125741_fe87d26748d5131ad0fd1b979d05674f.jpg', 'extension': 'jpg'}, 1371125744: {'path': 'temp/1751941498_1416215_1371125744_00ca3c0b771f38c3b0a5563b35573894.jpg', 'extension': 'jpg'}, 1371125747: {'path': 'temp/1751941498_1416215_1371125747_44e83c1c0011baeb96d141d88743abd0.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 = 24710277; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24710277 group by h (('04', 48),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24710277 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 (24710277) 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 (24710277) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24710277 Nombre de photos uploadées : 48 / 23040 (0%) 08072025 24710277 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 08072025 24710277 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1371125347, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/28a19f79f7b9d93938751a984df45519.jpg', 'username': None, 'uploaded_at': 1751940964, 'text': 'image_08072025_04_15_03_9124.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371125345, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/098dcc9ee9181ffe94f3dcfece35d2f8.jpg', 'username': None, 'uploaded_at': 1751940964, 'text': 'image_08072025_04_15_13_10135.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371125340, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e506c4fe0a379ae4cd708bda4adf0d83.jpg', 'username': None, 'uploaded_at': 1751940964, 'text': 'image_08072025_04_15_23_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371125331, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/80ed7b025f01ddd8200943ee7dd73dda.jpg', 'username': None, 'uploaded_at': 1751940964, 'text': 'image_08072025_04_15_33_10134.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002141237258911133 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24710277, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02474689483642578 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12263897, '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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12263898, '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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12263899, '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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12263900, '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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12263901, '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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12263902, '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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12263903, '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_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24705431, 'dashboard_result_id': 12263904, '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_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24706018, 'dashboard_result_id': 12263905, '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_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24706657, 'dashboard_result_id': 12263906, '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_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24707037, 'dashboard_result_id': 12263907, '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_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24707471, 'dashboard_result_id': 12263908, '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_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24707886, 'dashboard_result_id': 12263909, '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_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24708456, 'dashboard_result_id': 12263910, '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_P24708456_08-07-2025_03_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24708864, 'dashboard_result_id': 12263911, '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_P24708864_08-07-2025_03_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24709305, 'dashboard_result_id': 12263912, '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_P24709305_08-07-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24709706, 'dashboard_result_id': 12263913, '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_P24709706_08-07-2025_04_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968369, 'mtr_portfolio_id': 24710277, 'dashboard_result_id': 12263914, '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_P24710277_08-07-2025_04_22_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, '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 = 24702229 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': 3248100, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 0, 16, 29), 'result': '0.03432764518805383', 'result_long': None, 'result_double': None}] Qualite : 0.03432764518805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1968369 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263897, 0.03432764518805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3248151, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 0, 32, 58), 'result': '0.029028561484370358', 'result_long': None, 'result_double': None}] Qualite : 0.029028561484370358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1968369 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263898, 0.029028561484370358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3248189, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 0, 46, 30), 'result': '0.0338677238874439', 'result_long': None, 'result_double': None}] Qualite : 0.0338677238874439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1968369 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263899, 0.0338677238874439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3248233, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 1, 0, 58), 'result': '0.03287787548647065', 'result_long': None, 'result_double': None}] Qualite : 0.03287787548647065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1968369 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263900, 0.03287787548647065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3248282, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 1, 16, 30), 'result': '0.05429139786994954', 'result_long': None, 'result_double': None}] Qualite : 0.05429139786994954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1968369 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263901, 0.05429139786994954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3248323, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 1, 33), 'result': '0.051405322418618504', 'result_long': None, 'result_double': None}] Qualite : 0.051405322418618504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1968369 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263902, 0.051405322418618504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3248364, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 1, 46, 29), 'result': '0.04872368510622181', 'result_long': None, 'result_double': None}] Qualite : 0.04872368510622181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1968369 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263903, 0.04872368510622181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24705431 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': 3248419, 'mtr_portfolio_id': 24705431, 'created_at': datetime.datetime(2025, 7, 8, 2, 2, 59), 'result': '0.03593759906248776', 'result_long': None, 'result_double': None}] Qualite : 0.03593759906248776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705431 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_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}" where mtr_portfolio_id = 24705431 and dashboard_run_id = 1968369 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`=24705431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263904, 0.03593759906248776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, '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 = 24706018 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': 3248477, 'mtr_portfolio_id': 24706018, 'created_at': datetime.datetime(2025, 7, 8, 2, 16, 56), 'result': '0.04979104997550057', 'result_long': None, 'result_double': None}] Qualite : 0.04979104997550057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_02_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706018 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_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}" where mtr_portfolio_id = 24706018 and dashboard_run_id = 1968369 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`=24706018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263905, 0.04979104997550057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, '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 = 24706657 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': 3248529, 'mtr_portfolio_id': 24706657, 'created_at': datetime.datetime(2025, 7, 8, 2, 33, 30), 'result': '0.06157198977439709', 'result_long': None, 'result_double': None}] Qualite : 0.06157198977439709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_02_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706657 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_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}" where mtr_portfolio_id = 24706657 and dashboard_run_id = 1968369 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`=24706657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263906, 0.06157198977439709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, '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 = 24707037 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': 3248565, 'mtr_portfolio_id': 24707037, 'created_at': datetime.datetime(2025, 7, 8, 2, 46, 28), 'result': '0.0514299607126689', 'result_long': None, 'result_double': None}] Qualite : 0.0514299607126689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_02_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707037 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_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}" where mtr_portfolio_id = 24707037 and dashboard_run_id = 1968369 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`=24707037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263907, 0.0514299607126689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, '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 = 24707471 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': 3248606, 'mtr_portfolio_id': 24707471, 'created_at': datetime.datetime(2025, 7, 8, 3, 3, 28), 'result': '0.0460695503295449', 'result_long': None, 'result_double': None}] Qualite : 0.0460695503295449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_03_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707471 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_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}" where mtr_portfolio_id = 24707471 and dashboard_run_id = 1968369 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`=24707471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263908, 0.0460695503295449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, '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 = 24707886 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': 3248664, 'mtr_portfolio_id': 24707886, 'created_at': datetime.datetime(2025, 7, 8, 3, 16, 58), 'result': '0.037421865257762185', 'result_long': None, 'result_double': None}] Qualite : 0.037421865257762185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707886 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_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}" where mtr_portfolio_id = 24707886 and dashboard_run_id = 1968369 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`=24707886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263909, 0.037421865257762185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, '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 = 24708456 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': 3248715, 'mtr_portfolio_id': 24708456, 'created_at': datetime.datetime(2025, 7, 8, 3, 33), 'result': '0.04112340774335797', 'result_long': None, 'result_double': None}] Qualite : 0.04112340774335797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708456 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_P24708456_08-07-2025_03_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}" where mtr_portfolio_id = 24708456 and dashboard_run_id = 1968369 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`=24708456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263910, 0.04112340774335797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 = 24708864 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': 3248752, 'mtr_portfolio_id': 24708864, 'created_at': datetime.datetime(2025, 7, 8, 3, 46, 30), 'result': '0.053626281464969915', 'result_long': None, 'result_double': None}] Qualite : 0.053626281464969915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_03_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708864 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_P24708864_08-07-2025_03_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}" where mtr_portfolio_id = 24708864 and dashboard_run_id = 1968369 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`=24708864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263911, 0.053626281464969915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_03_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, '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 = 24709305 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': 3248795, 'mtr_portfolio_id': 24709305, 'created_at': datetime.datetime(2025, 7, 8, 4, 2, 59), 'result': '0.0267791551734637', 'result_long': None, 'result_double': None}] Qualite : 0.0267791551734637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709305 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_P24709305_08-07-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}" where mtr_portfolio_id = 24709305 and dashboard_run_id = 1968369 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`=24709305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263912, 0.0267791551734637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, '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 = 24709706 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': 3248851, 'mtr_portfolio_id': 24709706, 'created_at': datetime.datetime(2025, 7, 8, 4, 16, 57), 'result': '0.040617658616581655', 'result_long': None, 'result_double': None}] Qualite : 0.040617658616581655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_04_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709706 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_P24709706_08-07-2025_04_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}" where mtr_portfolio_id = 24709706 and dashboard_run_id = 1968369 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`=24709706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263913, 0.040617658616581655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_04_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, '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 = 24710277 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': 3248895, 'mtr_portfolio_id': 24710277, 'created_at': datetime.datetime(2025, 7, 8, 4, 24, 58), 'result': '0.030757157019156264', 'result_long': None, 'result_double': None}] Qualite : 0.030757157019156264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_04_25_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710277 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_P24710277_08-07-2025_04_25_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}" where mtr_portfolio_id = 24710277 and dashboard_run_id = 1968369 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`=24710277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12263914, 0.030757157019156264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_04_25_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055,24705431,24706018,24706657,24707037,24707471,24707886,24708456,24708864,24709305,24709706,24710277) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,), (1371111008,), (1371111012,), (1371111015,), (1371111019,), (1371111022,), (1371111024,), (1371111038,), (1371111044,), (1371111048,), (1371111055,), (1371111061,), (1371111062,), (1371111078,), (1371111083,), (1371111087,), (1371111089,), (1371111096,), (1371111099,), (1371111110,), (1371111112,), (1371111115,), (1371111118,), (1371111122,), (1371111126,), (1371111135,), (1371111138,), (1371111143,), (1371111148,), (1371111152,), (1371111155,), (1371111176,), (1371111179,), (1371111181,), (1371111184,), (1371111186,), (1371111190,), (1371111214,), (1371111218,), (1371111224,), (1371111229,), (1371111233,), (1371111236,), (1371111256,), (1371111261,), (1371111265,), (1371111269,), (1371111271,), (1371111272,), (1371111312,), (1371111316,), (1371111321,), (1371111331,), (1371111337,), (1371111342,), (1371111357,), (1371111364,), (1371111370,), (1371111381,), (1371111385,), (1371111386,), (1371111398,), (1371111403,), (1371111406,), (1371111408,), (1371111410,), (1371111411,), (1371111436,), (1371111441,), (1371111443,), (1371111446,), (1371111449,), (1371111450,), (1371111800,), (1371111869,), (1371111935,), (1371112005,), (1371112071,), (1371112141,), (1371113397,), (1371113435,), (1371113473,), (1371113512,), (1371113544,), (1371113576,), (1371113821,), (1371113891,), (1371113964,), (1371114061,), (1371114131,), (1371114262,), (1371114298,), (1371114422,), (1371114493,), (1371114565,), (1371114632,), (1371114816,), (1371114822,), (1371114855,), (1371114866,), (1371114894,), (1371114914,), (1371115019,), (1371115052,), (1371115065,), (1371115067,), (1371115072,), (1371115106,), (1371115167,), (1371115171,), (1371115176,), (1371115180,), (1371115183,), (1371115184,), (1371115208,), (1371115212,), (1371115216,), (1371115218,), (1371115221,), (1371115223,), (1371115244,), (1371115246,), (1371115248,), (1371115250,), (1371115252,), (1371115254,), (1371115289,), (1371115292,), (1371115294,), (1371115295,), (1371115296,), (1371115299,), (1371115313,), (1371115315,), (1371115318,), (1371115320,), (1371115324,), (1371115326,), (1371115343,), (1371115344,), (1371115345,), (1371115347,), (1371115348,), (1371115350,), (1371115371,), (1371115375,), (1371115378,), (1371115381,), (1371115384,), (1371115385,), (1371115410,), (1371115418,), (1371115422,), (1371115426,), (1371115428,), (1371115429,), (1371115459,), (1371115462,), (1371115465,), (1371115468,), (1371115470,), (1371115472,), (1371115491,), (1371115494,), (1371115496,), (1371115498,), (1371115500,), (1371115503,), (1371115525,), (1371115528,), (1371115531,), (1371115538,), (1371115540,), (1371115542,), (1371115559,), (1371115560,), (1371115562,), (1371115563,), (1371115565,), (1371115568,), (1371115585,), (1371115587,), (1371115597,), (1371115602,), (1371115607,), (1371115609,), (1371115616,), (1371115618,), (1371115620,), (1371115623,), (1371115624,), (1371115628,), (1371115643,), (1371115645,), (1371115648,), (1371115650,), (1371115652,), (1371115653,), (1371115661,), (1371115665,), (1371115667,), (1371115671,), (1371115674,), (1371115676,), (1371115704,), (1371115708,), (1371115712,), (1371115714,), (1371115716,), (1371115717,), (1371115727,), (1371115730,), (1371115734,), (1371115736,), (1371115738,), (1371115739,), (1371115747,), (1371115752,), (1371115755,), (1371115758,), (1371115761,), (1371115762,), (1371115772,), (1371115775,), (1371115778,), (1371115780,), (1371115783,), (1371115784,), (1371115799,), (1371115803,), (1371115806,), (1371115808,), (1371115811,), (1371115813,), (1371115819,), (1371115821,), (1371115823,), (1371115825,), (1371115828,), (1371115830,), (1371115846,), (1371115848,), (1371115851,), (1371115853,), (1371115856,), (1371115864,), (1371115878,), (1371115880,), (1371115883,), (1371115885,), (1371115888,), (1371115890,), (1371115901,), (1371115903,), (1371115906,), (1371115908,), (1371115910,), (1371115911,), (1371115925,), (1371115928,), (1371115931,), (1371115934,), (1371115938,), (1371115947,), (1371115958,), (1371115961,), (1371115964,), (1371115966,), (1371115970,), (1371115973,), (1371115989,), (1371115993,), (1371115996,), (1371116000,), (1371116003,), (1371116005,), (1371116017,), (1371116025,), (1371116029,), (1371116032,), (1371116034,), (1371116035,), (1371116053,), (1371116057,), (1371116061,), (1371116063,), (1371116065,), (1371116066,), (1371116077,), (1371116082,), (1371116087,), (1371116091,), (1371116093,), (1371116094,), (1371116101,), (1371116105,), (1371116109,), (1371116113,), (1371116115,), (1371116117,), (1371116129,), (1371116132,), (1371116134,), (1371116137,), (1371116140,), (1371116142,), (1371116160,), (1371116163,), (1371116165,), (1371116169,), (1371116172,), (1371116174,), (1371116193,), (1371116198,), (1371116200,), (1371116203,), (1371116205,), (1371116206,), (1371116212,), (1371116216,), (1371116220,), (1371116225,), (1371116228,), (1371116229,), (1371116240,), (1371116244,), (1371116248,), (1371116251,), (1371116253,), (1371116254,), (1371116286,), (1371116290,), (1371116293,), (1371116296,), (1371116298,), (1371116299,), (1371116305,), (1371116308,), (1371116319,), (1371116323,), (1371116325,), (1371116326,), (1371116342,), (1371116346,), (1371116349,), (1371116352,), (1371116354,), (1371116356,), (1371116366,), (1371116371,), (1371116373,), (1371116375,), (1371116377,), (1371116378,), (1371116405,), (1371116410,), (1371116414,), (1371116417,), (1371116419,), (1371116421,), (1371116437,), (1371116444,), (1371116450,), (1371116453,), (1371116455,), (1371116456,), (1371116464,), (1371116468,), (1371116471,), (1371116474,), (1371116476,), (1371116477,), (1371116487,), (1371116490,), (1371116493,), (1371116496,), (1371116498,), (1371116499,), (1371116520,), (1371116525,), (1371116528,), (1371116531,), (1371116533,), (1371116534,), (1371116551,), (1371116557,), (1371116560,), (1371116563,), (1371116565,), (1371116566,), (1371116596,), (1371116600,), (1371116603,), (1371116607,), (1371116609,), (1371116610,), (1371116624,), (1371116632,), (1371116634,), (1371116636,), (1371116638,), (1371116640,), (1371116653,), (1371116656,), (1371116660,), (1371116663,), (1371116665,), (1371116666,), (1371116677,), (1371116681,), (1371116683,), (1371116685,), (1371116688,), (1371116690,), (1371116697,), (1371116699,), (1371116702,), (1371116704,), (1371116706,), (1371116709,), (1371116717,), (1371116721,), (1371116724,), (1371116726,), (1371116729,), (1371116731,), (1371116747,), (1371116750,), (1371116753,), (1371116755,), (1371116758,), (1371116760,), (1371116835,), (1371116878,), (1371116915,), (1371116949,), (1371116983,), (1371117016,), (1371117526,), (1371117562,), (1371117600,), (1371117638,), (1371117676,), (1371117710,), (1371117976,), (1371118016,), (1371118052,), (1371118089,), (1371118127,), (1371118432,), (1371118475,), (1371118510,), (1371118545,), (1371118582,), (1371118633,), (1371119054,), (1371119090,), (1371119148,), (1371119219,), (1371119266,), (1371119318,), (1371119429,), (1371119433,), (1371119438,), (1371119442,), (1371119448,), (1371119481,), (1371119661,), (1371119687,), (1371119690,), (1371119724,), (1371119732,), (1371119734,), (1371119757,), (1371119759,), (1371119761,), (1371119765,), (1371119768,), (1371119771,), (1371119785,), (1371119789,), (1371119794,), (1371119798,), (1371119801,), (1371119802,), (1371119822,), (1371119829,), (1371119835,), (1371119839,), (1371119843,), (1371119844,), (1371119865,), (1371119869,), (1371119872,), (1371119875,), (1371119877,), (1371119880,), (1371119898,), (1371119900,), (1371119902,), (1371119904,), (1371119907,), (1371119910,), (1371119961,), (1371119965,), (1371119967,), (1371119970,), (1371119974,), (1371119975,), (1371119992,), (1371119996,), (1371119999,), (1371120001,), (1371120004,), (1371120006,), (1371120031,), (1371120034,), (1371120037,), (1371120040,), (1371120044,), (1371120047,), (1371120077,), (1371120080,), (1371120082,), (1371120084,), (1371120087,), (1371120089,), (1371120124,), (1371120128,), (1371120132,), (1371120133,), (1371120141,), (1371120142,), (1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,), (1371120558,), (1371120562,), (1371120563,), (1371120565,), (1371120568,), (1371120570,), (1371120598,), (1371120600,), (1371120602,), (1371120605,), (1371120608,), (1371120610,), (1371120631,), (1371120633,), (1371120634,), (1371120636,), (1371120638,), (1371120641,), (1371120659,), (1371120664,), (1371120665,), (1371120667,), (1371120669,), (1371120671,), (1371120689,), (1371120693,), (1371120697,), (1371120701,), (1371120704,), (1371120706,), (1371120760,), (1371120762,), (1371120765,), (1371120767,), (1371120769,), (1371120771,), (1371120803,), (1371120807,), (1371120810,), (1371120811,), (1371120812,), (1371120813,), (1371120827,), (1371120832,), (1371120835,), (1371120845,), (1371120855,), (1371120859,), (1371120885,), (1371120895,), (1371120897,), (1371120899,), (1371120900,), (1371120901,), (1371120910,), (1371120913,), (1371120915,), (1371120917,), (1371120919,), (1371120922,), (1371120949,), (1371120958,), (1371120961,), (1371120964,), (1371120969,), (1371120972,), (1371120991,), (1371120996,), (1371120999,), (1371121002,), (1371121004,), (1371121006,), (1371121028,), (1371121032,), (1371121035,), (1371121037,), (1371121039,), (1371121041,), (1371121064,), (1371121070,), (1371121076,), (1371121081,), (1371121086,), (1371121087,), (1371121097,), (1371121101,), (1371121106,), (1371121109,), (1371121111,), (1371121112,), (1371121153,), (1371121158,), (1371121163,), (1371121166,), (1371121168,), (1371121169,), (1371121189,), (1371121192,), (1371121199,), (1371121202,), (1371121206,), (1371121208,), (1371121226,), (1371121232,), (1371121238,), (1371121241,), (1371121245,), (1371121247,), (1371121258,), (1371121261,), (1371121266,), (1371121269,), (1371121273,), (1371121276,), (1371121284,), (1371121286,), (1371121289,), (1371121292,), (1371121296,), (1371121300,), (1371121322,), (1371121325,), (1371121328,), (1371121331,), (1371121333,), (1371121335,), (1371121351,), (1371121355,), (1371121360,), (1371121364,), (1371121367,), (1371121369,), (1371121387,), (1371121392,), (1371121397,), (1371121402,), (1371121404,), (1371121405,), (1371121431,), (1371121437,), (1371121441,), (1371121444,), (1371121446,), (1371121447,), (1371121464,), (1371121471,), (1371121475,), (1371121479,), (1371121482,), (1371121484,), (1371121520,), (1371121525,), (1371121527,), (1371121529,), (1371121531,), (1371121533,), (1371121544,), (1371121549,), (1371121554,), (1371121558,), (1371121561,), (1371121562,), (1371121576,), (1371121580,), (1371121583,), (1371121586,), (1371121589,), (1371121593,), (1371121614,), (1371121621,), (1371121625,), (1371121630,), (1371121633,), (1371121634,), (1371121638,), (1371121641,), (1371121643,), (1371121646,), (1371121651,), (1371121654,), (1371121676,), (1371121680,), (1371121685,), (1371121689,), (1371121693,), (1371121696,), (1371121708,), (1371121711,), (1371121713,), (1371121716,), (1371121721,), (1371121725,), (1371121745,), (1371121751,), (1371121756,), (1371121759,), (1371121762,), (1371121764,), (1371122659,), (1371122729,), (1371122796,), (1371122863,), (1371122949,), (1371123040,), (1371123314,), (1371123426,), (1371123487,), (1371123552,), (1371123618,), (1371123816,), (1371123849,), (1371123882,), (1371123915,), (1371123948,), (1371123981,), (1371124176,), (1371124229,), (1371124263,), (1371124293,), (1371124324,), (1371124344,), (1371124452,), (1371124487,), (1371124520,), (1371124552,), (1371124586,), (1371124616,), (1371124724,), (1371124729,), (1371124761,), (1371124782,), (1371124786,), (1371124788,), (1371124819,), (1371124822,), (1371124826,), (1371124828,), (1371124830,), (1371124834,), (1371124865,), (1371124870,), (1371124874,), (1371124877,), (1371124880,), (1371124882,), (1371124902,), (1371124909,), (1371124915,), (1371124918,), (1371124921,), (1371124923,), (1371124933,), (1371124939,), (1371124944,), (1371124950,), (1371124967,), (1371124970,), (1371124995,), (1371124999,), (1371125003,), (1371125008,), (1371125012,), (1371125016,), (1371125037,), (1371125043,), (1371125048,), (1371125050,), (1371125053,), (1371125054,), (1371125115,), (1371125122,), (1371125127,), (1371125131,), (1371125134,), (1371125136,), (1371125152,), (1371125158,), (1371125163,), (1371125170,), (1371125171,), (1371125173,), (1371125188,), (1371125194,), (1371125200,), (1371125203,), (1371125207,), (1371125208,), (1371125226,), (1371125229,), (1371125233,), (1371125236,), (1371125240,), (1371125243,), (1371125267,), (1371125272,), (1371125277,), (1371125280,), (1371125285,), (1371125289,), (1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24710277]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] map_info['map_portfolio_photo'] : {24710277: [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667, 1371125643, 1371125640, 1371125636, 1371125630, 1371125624, 1371125619, 1371125564, 1371125562, 1371125559, 1371125554, 1371125546, 1371125521, 1371125489, 1371125485, 1371125480, 1371125476, 1371125471, 1371125466, 1371125437, 1371125435, 1371125432, 1371125429, 1371125417, 1371125402, 1371125376, 1371125374, 1371125371, 1371125369, 1371125365, 1371125361, 1371125347, 1371125345, 1371125340, 1371125331, 1371125321, 1371125310]} final : True mtd_id 4302 list_pids : [1371125747, 1371125744, 1371125741, 1371125736, 1371125729, 1371125724, 1371125690, 1371125688, 1371125685, 1371125682, 1371125677, 1371125667] Looping around the photos to save general results len do output : 1 /24710277Didn'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, '3248895') ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895') ('4302', None, None, None, None, None, None, None, '3248895') ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24710277', 'None', None, None, None, None, '3248895'), ('4302', '24710277', '1371125747', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125744', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125741', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125736', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125729', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125724', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125690', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125688', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125685', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125682', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125677', None, None, None, None, None, '3248895'), ('4302', '24710277', '1371125667', None, None, None, None, None, '3248895')] time used for this insertion : 0.027203083038330078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1370503902435303 time spend to save output : 0.027458906173706055 total time spend for step 5 : 1.1645092964172363 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 (3248895) 2.13user 2.53system 0:12.68elapsed 36%CPU (0avgtext+0avgdata 161912maxresident)k 24inputs+15288outputs (0major+71914minor)pagefaults 0swaps