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 : 3484946 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 (3253406) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3253406) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757131 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3253406'] with mtr_portfolio_ids : ['24757131'] and first list_photo_ids : [] new path : /proc/3484946/ Name: python3 Umask: 0002 State: R (running) Tgid: 3484946 Ngid: 0 Pid: 3484946 PPid: 3484945 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3484946 NSpid: 3484946 NSpgid: 3484377 NSsid: 3484377 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99564 kB VmRSS: 99564 kB RssAnon: 59804 kB RssFile: 39760 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 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: 52 nonvoluntary_ctxt_switches: 164 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3484946', 'Ngid': '0', 'Pid': '3484946', 'PPid': '3484945', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3484946', 'NSpid': '3484946', 'NSpgid': '3484377', 'NSsid': '3484377', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99564 kB', 'VmRSS': '99564 kB', 'RssAnon': '59804 kB', 'RssFile': '39760 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 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': '52', 'nonvoluntary_ctxt_switches': '164'} ('datou_batch_current', '3484946', '1106868', '0', '1106868', '865620', '99564', b'', 'marlene', '3253406') 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 (24757131) 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 (3253406 ) ) 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 (24757131) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371411992, 'portfolio_id': 24757131}, {'photo_id': 1371411990, 'portfolio_id': 24757131}, {'photo_id': 1371411983, 'portfolio_id': 24757131}, {'photo_id': 1371411982, 'portfolio_id': 24757131}, {'photo_id': 1371411980, 'portfolio_id': 24757131}, {'photo_id': 1371411976, 'portfolio_id': 24757131}, {'photo_id': 1371411937, 'portfolio_id': 24757131}, {'photo_id': 1371411935, 'portfolio_id': 24757131}, {'photo_id': 1371411933, 'portfolio_id': 24757131}, {'photo_id': 1371411931, 'portfolio_id': 24757131}, {'photo_id': 1371411929, 'portfolio_id': 24757131}, {'photo_id': 1371411928, 'portfolio_id': 24757131}, {'photo_id': 1371411909, 'portfolio_id': 24757131}, {'photo_id': 1371411908, 'portfolio_id': 24757131}, {'photo_id': 1371411905, 'portfolio_id': 24757131}, {'photo_id': 1371411904, 'portfolio_id': 24757131}, {'photo_id': 1371411902, 'portfolio_id': 24757131}, {'photo_id': 1371411900, 'portfolio_id': 24757131}, {'photo_id': 1371411898, 'portfolio_id': 24757131}, {'photo_id': 1371411897, 'portfolio_id': 24757131}, {'photo_id': 1371411894, 'portfolio_id': 24757131}, {'photo_id': 1371411893, 'portfolio_id': 24757131}, {'photo_id': 1371411890, 'portfolio_id': 24757131}, {'photo_id': 1371411889, 'portfolio_id': 24757131}, {'photo_id': 1371411864, 'portfolio_id': 24757131}, {'photo_id': 1371411861, 'portfolio_id': 24757131}, {'photo_id': 1371411857, 'portfolio_id': 24757131}, {'photo_id': 1371411854, 'portfolio_id': 24757131}, {'photo_id': 1371411851, 'portfolio_id': 24757131}, {'photo_id': 1371411847, 'portfolio_id': 24757131}, {'photo_id': 1371411584, 'portfolio_id': 24757131}, {'photo_id': 1371411559, 'portfolio_id': 24757131}, {'photo_id': 1371411534, 'portfolio_id': 24757131}, {'photo_id': 1371411507, 'portfolio_id': 24757131}, {'photo_id': 1371411491, 'portfolio_id': 24757131}, {'photo_id': 1371411489, 'portfolio_id': 24757131}, {'photo_id': 1371411482, 'portfolio_id': 24757131}, {'photo_id': 1371411481, 'portfolio_id': 24757131}, {'photo_id': 1371411477, 'portfolio_id': 24757131}, {'photo_id': 1371411476, 'portfolio_id': 24757131}, {'photo_id': 1371411469, 'portfolio_id': 24757131}, {'photo_id': 1371411468, 'portfolio_id': 24757131}, {'photo_id': 1371411459, 'portfolio_id': 24757131}, {'photo_id': 1371411457, 'portfolio_id': 24757131}, {'photo_id': 1371411455, 'portfolio_id': 24757131}, {'photo_id': 1371411454, 'portfolio_id': 24757131}, {'photo_id': 1371411450, 'portfolio_id': 24757131}, {'photo_id': 1371411449, 'portfolio_id': 24757131}, {'photo_id': 1371411424, 'portfolio_id': 24757131}, {'photo_id': 1371411420, 'portfolio_id': 24757131}, {'photo_id': 1371411417, 'portfolio_id': 24757131}, {'photo_id': 1371411412, 'portfolio_id': 24757131}, {'photo_id': 1371411408, 'portfolio_id': 24757131}, {'photo_id': 1371411405, 'portfolio_id': 24757131}] map_portfolio_id_photo_id: {24757131: [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928, 1371411909, 1371411908, 1371411905, 1371411904, 1371411902, 1371411900, 1371411898, 1371411897, 1371411894, 1371411893, 1371411890, 1371411889, 1371411864, 1371411861, 1371411857, 1371411854, 1371411851, 1371411847, 1371411584, 1371411559, 1371411534, 1371411507, 1371411491, 1371411489, 1371411482, 1371411481, 1371411477, 1371411476, 1371411469, 1371411468, 1371411459, 1371411457, 1371411455, 1371411454, 1371411450, 1371411449, 1371411424, 1371411420, 1371411417, 1371411412, 1371411408, 1371411405]} ##### 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.016185760498046875 #### 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 Wed Jul 9 16:38:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24757131) 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 : 24757131 get user id for portfolio 24757131 get sub ptf for main ptf 24757131, type 3726 and hashtags ['autre_refus', 'papier', 'flou', 'mal_croppe', 'Carton_brun', 'plastique', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'Carton_gris'] 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`=24757131 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','mal_croppe','Carton_brun','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','cartonnette','Carton_gris')) 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`=24757131 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','mal_croppe','Carton_brun','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24757131, 'sub_port_id': 24757171, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650773, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'Carton_brun': {'main_port_id': 24757131, 'sub_port_id': 24757172, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650774, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24757131, 'sub_port_id': 24757173, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650775, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'autre_refus': {'main_port_id': 24757131, 'sub_port_id': 24757174, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650776, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'environnement': {'main_port_id': 24757131, 'sub_port_id': 24757175, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650777, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'papier': {'main_port_id': 24757131, 'sub_port_id': 24757176, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650778, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'cartonnette': {'main_port_id': 24757131, 'sub_port_id': 24757177, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650779, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'kraft': {'main_port_id': 24757131, 'sub_port_id': 24757178, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650780, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'metal': {'main_port_id': 24757131, 'sub_port_id': 24757179, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650781, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'mal_croppe': {'main_port_id': 24757131, 'sub_port_id': 24757180, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650782, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'flou': {'main_port_id': 24757131, 'sub_port_id': 24757181, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650783, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}, 'Carton_gris': {'main_port_id': 24757131, 'sub_port_id': 24757182, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650784, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757171 , 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=24757131 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 (24757171) result : ((1371411923,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757172 , 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=24757131 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 (24757172) result : ((1371411921,), (1371411922,), (1371411955,), (1371411956,), (1371411989,), (1371412007,), (1371412008,), (1371412009,), (1371412010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757173 , 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=24757131 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 (24757173) result : ((1371411910,), (1371411911,), (1371411912,), (1371411913,), (1371412004,), (1371412005,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757174 , 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=24757131 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 (24757174) result : ((1371411915,), (1371411953,), (1371411954,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757175 , 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=24757131 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 (24757175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757176 , 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=24757131 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 (24757176) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757177 , 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=24757131 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 (24757177) result : ((1371411860,), (1371411916,), (1371411917,), (1371411918,), (1371411919,), (1371411920,), (1371411985,), (1371411986,), (1371411987,), (1371411988,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757178 , 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=24757131 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 (24757178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757179 , 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=24757131 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 (24757179) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757180 , 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=24757131 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 (24757180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757181 , 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=24757131 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 (24757181) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24757182 , 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=24757131 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 (24757182) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24757131) result : ((1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) 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 (1371411900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24757131 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','mal_croppe','Carton_brun','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','cartonnette','Carton_gris')) 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`=24757131 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','mal_croppe','Carton_brun','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24757131, 'sub_port_id': 24757183, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650785, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'Carton_brun': {'main_port_id': 24757131, 'sub_port_id': 24757184, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650786, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 24757131, 'sub_port_id': 24757185, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650787, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'autre_refus': {'main_port_id': 24757131, 'sub_port_id': 24757186, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650788, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'environnement': {'main_port_id': 24757131, 'sub_port_id': 24757187, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650789, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'papier': {'main_port_id': 24757131, 'sub_port_id': 24757188, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650790, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'cartonnette': {'main_port_id': 24757131, 'sub_port_id': 24757189, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650791, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'kraft': {'main_port_id': 24757131, 'sub_port_id': 24757190, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650792, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'metal': {'main_port_id': 24757131, 'sub_port_id': 24757191, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650793, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'mal_croppe': {'main_port_id': 24757131, 'sub_port_id': 24757192, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650794, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'flou': {'main_port_id': 24757131, 'sub_port_id': 24757193, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650795, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}, 'Carton_gris': {'main_port_id': 24757131, 'sub_port_id': 24757194, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16650796, 'last_updated_at': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 16, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 16, 33, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24757194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24757182 lien utilise dans velours : https://www.fotonower.com/velours/24757183,24757184,24757185,24757186,24757187,24757188,24757189,24757190,24757191,24757192,24757193,24757194?tags=plastique,Carton_brun,Teint_Dans_La_Masse,autre_refus,environnement,papier,cartonnette,kraft,metal,mal_croppe,flou,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24757131]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] map_info['map_portfolio_photo'] : {24757131: [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928, 1371411909, 1371411908, 1371411905, 1371411904, 1371411902, 1371411900, 1371411898, 1371411897, 1371411894, 1371411893, 1371411890, 1371411889, 1371411864, 1371411861, 1371411857, 1371411854, 1371411851, 1371411847, 1371411584, 1371411559, 1371411534, 1371411507, 1371411491, 1371411489, 1371411482, 1371411481, 1371411477, 1371411476, 1371411469, 1371411468, 1371411459, 1371411457, 1371411455, 1371411454, 1371411450, 1371411449, 1371411424, 1371411420, 1371411417, 1371411412, 1371411408, 1371411405]} final : False mtd_id 4302 list_pids : [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] Looping around the photos to save general results len do output : 1 /24757131. 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, '3253406') ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406') 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, '24757131', "{'plastique': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182}", None, None, None, None, '3253406'), ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406')] time used for this insertion : 0.016775131225585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.49326062202453613 time spend to save output : 0.017151355743408203 total time spend for step 1 : 0.5104119777679443 step2:final Wed Jul 9 16:38:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (24757131) 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 24757131 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371411424,1371411420,1371411417,1371411412,1371411408,1371411405,1371411482,1371411481,1371411476,1371411477,1371411468,1371411469,1371411457,1371411459,1371411454,1371411455,1371411450,1371411449,1371411584,1371411559,1371411534,1371411507,1371411491,1371411489,1371411864,1371411861,1371411857,1371411854,1371411851,1371411847,1371411908,1371411909,1371411904,1371411905,1371411900,1371411902,1371411897,1371411898,1371411894,1371411893,1371411890,1371411889,1371411937,1371411935,1371411933,1371411931,1371411929,1371411928,1371411992,1371411990,1371411983,1371411982,1371411980,1371411976); 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([24757131]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} new output for save of step final : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] map_info['map_portfolio_photo'] : {24757131: [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928, 1371411909, 1371411908, 1371411905, 1371411904, 1371411902, 1371411900, 1371411898, 1371411897, 1371411894, 1371411893, 1371411890, 1371411889, 1371411864, 1371411861, 1371411857, 1371411854, 1371411851, 1371411847, 1371411584, 1371411559, 1371411534, 1371411507, 1371411491, 1371411489, 1371411482, 1371411481, 1371411477, 1371411476, 1371411469, 1371411468, 1371411459, 1371411457, 1371411455, 1371411454, 1371411450, 1371411449, 1371411424, 1371411420, 1371411417, 1371411412, 1371411408, 1371411405]} final : False mtd_id 4302 list_pids : [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] Looping around the photos to save general results len do output : 12 /1371411992.Didn't retrieve data . /1371411990.Didn't retrieve data . /1371411983.Didn't retrieve data . /1371411982.Didn't retrieve data . /1371411980.Didn't retrieve data . /1371411976.Didn't retrieve data . /1371411937.Didn't retrieve data . /1371411935.Didn't retrieve data . /1371411933.Didn't retrieve data . /1371411931.Didn't retrieve data . /1371411929.Didn't retrieve data . /1371411928.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, '3253406') ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406') 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', '24757131', '1371411992', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411990', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411983', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411982', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411980', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411976', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411937', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411935', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411933', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411931', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411929', '0.02423871320417078', None, None, None, None, '3253406'), ('4302', '24757131', '1371411928', '0.02423871320417078', None, None, None, None, '3253406')] time used for this insertion : 0.013737201690673828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06679797172546387 time spend to save output : 0.014324188232421875 total time spend for step 2 : 0.08112215995788574 step3:velours_tree Wed Jul 9 16:38:31 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 : {24757131: [{'plastique': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182}]} input_args_next_step : {24757131: ()} output_args : {24757131: [{'plastique': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182}]} args : 24757131 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': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24757131) 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([24757131]) 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.3416144847869873 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.34166932106018066 step4:send_mail_cod Wed Jul 9 16:38:31 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 : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} input_args_next_step : {1371411992: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411992 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411990 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411983 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411982 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411980 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411976 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411937 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411935 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411933 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411931 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411929 depend.output_id : 0 input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ()} output_args : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',)} args : 1371411928 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 : {24757131: [{'plastique': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182}]} input_args_next_step : {1371411992: ('0.02423871320417078',), 1371411990: ('0.02423871320417078',), 1371411983: ('0.02423871320417078',), 1371411982: ('0.02423871320417078',), 1371411980: ('0.02423871320417078',), 1371411976: ('0.02423871320417078',), 1371411937: ('0.02423871320417078',), 1371411935: ('0.02423871320417078',), 1371411933: ('0.02423871320417078',), 1371411931: ('0.02423871320417078',), 1371411929: ('0.02423871320417078',), 1371411928: ('0.02423871320417078',), 24757131: ()} output_args : {24757131: [{'plastique': 24757171, 'Carton_brun': 24757172, 'Teint_Dans_La_Masse': 24757173, 'autre_refus': 24757174, 'environnement': 24757175, 'papier': 24757176, 'cartonnette': 24757177, 'kraft': 24757178, 'metal': 24757179, 'mal_croppe': 24757180, 'flou': 24757181, 'Carton_gris': 24757182}]} args : 24757131 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.02423871320417078',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24757131) 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 (1371411992,1371411990,1371411983,1371411982,1371411980,1371411976,1371411937,1371411935,1371411933,1371411931,1371411929,1371411928) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371411928 begin to download photo : 1371411933 begin to download photo : 1371411976 begin to download photo : 1371411983 download finish for photo 1371411976 begin to download photo : 1371411980 download finish for photo 1371411983 begin to download photo : 1371411990 download finish for photo 1371411933 begin to download photo : 1371411935 download finish for photo 1371411928 begin to download photo : 1371411929 download finish for photo 1371411980 begin to download photo : 1371411982 download finish for photo 1371411990 begin to download photo : 1371411992 download finish for photo 1371411929 begin to download photo : 1371411931 download finish for photo 1371411935 begin to download photo : 1371411937 download finish for photo 1371411982 download finish for photo 1371411992 download finish for photo 1371411931 download finish for photo 1371411937 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24757131_09-07-2025_16_38_31.pdf 24757171 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=24757171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371411923: '1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455297_0.png'} change filename to text .imagette247571711752071911/ imagette247571711752071911/1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455297_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cbad29211c40042bb20487dc9bf67eae_63052889.png imagette247571711752071911 24757174 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=24757174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371411915: '1752071726_1763240_1371411584_13ad42446b4791ef01b3d06924154592_rle_crop_3877455244_0.png', 1371411953: '1752071765_1390363_1371411450_dbce9d2b7b69c5315544e00e633d9b6d_rle_crop_3877455621_0.png', 1371411954: '1752071765_1390363_1371411449_de30318e521d0d980b7b3067c470befb_rle_crop_3877455628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cddbcf44c2d06d2586075622d620f8bb_90181491.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e57c78fb5d8a030789740f3af3fad718_26338268.png change filename to text .imagette247571741752071911/ imagette247571741752071911/1752071765_1390363_1371411450_dbce9d2b7b69c5315544e00e633d9b6d_rle_crop_3877455621_0.png.png imagette247571741752071911/1752071765_1390363_1371411449_de30318e521d0d980b7b3067c470befb_rle_crop_3877455628_0.png.png imagette247571741752071911/1752071726_1763240_1371411584_13ad42446b4791ef01b3d06924154592_rle_crop_3877455244_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e57c78fb5d8a030789740f3af3fad718_80743040.png imagette247571741752071911 24757177 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=24757177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371411860: '1752071645_1387101_1371411424_f8be0e59e72b37faa61f94121582d9b9_rle_crop_3877453760_0.png', 1371411916: '1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455251_0.png', 1371411917: '1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455266_0.png', 1371411918: '1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455294_0.png', 1371411919: '1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455295_0.png', 1371411920: '1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455296_0.png', 1371411985: '1752071845_1766218_1371411861_35855129bb74954da6206ebf9c961d95_rle_crop_3877455969_0.png', 1371411986: '1752071845_1766218_1371411854_5a9ec84fa11b5927ca0a61a7437bc6fa_rle_crop_3877455995_0.png', 1371411987: '1752071845_1766218_1371411851_1ceb7594b714ec2b7a35438509a4514e_rle_crop_3877456011_0.png', 1371411988: '1752071845_1766218_1371411847_1ac3e01986901198bcd1f1bbe8918b33_rle_crop_3877456017_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/13ff3390a614e6b4710e8f0d93cd6c34_28204756.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/dd63f2e7ad4babd6277859b5ef4f47a8_56469304.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/005ed4a8f6136654e44352392f6e0688_98459570.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2d86223cef01bb8c4ce137b94a6676a1_26950899.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d6a1c1dfe03dcab259fdecbf3c316e04_77150969.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/4a91d4311ff73f140e7790e03f63d011_20786609.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/7818f7a07cfa93fa8a204aa7d7d54238_62598101.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/10eef7a22b2cabba898232195bd267d9_51559164.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e0609340346dc2cb5dd801613e6cf4fb_79410795.png change filename to text .imagette247571771752071911/ imagette247571771752071911/1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455296_0.png.png imagette247571771752071911/1752071845_1766218_1371411861_35855129bb74954da6206ebf9c961d95_rle_crop_3877455969_0.png.png imagette247571771752071911/1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455266_0.png.png imagette247571771752071911/1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455294_0.png.png imagette247571771752071911/1752071726_1763240_1371411489_a3c530da9552fa4a262fc5e1ef45fa1e_rle_crop_3877455295_0.png.png imagette247571771752071911/1752071845_1766218_1371411851_1ceb7594b714ec2b7a35438509a4514e_rle_crop_3877456011_0.png.png imagette247571771752071911/1752071645_1387101_1371411424_f8be0e59e72b37faa61f94121582d9b9_rle_crop_3877453760_0.png.png imagette247571771752071911/1752071845_1766218_1371411854_5a9ec84fa11b5927ca0a61a7437bc6fa_rle_crop_3877455995_0.png.png imagette247571771752071911/1752071845_1766218_1371411847_1ac3e01986901198bcd1f1bbe8918b33_rle_crop_3877456017_0.png.png imagette247571771752071911/1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455251_0.png.png imagette247571781752071912/ imagette247571791752071912/ imagette247571801752071912/ imagette247571811752071912/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/8d645b4e7fdbf1373463abea3c23105c_82807392.png imagette247571771752071911 24757178 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=24757178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247571781752071912 24757179 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=24757179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247571791752071912 24757180 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=24757180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247571801752071912 24757181 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=24757181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247571811752071912 24757172 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=24757172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371411921: '1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455267_0.png', 1371411922: '1752071726_1763240_1371411507_af4b1ec3406449cc8b11370990558d0a_rle_crop_3877455277_0.png', 1371411955: '1752071765_1390363_1371411482_d545467696d8c7f7b255c3aa7239be9a_rle_crop_3877455523_0.png', 1371411956: '1752071765_1390363_1371411481_ab040de0110a30a6efe720ddacdc2f36_rle_crop_3877455531_0.png', 1371411989: '1752071845_1766218_1371411861_35855129bb74954da6206ebf9c961d95_rle_crop_3877455976_0.png', 1371412007: '1752071847_1392236_1371411894_575ba7a0e06fc5cd2fe2c46eb51091b4_rle_crop_3877457476_0.png', 1371412008: '1752071847_1392236_1371411893_1eb3cef9fc294c3ca9d32e2e2a2ebf7f_rle_crop_3877457485_0.png', 1371412009: '1752071847_1392236_1371411890_23ae91ec7d242e64bf585303fdbf19be_rle_crop_3877457494_0.png', 1371412010: '1752071847_1392236_1371411889_0cf8108c46a4c329c1c0c783ec7059f7_rle_crop_3877457508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ea16eff56afc94b07f38c9203207f2d5_87624052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/295e1903d40c796dee1824e2ddc2f603_89540377.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cf45c547d7d7ff9ba53c3b1b854ab85b_95081555.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/cf45c547d7d7ff9ba53c3b1b854ab85b_95145893.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/e34bb2d9425c803dba4dcbf06c063e92_7858249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/81bca9d852ad439a81468f4a59254cdb_15455276.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/81bca9d852ad439a81468f4a59254cdb_32849657.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3e1f4b0cdb3cfbf41346c967245e6e53_26347524.png change filename to text .imagette247571721752071912/ imagette247571721752071912/1752071765_1390363_1371411481_ab040de0110a30a6efe720ddacdc2f36_rle_crop_3877455531_0.png.png imagette247571721752071912/1752071765_1390363_1371411482_d545467696d8c7f7b255c3aa7239be9a_rle_crop_3877455523_0.png.png imagette247571721752071912/1752071726_1763240_1371411507_af4b1ec3406449cc8b11370990558d0a_rle_crop_3877455277_0.png.png imagette247571721752071912/1752071847_1392236_1371411890_23ae91ec7d242e64bf585303fdbf19be_rle_crop_3877457494_0.png.png imagette247571721752071912/1752071847_1392236_1371411889_0cf8108c46a4c329c1c0c783ec7059f7_rle_crop_3877457508_0.png.png imagette247571721752071912/1752071847_1392236_1371411894_575ba7a0e06fc5cd2fe2c46eb51091b4_rle_crop_3877457476_0.png.png imagette247571721752071912/1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455267_0.png.png imagette247571721752071912/1752071845_1766218_1371411861_35855129bb74954da6206ebf9c961d95_rle_crop_3877455976_0.png.png imagette247571721752071912/1752071847_1392236_1371411893_1eb3cef9fc294c3ca9d32e2e2a2ebf7f_rle_crop_3877457485_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3e1f4b0cdb3cfbf41346c967245e6e53_2252249.png imagette247571721752071912 24757173 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=24757173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371411910: '1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455254_0.png', 1371411911: '1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455255_0.png', 1371411912: '1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455269_0.png', 1371411913: '1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455272_0.png', 1371412004: '1752071847_1392236_1371411890_23ae91ec7d242e64bf585303fdbf19be_rle_crop_3877457493_0.png', 1371412005: '1752071847_1392236_1371411889_0cf8108c46a4c329c1c0c783ec7059f7_rle_crop_3877457507_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f03d5529e5349cb14dd4ceab52ce604a_24525468.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/4748b4f7905c4cc589f7f9d8ba4bf3b1_48708024.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/36f2cdc782e3fcd968bf0f0976736e6b_93352652.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/457d2c551c2ceaf4588169dedb91b02a_91239854.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3a12a948ce87ce156fbe91bf8dab4506_62688719.png change filename to text .imagette247571731752071913/ imagette247571731752071913/1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455255_0.png.png imagette247571731752071913/1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455272_0.png.png imagette247571731752071913/1752071726_1763240_1371411559_7030497ba14968029166d4873eed2125_rle_crop_3877455254_0.png.png imagette247571731752071913/1752071726_1763240_1371411534_871ee4e82d62332e5cc58b52984664a4_rle_crop_3877455269_0.png.png imagette247571731752071913/1752071847_1392236_1371411890_23ae91ec7d242e64bf585303fdbf19be_rle_crop_3877457493_0.png.png imagette247571731752071913/1752071847_1392236_1371411889_0cf8108c46a4c329c1c0c783ec7059f7_rle_crop_3877457507_0.png.png imagette247571821752071913/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3a12a948ce87ce156fbe91bf8dab4506_28233143.png imagette247571731752071913 24757182 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=24757182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247571821752071913 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24757131 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24757183,24757184,24757185,24757186,24757187,24757188,24757189,24757190,24757191,24757192,24757193,24757194?tags=plastique,Carton_brun,Teint_Dans_La_Masse,autre_refus,environnement,papier,cartonnette,kraft,metal,mal_croppe,flou,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1371411992] : ('0.02423871320417078',) no score found for photo 1371411992 We are sending mail with results at report@fotonower.com args[1371411990] : ('0.02423871320417078',) no score found for photo 1371411990 We are sending mail with results at report@fotonower.com args[1371411983] : ('0.02423871320417078',) no score found for photo 1371411983 We are sending mail with results at report@fotonower.com args[1371411982] : ('0.02423871320417078',) no score found for photo 1371411982 We are sending mail with results at report@fotonower.com args[1371411980] : ('0.02423871320417078',) no score found for photo 1371411980 We are sending mail with results at report@fotonower.com args[1371411976] : ('0.02423871320417078',) no score found for photo 1371411976 We are sending mail with results at report@fotonower.com args[1371411937] : ('0.02423871320417078',) no score found for photo 1371411937 We are sending mail with results at report@fotonower.com args[1371411935] : ('0.02423871320417078',) no score found for photo 1371411935 We are sending mail with results at report@fotonower.com args[1371411933] : ('0.02423871320417078',) no score found for photo 1371411933 We are sending mail with results at report@fotonower.com args[1371411931] : ('0.02423871320417078',) no score found for photo 1371411931 We are sending mail with results at report@fotonower.com args[1371411929] : ('0.02423871320417078',) no score found for photo 1371411929 We are sending mail with results at report@fotonower.com args[1371411928] : ('0.02423871320417078',) no score found for photo 1371411928 We are sending mail with results at report@fotonower.com refus_total : 0.02423871320417078 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=24757131 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_P24757131_09-07-2025_16_38_31.pdf results_Auto_P24757131_09-07-2025_16_38_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24757131_09-07-2025_16_38_31.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','24757131','results_Auto_P24757131_09-07-2025_16_38_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24757131_09-07-2025_16_38_31.pdf','pdf','','0.17','0.02423871320417078') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24757131]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] map_info['map_portfolio_photo'] : {24757131: [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928, 1371411909, 1371411908, 1371411905, 1371411904, 1371411902, 1371411900, 1371411898, 1371411897, 1371411894, 1371411893, 1371411890, 1371411889, 1371411864, 1371411861, 1371411857, 1371411854, 1371411851, 1371411847, 1371411584, 1371411559, 1371411534, 1371411507, 1371411491, 1371411489, 1371411482, 1371411481, 1371411477, 1371411476, 1371411469, 1371411468, 1371411459, 1371411457, 1371411455, 1371411454, 1371411450, 1371411449, 1371411424, 1371411420, 1371411417, 1371411412, 1371411408, 1371411405]} final : False mtd_id 4302 list_pids : [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] 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, '3253406') ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406') 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', '24757131', '1371411992', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406')] time used for this insertion : 0.0129547119140625 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.160780191421509 time spend to save output : 0.013196229934692383 total time spend for step 4 : 3.173976421356201 step5:split_time_score Wed Jul 9 16:38:34 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 : ['24757131'] 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 : [('24757131',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24757131) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371411976: {'path': 'temp/1752071911_3484946_1371411976_7c48516f667cd996e7caec7c2173bb26.jpg', 'extension': 'jpg'}, 1371411980: {'path': 'temp/1752071911_3484946_1371411980_a463e4f328519861bc9b5bc6059b47d0.jpg', 'extension': 'jpg'}, 1371411982: {'path': 'temp/1752071911_3484946_1371411982_8935fd0a8fc5064c9f89d557f437ffdf.jpg', 'extension': 'jpg'}, 1371411983: {'path': 'temp/1752071911_3484946_1371411983_f8d2636365039a415a2dcdd0f81f3f15.jpg', 'extension': 'jpg'}, 1371411990: {'path': 'temp/1752071911_3484946_1371411990_52fc762f286640a4c905c1848464ea86.jpg', 'extension': 'jpg'}, 1371411992: {'path': 'temp/1752071911_3484946_1371411992_6c66cd42e576b5d5a1a708584097211c.jpg', 'extension': 'jpg'}, 1371411928: {'path': 'temp/1752071911_3484946_1371411928_200ddd8d91b08d6a2ad4dd51b621e9fe.jpg', 'extension': 'jpg'}, 1371411929: {'path': 'temp/1752071911_3484946_1371411929_15561de754a5c1fe0dee35a4581ab56f.jpg', 'extension': 'jpg'}, 1371411931: {'path': 'temp/1752071911_3484946_1371411931_ecf1c0b3be3ecd1e90a6377291edfa46.jpg', 'extension': 'jpg'}, 1371411933: {'path': 'temp/1752071911_3484946_1371411933_de201bf6ce3fd99609c0949bbb03ba0a.jpg', 'extension': 'jpg'}, 1371411935: {'path': 'temp/1752071911_3484946_1371411935_175035b82d3179a95f4fb1da6ca30942.jpg', 'extension': 'jpg'}, 1371411937: {'path': 'temp/1752071911_3484946_1371411937_7ad15f2fe3b7220d5beee919f647a541.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 = 24757131; (('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 = 24757131 group by h (('16', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24757131 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 (24757131) 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 (24757131) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09072025 24757131 Nombre de photos uploadées : 54 / 23040 (0%) 09072025 24757131 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 09072025 24757131 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1371411424, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f8be0e59e72b37faa61f94121582d9b9.jpg', 'username': None, 'uploaded_at': 1752071482, 'text': 'image_09072025_16_30_04_10140.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371411420, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/fcbaa6a52b5e1832b74ce2e4a875e2e8.jpg', 'username': None, 'uploaded_at': 1752071482, 'text': 'image_09072025_16_30_14_10141.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371411417, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/7c13725757fb0ceff337c2a52a13c0b1.jpg', 'username': None, 'uploaded_at': 1752071482, 'text': 'image_09072025_16_30_24_10133.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371411412, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/bf5da277908e6600a7a41202aa388423.jpg', 'username': None, 'uploaded_at': 1752071482, 'text': 'image_09072025_16_30_35_10133.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035681724548339844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24757131, '2025-07-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1963591,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03239703178405762 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= 1963591 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24756651, 'dashboard_result_id': 12308799, '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_P24756651_09-07-2025_16_22_00.pdf'}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24756653, 'dashboard_result_id': 12308800, '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_P24756653_09-07-2025_16_21_32.pdf'}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24752646, 'dashboard_result_id': 12308801, '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_P24752646_09-07-2025_16_21_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24752683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24752684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24752685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24752686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24752687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24752689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24752691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24752692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24752694, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24749394, 'dashboard_result_id': 12308802, '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_P24749394_09-07-2025_15_11_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749435, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24747504, 'dashboard_result_id': 12308803, '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_P24747504_09-07-2025_14_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24747262, 'dashboard_result_id': 12308804, '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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24747707, 'dashboard_result_id': 12308805, '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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24748269, 'dashboard_result_id': 12308806, '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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24748870, 'dashboard_result_id': 12308807, '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_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24749521, 'dashboard_result_id': 12308808, '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_P24749521_09-07-2025_14_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24750323, 'dashboard_result_id': 12308809, '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_P24750323_09-07-2025_14_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24750330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24750331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24750332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24750333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24750334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24750335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24750336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24750337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24750338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24750339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24750340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24750341, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24750998, 'dashboard_result_id': 12308810, '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_P24750998_09-07-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751041, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24751671, 'dashboard_result_id': 12308811, '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_P24751671_09-07-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751714, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24752250, 'dashboard_result_id': 12308812, '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_P24752250_09-07-2025_15_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24752279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24752280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24752281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24752282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24752283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24752284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24752287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24752288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24752289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752290, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24752968, 'dashboard_result_id': 12308813, '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_P24752968_09-07-2025_15_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24752997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753007, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24753569, 'dashboard_result_id': 12308814, '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_P24753569_09-07-2025_15_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24753617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24753622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24753623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24753624, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24754577, 'dashboard_result_id': 12308815, '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_P24754577_09-07-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24754704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24754705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24754706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24754707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24754708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24754709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24754710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24754711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24754712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24754713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24754714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24754715, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24755771, 'dashboard_result_id': 12308816, '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_P24755771_09-07-2025_16_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24755857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24755858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24755859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24755860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24755861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24755862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24755863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24755864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24755865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24755866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24755867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24755868, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24756490, 'dashboard_result_id': 12308817, '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_P24756490_09-07-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24756529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24756530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24756531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24756532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24756533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24756534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24756535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24756536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24756537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24756538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24756539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24756540, 'pht': 3726}}"}, {'dashboat_entry_day': 1963591, 'dashboard_run_id': 1971538, 'mtr_portfolio_id': 24757131, 'dashboard_result_id': 12308818, '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_P24757131_09-07-2025_16_36_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24757171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24757172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24757173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24757174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24757175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24757176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24757177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24757178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24757179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24757180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24757181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24757182, '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 = 24756651 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756651 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24756651 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756651 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756651 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24756651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24756651_09-07-2025_16_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24756651 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_P24756651_09-07-2025_16_22_00.pdf'}" where mtr_portfolio_id = 24756651 and dashboard_run_id = 1971538 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 = 24756653 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756653 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24756653 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756653 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24756653 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24756653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24756653_09-07-2025_16_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24756653 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_P24756653_09-07-2025_16_21_32.pdf'}" where mtr_portfolio_id = 24756653 and dashboard_run_id = 1971538 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 = 24752646 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24752646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24752646 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24752646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24752646 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24752646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24752646_09-07-2025_16_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24752646 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_P24752646_09-07-2025_16_21_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24752683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24752684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24752685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24752686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24752687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24752689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24752691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24752692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24752694, 'pht': 3726}}" where mtr_portfolio_id = 24752646 and dashboard_run_id = 1971538 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 = 24749394 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24749394 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24749394 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24749394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749394_09-07-2025_15_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24749394 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_P24749394_09-07-2025_15_11_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749435, 'pht': 3726}}" where mtr_portfolio_id = 24749394 and dashboard_run_id = 1971538 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 = 24747504 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': 3252385, 'mtr_portfolio_id': 24747504, 'created_at': datetime.datetime(2025, 7, 9, 14, 0, 31), 'result': '0.035140833441915834', 'result_long': None, 'result_double': None}] Qualite : 0.035140833441915834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747504_09-07-2025_14_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747504 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_P24747504_09-07-2025_14_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, 'pht': 3726}}" where mtr_portfolio_id = 24747504 and dashboard_run_id = 1971538 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`=24747504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308803, 0.035140833441915834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747504_09-07-2025_14_00_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747572, '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 = 24747262 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': 3252354, 'mtr_portfolio_id': 24747262, 'created_at': datetime.datetime(2025, 7, 9, 13, 16, 59), 'result': '0.031805652620991554', 'result_long': None, 'result_double': None}] Qualite : 0.031805652620991554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747262 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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}" where mtr_portfolio_id = 24747262 and dashboard_run_id = 1971538 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`=24747262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308804, 0.031805652620991554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, '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 = 24747707 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': 3252405, 'mtr_portfolio_id': 24747707, 'created_at': datetime.datetime(2025, 7, 9, 13, 33, 28), 'result': '0.0530137814613162', 'result_long': None, 'result_double': None}] Qualite : 0.0530137814613162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747707 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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}" where mtr_portfolio_id = 24747707 and dashboard_run_id = 1971538 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`=24747707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308805, 0.0530137814613162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, '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 = 24748269 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': 3252484, 'mtr_portfolio_id': 24748269, 'created_at': datetime.datetime(2025, 7, 9, 13, 46, 59), 'result': '0.04382890444493781', 'result_long': None, 'result_double': None}] Qualite : 0.04382890444493781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748269 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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}" where mtr_portfolio_id = 24748269 and dashboard_run_id = 1971538 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`=24748269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308806, 0.04382890444493781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, '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 = 24748870 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': 3252606, 'mtr_portfolio_id': 24748870, 'created_at': datetime.datetime(2025, 7, 9, 14, 2, 59), 'result': '0.05285976447939329', 'result_long': None, 'result_double': None}] Qualite : 0.05285976447939329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748870 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_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, 'pht': 3726}}" where mtr_portfolio_id = 24748870 and dashboard_run_id = 1971538 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`=24748870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308807, 0.05285976447939329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, '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 = 24749521 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': 3252692, 'mtr_portfolio_id': 24749521, 'created_at': datetime.datetime(2025, 7, 9, 14, 16, 58), 'result': '0.056271137205489145', 'result_long': None, 'result_double': None}] Qualite : 0.056271137205489145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24749521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24749521 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_P24749521_09-07-2025_14_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, 'pht': 3726}}" where mtr_portfolio_id = 24749521 and dashboard_run_id = 1971538 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`=24749521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308808, 0.056271137205489145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24749521_09-07-2025_14_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24749556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24749557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24749558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24749559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24749560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24749561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24749562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24749563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24749564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24749565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24749566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24749567, '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 = 24750323 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': 3252776, 'mtr_portfolio_id': 24750323, 'created_at': datetime.datetime(2025, 7, 9, 14, 32, 58), 'result': '0.022989928392788343', 'result_long': None, 'result_double': None}] Qualite : 0.022989928392788343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24750323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24750323_09-07-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24750323 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_P24750323_09-07-2025_14_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24750330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24750331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24750332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24750333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24750334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24750335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24750336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24750337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24750338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24750339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24750340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24750341, 'pht': 3726}}" where mtr_portfolio_id = 24750323 and dashboard_run_id = 1971538 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`=24750323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308809, 0.022989928392788343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24750323_09-07-2025_14_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24750330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24750331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24750332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24750333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24750334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24750335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24750336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24750337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24750338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24750339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24750340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24750341, '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 = 24750998 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': 3252862, 'mtr_portfolio_id': 24750998, 'created_at': datetime.datetime(2025, 7, 9, 14, 46, 59), 'result': '0.04110707557475362', 'result_long': None, 'result_double': None}] Qualite : 0.04110707557475362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24750998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24750998_09-07-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24750998 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_P24750998_09-07-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751041, 'pht': 3726}}" where mtr_portfolio_id = 24750998 and dashboard_run_id = 1971538 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`=24750998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308810, 0.04110707557475362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24750998_09-07-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751041, '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 = 24751671 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': 3252940, 'mtr_portfolio_id': 24751671, 'created_at': datetime.datetime(2025, 7, 9, 15, 2, 57), 'result': '0.060786301556297176', 'result_long': None, 'result_double': None}] Qualite : 0.060786301556297176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24751671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24751671_09-07-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24751671 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_P24751671_09-07-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751714, 'pht': 3726}}" where mtr_portfolio_id = 24751671 and dashboard_run_id = 1971538 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`=24751671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308811, 0.060786301556297176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24751671_09-07-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24751703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24751704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24751705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24751706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24751707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24751708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24751709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24751710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24751711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24751712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24751713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24751714, '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 = 24752250 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': 3253017, 'mtr_portfolio_id': 24752250, 'created_at': datetime.datetime(2025, 7, 9, 15, 16, 59), 'result': '0.07154437830250861', 'result_long': None, 'result_double': None}] Qualite : 0.07154437830250861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24752250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24752250_09-07-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24752250 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_P24752250_09-07-2025_15_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24752279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24752280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24752281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24752282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24752283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24752284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24752287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24752288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24752289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752290, 'pht': 3726}}" where mtr_portfolio_id = 24752250 and dashboard_run_id = 1971538 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`=24752250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308812, 0.07154437830250861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24752250_09-07-2025_15_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24752279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24752280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24752281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24752282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24752283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24752284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24752287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24752288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24752289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752290, '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 = 24752968 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': 3253084, 'mtr_portfolio_id': 24752968, 'created_at': datetime.datetime(2025, 7, 9, 15, 32, 57), 'result': '0.031696523978098246', 'result_long': None, 'result_double': None}] Qualite : 0.031696523978098246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24752968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24752968_09-07-2025_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24752968 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_P24752968_09-07-2025_15_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24752997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753007, 'pht': 3726}}" where mtr_portfolio_id = 24752968 and dashboard_run_id = 1971538 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`=24752968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308813, 0.031696523978098246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24752968_09-07-2025_15_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24752996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24752997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24752998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24752999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753007, '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 = 24753569 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': 3253144, 'mtr_portfolio_id': 24753569, 'created_at': datetime.datetime(2025, 7, 9, 15, 47), 'result': '0.02763696419599226', 'result_long': None, 'result_double': None}] Qualite : 0.02763696419599226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24753569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24753569_09-07-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24753569 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_P24753569_09-07-2025_15_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24753617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24753622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24753623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24753624, 'pht': 3726}}" where mtr_portfolio_id = 24753569 and dashboard_run_id = 1971538 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`=24753569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308814, 0.02763696419599226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24753569_09-07-2025_15_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24753613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24753614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24753615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24753616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24753617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24753618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24753619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24753620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24753621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24753622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24753623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24753624, '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 = 24754577 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': 3253234, 'mtr_portfolio_id': 24754577, 'created_at': datetime.datetime(2025, 7, 9, 16, 2, 59), 'result': '0.03888685330003813', 'result_long': None, 'result_double': None}] Qualite : 0.03888685330003813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24754577 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24754577_09-07-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24754577 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_P24754577_09-07-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24754704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24754705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24754706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24754707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24754708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24754709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24754710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24754711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24754712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24754713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24754714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24754715, 'pht': 3726}}" where mtr_portfolio_id = 24754577 and dashboard_run_id = 1971539 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`=24754577 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308815, 0.03888685330003813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24754577_09-07-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24754704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24754705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24754706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24754707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24754708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24754709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24754710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24754711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24754712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24754713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24754714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24754715, '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 = 24755771 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': 3253297, 'mtr_portfolio_id': 24755771, 'created_at': datetime.datetime(2025, 7, 9, 16, 16, 59), 'result': '0.03153395800954418', 'result_long': None, 'result_double': None}] Qualite : 0.03153395800954418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24755771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24755771_09-07-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24755771 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_P24755771_09-07-2025_16_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24755857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24755858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24755859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24755860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24755861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24755862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24755863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24755864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24755865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24755866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24755867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24755868, 'pht': 3726}}" where mtr_portfolio_id = 24755771 and dashboard_run_id = 1971539 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`=24755771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308816, 0.03153395800954418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24755771_09-07-2025_16_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24755857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24755858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24755859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24755860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24755861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24755862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24755863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24755864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24755865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24755866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24755867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24755868, '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 = 24756490 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': 3253346, 'mtr_portfolio_id': 24756490, 'created_at': datetime.datetime(2025, 7, 9, 16, 32, 58), 'result': '0.055948282467899214', 'result_long': None, 'result_double': None}] Qualite : 0.055948282467899214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24756490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24756490_09-07-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24756490 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_P24756490_09-07-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24756529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24756530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24756531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24756532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24756533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24756534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24756535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24756536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24756537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24756538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24756539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24756540, 'pht': 3726}}" where mtr_portfolio_id = 24756490 and dashboard_run_id = 1971539 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`=24756490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308817, 0.055948282467899214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24756490_09-07-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24756529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24756530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24756531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24756532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24756533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24756534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24756535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24756536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24756537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24756538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24756539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24756540, '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 = 24757131 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': 3253406, 'mtr_portfolio_id': 24757131, 'created_at': datetime.datetime(2025, 7, 9, 16, 38, 30), 'result': '0.02423871320417078', 'result_long': None, 'result_double': None}] Qualite : 0.02423871320417078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24757131 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24757131_09-07-2025_16_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24757131 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_P24757131_09-07-2025_16_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24757171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24757172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24757173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24757174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24757175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24757176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24757177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24757178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24757179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24757180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24757181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24757182, 'pht': 3726}}" where mtr_portfolio_id = 24757131 and dashboard_run_id = 1971539 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`=24757131 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12308818, 0.02423871320417078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24757131_09-07-2025_16_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24757171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24757172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24757173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24757174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24757175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24757176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24757177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24757178, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24757179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24757180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24757181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24757182, '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 (24756651,24756653,24752646,24749394,24747504,24747262,24747707,24748269,24748870,24749521,24750323,24750998,24751671,24752250,24752968,24753569,24754577,24755771,24756490,24757131) result : ((1371368493,), (1371368499,), (1371368500,), (1371368521,), (1371368524,), (1371368527,), (1371368547,), (1371368550,), (1371368554,), (1371368564,), (1371368566,), (1371368567,), (1371368578,), (1371368582,), (1371368592,), (1371368594,), (1371368597,), (1371368600,), (1371368615,), (1371368623,), (1371368625,), (1371368628,), (1371368630,), (1371368634,), (1371368654,), (1371368659,), (1371368662,), (1371368664,), (1371368671,), (1371368672,), (1371368684,), (1371368687,), (1371368690,), (1371368709,), (1371368713,), (1371368714,), (1371368726,), (1371368729,), (1371368745,), (1371368753,), (1371368755,), (1371368757,), (1371368770,), (1371368778,), (1371368780,), (1371368783,), (1371368785,), (1371368793,), (1371368819,), (1371368827,), (1371368829,), (1371368830,), (1371368838,), (1371368840,), (1371368885,), (1371368919,), (1371368929,), (1371368937,), (1371368944,), (1371368960,), (1371368961,), (1371368965,), (1371368966,), (1371368975,), (1371368976,), (1371368979,), (1371368980,), (1371368982,), (1371368983,), (1371368984,), (1371368986,), (1371369014,), (1371369023,), (1371369027,), (1371369031,), (1371369036,), (1371369053,), (1371369066,), (1371369074,), (1371369076,), (1371369078,), (1371369086,), (1371369088,), (1371369215,), (1371369250,), (1371369303,), (1371369343,), (1371369376,), (1371369377,), (1371369426,), (1371369468,), (1371369486,), (1371369489,), (1371369511,), (1371369539,), (1371368945,), (1371369106,), (1371369109,), (1371369111,), (1371369113,), (1371369121,), (1371369122,), (1371369689,), (1371369693,), (1371369695,), (1371369704,), (1371369708,), (1371369711,), (1371369873,), (1371369877,), (1371369879,), (1371369891,), (1371369917,), (1371369935,), (1371370089,), (1371370105,), (1371370116,), (1371370117,), (1371370119,), (1371370128,), (1371370299,), (1371370308,), (1371370312,), (1371370314,), (1371370323,), (1371370332,), (1371370483,), (1371370497,), (1371370513,), (1371370516,), (1371370518,), (1371370526,), (1371370775,), (1371370778,), (1371370791,), (1371370796,), (1371370797,), (1371370804,), (1371370959,), (1371370964,), (1371370968,), (1371370986,), (1371370997,), (1371370998,), (1371371179,), (1371371194,), (1371371196,), (1371371198,), (1371371206,), (1371371207,), (1371371332,), (1371371334,), (1371371342,), (1371371344,), (1371371345,), (1371371347,), (1371371534,), (1371371537,), (1371371549,), (1371371567,), (1371371569,), (1371371572,), (1371371698,), (1371371702,), (1371371705,), (1371371714,), (1371371715,), (1371371718,), (1371371833,), (1371371842,), (1371371845,), (1371371848,), (1371371851,), (1371371858,), (1371372003,), (1371372011,), (1371372023,), (1371372027,), (1371372044,), (1371369582,), (1371369623,), (1371369652,), (1371369657,), (1371369666,), (1371369669,), (1371369722,), (1371369725,), (1371369735,), (1371369739,), (1371369743,), (1371369753,), (1371369770,), (1371369772,), (1371369783,), (1371369788,), (1371369790,), (1371369802,), (1371369827,), (1371369839,), (1371369843,), (1371369846,), (1371369854,), (1371369856,), (1371369955,), (1371369958,), (1371369968,), (1371370010,), (1371370038,), (1371370040,), (1371370051,), (1371370053,), (1371370061,), (1371370069,), (1371370073,), (1371370077,), (1371370152,), (1371370161,), (1371370163,), (1371370164,), (1371370172,), (1371370175,), (1371370187,), (1371370192,), (1371370196,), (1371370206,), (1371370210,), (1371370214,), (1371370244,), (1371370252,), (1371370261,), (1371370263,), (1371370267,), (1371370271,), (1371370350,), (1371370354,), (1371370356,), (1371370357,), (1371370375,), (1371370388,), (1371370400,), (1371370403,), (1371370407,), (1371370417,), (1371370430,), (1371370438,), (1371370448,), (1371370450,), (1371370458,), (1371370461,), (1371370465,), (1371370468,), (1371370550,), (1371370568,), (1371370572,), (1371370576,), (1371370587,), (1371370592,), (1371370604,), (1371370606,), (1371370608,), (1371370618,), (1371370620,), (1371370622,), (1371370655,), (1371370657,), (1371370666,), (1371370668,), (1371370673,), (1371370676,), (1371370811,), (1371370821,), (1371370825,), (1371370829,), (1371370847,), (1371370865,), (1371370875,), (1371370877,), (1371370880,), (1371370883,), (1371370900,), (1371370911,), (1371370915,), (1371370925,), (1371370929,), (1371370931,), (1371370939,), (1371370941,), (1371371007,), (1371371008,), (1371371011,), (1371371012,), (1371371020,), (1371371029,), (1371371033,), (1371371042,), (1371371043,), (1371371046,), (1371371047,), (1371371050,), (1371371062,), (1371371070,), (1371371072,), (1371371074,), (1371371077,), (1371371086,), (1371371118,), (1371371128,), (1371371135,), (1371371141,), (1371371150,), (1371371153,), (1371371219,), (1371371223,), (1371371226,), (1371371242,), (1371371245,), (1371371248,), (1371371295,), (1371371298,), (1371371299,), (1371371308,), (1371371312,), (1371371316,), (1371371365,), (1371371368,), (1371371382,), (1371371383,), (1371371384,), (1371371385,), (1371371407,), (1371371410,), (1371371414,), (1371371416,), (1371371426,), (1371371480,), (1371371503,), (1371371506,), (1371371509,), (1371371516,), (1371371517,), (1371371521,), (1371371581,), (1371371585,), (1371371596,), (1371371599,), (1371371601,), (1371371603,), (1371371617,), (1371371625,), (1371371633,), (1371371635,), (1371371636,), (1371371645,), (1371371652,), (1371371664,), (1371371666,), (1371371668,), (1371371676,), (1371371679,), (1371371729,), (1371371730,), (1371371734,), (1371371735,), (1371371750,), (1371371751,), (1371371753,), (1371371754,), (1371371755,), (1371371756,), (1371371763,), (1371371764,), (1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,), (1371372472,), (1371372476,), (1371372480,), (1371372494,), (1371372497,), (1371372499,), (1371372539,), (1371372542,), (1371372552,), (1371372562,), (1371372567,), (1371372571,), (1371372789,), (1371372837,), (1371372877,), (1371372929,), (1371372963,), (1371372999,), (1371373688,), (1371373762,), (1371373831,), (1371373911,), (1371374020,), (1371374116,), (1371372046,), (1371372228,), (1371372230,), (1371372232,), (1371372242,), (1371372245,), (1371372247,), (1371372349,), (1371372365,), (1371372379,), (1371372381,), (1371372386,), (1371372399,), (1371372588,), (1371372599,), (1371372613,), (1371372624,), (1371372627,), (1371372656,), (1371374422,), (1371374513,), (1371374558,), (1371374595,), (1371374670,), (1371374716,), (1371375215,), (1371375220,), (1371375696,), (1371375730,), (1371375738,), (1371375743,), (1371375754,), (1371375760,), (1371376029,), (1371376032,), (1371376034,), (1371376044,), (1371376058,), (1371376069,), (1371376160,), (1371376162,), (1371376165,), (1371376175,), (1371376185,), (1371376187,), (1371376390,), (1371376395,), (1371376398,), (1371376405,), (1371376408,), (1371376410,), (1371376570,), (1371376572,), (1371376573,), (1371376580,), (1371376583,), (1371376588,), (1371376734,), (1371376736,), (1371376737,), (1371376738,), (1371376747,), (1371376759,), (1371377001,), (1371377003,), (1371377004,), (1371377040,), (1371377043,), (1371377051,), (1371377153,), (1371377155,), (1371377165,), (1371377167,), (1371377170,), (1371377179,), (1371377347,), (1371377354,), (1371377371,), (1371377395,), (1371377399,), (1371377402,), (1371377648,), (1371377649,), (1371377657,), (1371377662,), (1371377664,), (1371377666,), (1371377838,), (1371377847,), (1371377849,), (1371377851,), (1371374878,), (1371374881,), (1371374954,), (1371374957,), (1371375029,), (1371375030,), (1371375097,), (1371375100,), (1371375164,), (1371375166,), (1371375357,), (1371375386,), (1371375393,), (1371375396,), (1371375399,), (1371375410,), (1371375497,), (1371375539,), (1371375574,), (1371375608,), (1371375639,), (1371375643,), (1371375773,), (1371375775,), (1371375781,), (1371375783,), (1371375793,), (1371375795,), (1371375812,), (1371375816,), (1371375824,), (1371375825,), (1371375834,), (1371375839,), (1371375871,), (1371375885,), (1371375907,), (1371375913,), (1371375917,), (1371375948,), (1371375985,), (1371375994,), (1371375997,), (1371375999,), (1371376008,), (1371376012,), (1371376078,), (1371376083,), (1371376088,), (1371376099,), (1371376103,), (1371376108,), (1371376124,), (1371376125,), (1371376133,), (1371376135,), (1371376144,), (1371376147,), (1371376199,), (1371376200,), (1371376202,), (1371376203,), (1371376211,), (1371376212,), (1371376213,), (1371376214,), (1371376216,), (1371376217,), (1371376225,), (1371376226,), (1371376244,), (1371376251,), (1371376253,), (1371376259,), (1371376268,), (1371376309,), (1371376326,), (1371376327,), (1371376328,), (1371376346,), (1371376365,), (1371376368,), (1371376428,), (1371376429,), (1371376433,), (1371376434,), (1371376454,), (1371376455,), (1371376461,), (1371376462,), (1371376466,), (1371376467,), (1371376468,), (1371376470,), (1371376482,), (1371376489,), (1371376491,), (1371376495,), (1371376498,), (1371376508,), (1371376525,), (1371376527,), (1371376529,), (1371376530,), (1371376539,), (1371376542,), (1371376608,), (1371376609,), (1371376614,), (1371376615,), (1371376625,), (1371376626,), (1371376629,), (1371376630,), (1371376634,), (1371376635,), (1371376637,), (1371376639,), (1371376655,), (1371376663,), (1371376664,), (1371376668,), (1371376673,), (1371376687,), (1371376700,), (1371376702,), (1371376703,), (1371376705,), (1371376714,), (1371376717,), (1371376778,), (1371376782,), (1371376789,), (1371376796,), (1371376799,), (1371376804,), (1371376817,), (1371376820,), (1371376830,), (1371376835,), (1371376839,), (1371376846,), (1371376876,), (1371376878,), (1371376880,), (1371376912,), (1371376922,), (1371376942,), (1371377069,), (1371377070,), (1371377075,), (1371377076,), (1371377087,), (1371377088,), (1371377092,), (1371377093,), (1371377095,), (1371377096,), (1371377097,), (1371377098,), (1371377116,), (1371377124,), (1371377128,), (1371377132,), (1371377135,), (1371377146,), (1371377203,), (1371377207,), (1371377211,), (1371377217,), (1371377228,), (1371377238,), (1371377251,), (1371377255,), (1371377259,), (1371377271,), (1371377275,), (1371377283,), (1371377307,), (1371377310,), (1371377318,), (1371377321,), (1371377326,), (1371377335,), (1371377468,), (1371377474,), (1371377504,), (1371377514,), (1371377516,), (1371377542,), (1371377552,), (1371377556,), (1371377561,), (1371377566,), (1371377577,), (1371377581,), (1371377597,), (1371377599,), (1371377600,), (1371377608,), (1371377612,), (1371377617,), (1371377690,), (1371377694,), (1371377698,), (1371377709,), (1371377720,), (1371377724,), (1371377735,), (1371377738,), (1371377745,), (1371377779,), (1371377793,), (1371377796,), (1371377807,), (1371377809,), (1371377818,), (1371377821,), (1371377825,), (1371377828,), (1371377880,), (1371377883,), (1371377887,), (1371377889,), (1371377898,), (1371377902,), (1371377912,), (1371377920,), (1371377922,), (1371377925,), (1371377935,), (1371377938,), (1371377952,), (1371377962,), (1371377963,), (1371377965,), (1371377974,), (1371377983,), (1371378032,), (1371378035,), (1371378037,), (1371378038,), (1371378047,), (1371378048,), (1371378050,), (1371378051,), (1371378053,), (1371378054,), (1371378055,), (1371378056,), (1371378086,), (1371378095,), (1371378098,), (1371378108,), (1371378111,), (1371378127,), (1371378150,), (1371378160,), (1371378174,), (1371378176,), (1371378184,), (1371378187,), (1371378372,), (1371378377,), (1371378392,), (1371378394,), (1371378397,), (1371378399,), (1371378418,), (1371378427,), (1371378431,), (1371378435,), (1371378438,), (1371378454,), (1371378547,), (1371378573,), (1371378577,), (1371378580,), (1371378583,), (1371378593,), (1371378606,), (1371378609,), (1371378612,), (1371378616,), (1371378626,), (1371378636,), (1371378667,), (1371378670,), (1371378672,), (1371378681,), (1371378684,), (1371378689,), (1371378848,), (1371378854,), (1371378861,), (1371378864,), (1371378867,), (1371378881,), (1371378898,), (1371378906,), (1371378908,), (1371378912,), (1371378916,), (1371378934,), (1371378946,), (1371378952,), (1371378956,), (1371378967,), (1371378973,), (1371378978,), (1371379036,), (1371379048,), (1371379058,), (1371379060,), (1371379061,), (1371379068,), (1371379078,), (1371379081,), (1371379085,), (1371379088,), (1371379097,), (1371379098,), (1371379106,), (1371379108,), (1371379110,), (1371379117,), (1371379120,), (1371379124,), (1371379176,), (1371379179,), (1371379187,), (1371379188,), (1371379189,), (1371379192,), (1371379209,), (1371379218,), (1371379221,), (1371379225,), (1371379230,), (1371379270,), (1371379316,), (1371379321,), (1371379322,), (1371379324,), (1371379327,), (1371379329,), (1371379337,), (1371379346,), (1371379351,), (1371379359,), (1371379370,), (1371379376,), (1371379385,), (1371379389,), (1371379391,), (1371379392,), (1371379399,), (1371379401,), (1371379449,), (1371379450,), (1371379456,), (1371379457,), (1371379462,), (1371379463,), (1371379465,), (1371379466,), (1371379474,), (1371379475,), (1371379477,), (1371379478,), (1371379484,), (1371379492,), (1371379494,), (1371379496,), (1371379498,), (1371379503,), (1371379519,), (1371379522,), (1371379523,), (1371379525,), (1371379534,), (1371379536,), (1371379579,), (1371379581,), (1371379585,), (1371379592,), (1371379596,), (1371379598,), (1371379601,), (1371379603,), (1371379605,), (1371379606,), (1371379616,), (1371379617,), (1371379720,), (1371379762,), (1371379798,), (1371379836,), (1371379871,), (1371379913,), (1371380609,), (1371380666,), (1371380738,), (1371380821,), (1371380895,), (1371380932,), (1371381128,), (1371381180,), (1371381199,), (1371381238,), (1371381257,), (1371381289,), (1371381313,), (1371381344,), (1371381376,), (1371381410,), (1371381445,), (1371381526,), (1371381551,), (1371381560,), (1371381584,), (1371381595,), (1371381630,), (1371381754,), (1371381787,), (1371381820,), (1371381852,), (1371381894,), (1371381929,), (1371382390,), (1371382437,), (1371382478,), (1371382519,), (1371382555,), (1371382591,), (1371382712,), (1371382748,), (1371382775,), (1371382778,), (1371382788,), (1371382792,), (1371383034,), (1371383067,), (1371383099,), (1371383118,), (1371383126,), (1371383128,), (1371383198,), (1371383222,), (1371383225,), (1371383236,), (1371383270,), (1371383286,), (1371383309,), (1371383311,), (1371383314,), (1371383320,), (1371383322,), (1371383324,), (1371383365,), (1371383373,), (1371383377,), (1371383379,), (1371383380,), (1371383385,), (1371383396,), (1371383405,), (1371383408,), (1371383412,), (1371383421,), (1371383458,), (1371383476,), (1371383478,), (1371383479,), (1371383481,), (1371383490,), (1371383493,), (1371383540,), (1371383542,), (1371383546,), (1371383560,), (1371383575,), (1371383587,), (1371383606,), (1371383615,), (1371383618,), (1371383621,), (1371383625,), (1371383630,), (1371383662,), (1371383678,), (1371383682,), (1371383688,), (1371383690,), (1371383693,), (1371383766,), (1371383769,), (1371383772,), (1371383774,), (1371383778,), (1371383787,), (1371377854,), (1371377863,), (1371378004,), (1371378006,), (1371378007,), (1371378008,), (1371378017,), (1371378019,), (1371378238,), (1371378243,), (1371378250,), (1371378259,), (1371378261,), (1371378295,), (1371378463,), (1371378474,), (1371378487,), (1371378489,), (1371378491,), (1371378499,), (1371378753,), (1371378755,), (1371378763,), (1371378796,), (1371378802,), (1371378804,), (1371378994,), (1371379002,), (1371379003,), (1371379013,), (1371379018,), (1371379020,), (1371379147,), (1371379148,), (1371379155,), (1371379162,), (1371379164,), (1371379166,), (1371379287,), (1371379290,), (1371379293,), (1371379295,), (1371379298,), (1371379305,), (1371379416,), (1371379418,), (1371379426,), (1371379431,), (1371379435,), (1371379437,), (1371379557,), (1371379559,), (1371379560,), (1371379562,), (1371379565,), (1371379566,), (1371381268,), (1371382055,), (1371382091,), (1371382140,), (1371382181,), (1371382234,), (1371382270,), (1371382804,), (1371382805,), (1371382807,), (1371382808,), (1371382841,), (1371382879,), (1371383338,), (1371383346,), (1371383349,), (1371383351,), (1371383353,), (1371383355,), (1371383504,), (1371383505,), (1371383512,), (1371383515,), (1371383519,), (1371383521,), (1371383729,), (1371383742,), (1371383746,), (1371383751,), (1371383753,), (1371383754,), (1371383848,), (1371383856,), (1371383870,), (1371383796,), (1371383798,), (1371383801,), (1371383805,), (1371383810,), (1371383813,), (1371383824,), (1371383826,), (1371383828,), (1371383835,), (1371383837,), (1371383841,), (1371383889,), (1371383897,), (1371383900,), (1371383902,), (1371383904,), (1371383907,), (1371383917,), (1371383919,), (1371383922,), (1371383925,), (1371383928,), (1371383936,), (1371383956,), (1371383967,), (1371383968,), (1371383970,), (1371383979,), (1371383989,), (1371384096,), (1371384101,), (1371384106,), (1371384108,), (1371384116,), (1371384118,), (1371384139,), (1371384141,), (1371384147,), (1371384149,), (1371384151,), (1371384156,), (1371384196,), (1371384200,), (1371384203,), (1371384209,), (1371384213,), (1371384216,), (1371384227,), (1371384229,), (1371384232,), (1371384237,), (1371384242,), (1371384247,), (1371384255,), (1371384259,), (1371384261,), (1371384264,), (1371384273,), (1371384282,), (1371384326,), (1371384327,), (1371384334,), (1371384336,), (1371384341,), (1371384345,), (1371384346,), (1371384349,), (1371384350,), (1371384351,), (1371384358,), (1371384359,), (1371384361,), (1371384365,), (1371384371,), (1371384376,), (1371384381,), (1371384385,), (1371384395,), (1371384396,), (1371384397,), (1371384398,), (1371384402,), (1371384407,), (1371384469,), (1371384470,), (1371384473,), (1371384474,), (1371384478,), (1371384479,), (1371384482,), (1371384483,), (1371384485,), (1371384486,), (1371384487,), (1371384489,), (1371384509,), (1371384519,), (1371384521,), (1371384525,), (1371384530,), (1371384570,), (1371384611,), (1371384623,), (1371384626,), (1371384629,), (1371384632,), (1371384636,), (1371384692,), (1371384693,), (1371384698,), (1371384702,), (1371384708,), (1371384710,), (1371384716,), (1371384717,), (1371384721,), (1371384722,), (1371384724,), (1371384725,), (1371384730,), (1371384732,), (1371384742,), (1371384745,), (1371384750,), (1371384757,), (1371384808,), (1371384817,), (1371384823,), (1371384827,), (1371384830,), (1371384839,), (1371384845,), (1371384847,), (1371384861,), (1371384894,), (1371384926,), (1371384963,), (1371385067,), (1371385094,), (1371385107,), (1371385135,), (1371385183,), (1371385247,), (1371385658,), (1371385693,), (1371385752,), (1371385822,), (1371385894,), (1371385960,), (1371386063,), (1371386087,), (1371386115,), (1371386123,), (1371386157,), (1371386189,), (1371386655,), (1371386690,), (1371386724,), (1371386760,), (1371386824,), (1371386864,), (1371386972,), (1371386977,), (1371386982,), (1371387022,), (1371387080,), (1371387168,), (1371387381,), (1371387453,), (1371387550,), (1371387639,), (1371387661,), (1371387669,), (1371387970,), (1371388029,), (1371388092,), (1371388119,), (1371388134,), (1371388139,), (1371388613,), (1371388656,), (1371388725,), (1371388836,), (1371388940,), (1371389024,), (1371389266,), (1371389302,), (1371389337,), (1371389385,), (1371389458,), (1371389555,), (1371390631,), (1371390731,), (1371390832,), (1371390879,), (1371390943,), (1371390998,), (1371391259,), (1371391326,), (1371391403,), (1371391472,), (1371391494,), (1371391516,), (1371391690,), (1371391806,), (1371391920,), (1371392090,), (1371392267,), (1371392368,), (1371393818,), (1371393825,), (1371393954,), (1371393988,), (1371394111,), (1371394129,), (1371394208,), (1371394223,), (1371394287,), (1371394301,), (1371394383,), (1371394416,), (1371394943,), (1371395040,), (1371395132,), (1371395217,), (1371395338,), (1371395445,), (1371395947,), (1371396100,), (1371396177,), (1371396231,), (1371396287,), (1371396365,), (1371396885,), (1371396907,), (1371396974,), (1371397027,), (1371397078,), (1371397118,), (1371397233,), (1371397275,), (1371397309,), (1371397395,), (1371397451,), (1371397508,), (1371397820,), (1371397945,), (1371398038,), (1371398090,), (1371398168,), (1371398239,), (1371399173,), (1371399178,), (1371399222,), (1371399229,), (1371399282,), (1371399303,), (1371399359,), (1371399394,), (1371399491,), (1371399523,), (1371399634,), (1371399663,), (1371400168,), (1371400179,), (1371400206,), (1371400255,), (1371400317,), (1371400381,), (1371400540,), (1371400649,), (1371400782,), (1371400953,), (1371401083,), (1371401198,), (1371401796,), (1371401997,), (1371402202,), (1371402312,), (1371402404,), (1371402495,), (1371402734,), (1371402809,), (1371402879,), (1371402927,), (1371402978,), (1371403015,), (1371403718,), (1371403788,), (1371403873,), (1371403926,), (1371403966,), (1371403979,), (1371404043,), (1371404080,), (1371404116,), (1371404163,), (1371404229,), (1371404554,), (1371404556,), (1371404624,), (1371404631,), (1371404691,), (1371404694,), (1371404760,), (1371404768,), (1371404838,), (1371404846,), (1371404910,), (1371404918,), (1371405117,), (1371405184,), (1371405250,), (1371405268,), (1371405321,), (1371405363,), (1371405731,), (1371405825,), (1371405933,), (1371406038,), (1371406080,), (1371406149,), (1371406766,), (1371406829,), (1371406877,), (1371406918,), (1371406958,), (1371406971,), (1371407013,), (1371407075,), (1371407122,), (1371407158,), (1371407194,), (1371407218,), (1371407245,), (1371407277,), (1371407312,), (1371407327,), (1371407331,), (1371407335,), (1371407679,), (1371407680,), (1371407685,), (1371407686,), (1371407691,), (1371407692,), (1371407696,), (1371407697,), (1371407705,), (1371407706,), (1371407712,), (1371407713,), (1371407729,), (1371407732,), (1371407735,), (1371407753,), (1371407757,), (1371407769,), (1371407839,), (1371407844,), (1371407847,), (1371407849,), (1371407850,), (1371407852,), (1371407898,), (1371407902,), (1371407912,), (1371407916,), (1371407918,), (1371407925,), (1371407930,), (1371407932,), (1371407942,), (1371407945,), (1371407949,), (1371407954,), (1371407988,), (1371407992,), (1371407996,), (1371408011,), (1371408017,), (1371408020,), (1371408025,), (1371408034,), (1371408036,), (1371408039,), (1371408042,), (1371408045,), (1371408128,), (1371408161,), (1371408196,), (1371408222,), (1371408248,), (1371408275,), (1371408491,), (1371408500,), (1371408503,), (1371408508,), (1371408511,), (1371408512,), (1371408545,), (1371408572,), (1371408597,), (1371408633,), (1371408660,), (1371408690,), (1371409007,), (1371409031,), (1371409056,), (1371409083,), (1371409117,), (1371409147,), (1371409468,), (1371409496,), (1371409527,), (1371409556,), (1371409583,), (1371409610,), (1371409777,), (1371409780,), (1371409782,), (1371409784,), (1371409785,), (1371409787,), (1371409790,), (1371409793,), (1371409795,), (1371409799,), (1371409802,), (1371409805,), (1371410146,), (1371410171,), (1371410198,), (1371410230,), (1371410257,), (1371410271,), (1371410390,), (1371410411,), (1371410444,), (1371410492,), (1371410533,), (1371410569,), (1371410689,), (1371410693,), (1371410698,), (1371410700,), (1371410702,), (1371410704,), (1371410798,), (1371410823,), (1371410848,), (1371410873,), (1371410900,), (1371410927,), (1371411106,), (1371411109,), (1371411118,), (1371411122,), (1371411125,), (1371411128,), (1371411141,), (1371411148,), (1371411153,), (1371411154,), (1371411156,), (1371411160,), (1371411199,), (1371411201,), (1371411205,), (1371411207,), (1371411211,), (1371411215,), (1371411237,), (1371411240,), (1371411249,), (1371411254,), (1371411261,), (1371411266,), (1371411272,), (1371411275,), (1371411276,), (1371411278,), (1371411280,), (1371411282,), (1371411332,), (1371411341,), (1371411343,), (1371411348,), (1371411350,), (1371411355,), (1371403344,), (1371403397,), (1371403426,), (1371403433,), (1371404307,), (1371406349,), (1371406384,), (1371406418,), (1371406452,), (1371406493,), (1371406543,), (1371407413,), (1371407449,), (1371407502,), (1371407544,), (1371407577,), (1371407608,), (1371407858,), (1371407860,), (1371407866,), (1371407875,), (1371407878,), (1371407881,), (1371407960,), (1371407967,), (1371407971,), (1371407973,), (1371407978,), (1371407979,), (1371408056,), (1371408061,), (1371408066,), (1371408069,), (1371408073,), (1371408076,), (1371408377,), (1371408403,), (1371408430,), (1371408458,), (1371408473,), (1371408479,), (1371408785,), (1371408812,), (1371408845,), (1371408875,), (1371408901,), (1371408926,), (1371409240,), (1371409270,), (1371409294,), (1371409319,), (1371409344,), (1371409367,), (1371409696,), (1371409720,), (1371409746,), (1371409762,), (1371409763,), (1371409765,), (1371383874,), (1371383875,), (1371383878,), (1371384034,), (1371384060,), (1371384067,), (1371384069,), (1371384072,), (1371384076,), (1371384171,), (1371384174,), (1371384178,), (1371384180,), (1371384181,), (1371384189,), (1371384291,), (1371384298,), (1371384302,), (1371384310,), (1371384311,), (1371384313,), (1371384440,), (1371384445,), (1371384447,), (1371384451,), (1371384454,), (1371384455,), (1371384646,), (1371384655,), (1371384657,), (1371384661,), (1371384665,), (1371384673,), (1371384772,), (1371384783,), (1371384788,), (1371384791,), (1371384792,), (1371384794,), (1371385393,), (1371385462,), (1371385500,), (1371385536,), (1371385595,), (1371385635,), (1371386339,), (1371386388,), (1371386450,), (1371386467,), (1371386469,), (1371386476,), (1371388234,), (1371388271,), (1371388305,), (1371388360,), (1371388431,), (1371388484,), (1371389920,), (1371390015,), (1371390113,), (1371390207,), (1371390321,), (1371390361,), (1371392641,), (1371392781,), (1371392972,), (1371393153,), (1371393260,), (1371393374,), (1371396597,), (1371396672,), (1371396769,), (1371396857,), (1371396874,), (1371396875,), (1371398479,), (1371398530,), (1371398601,), (1371398681,), (1371398777,), (1371398892,), (1371401517,), (1371401519,), (1371401522,), (1371401559,), (1371401585,), (1371401587,), (1371403201,), (1371403280,), (1371411405,), (1371411408,), (1371411412,), (1371411417,), (1371411420,), (1371411424,), (1371411449,), (1371411450,), (1371411454,), (1371411455,), (1371411457,), (1371411459,), (1371411468,), (1371411469,), (1371411476,), (1371411477,), (1371411481,), (1371411482,), (1371411489,), (1371411491,), (1371411507,), (1371411534,), (1371411559,), (1371411584,), (1371411847,), (1371411851,), (1371411854,), (1371411857,), (1371411861,), (1371411864,), (1371411889,), (1371411890,), (1371411893,), (1371411894,), (1371411897,), (1371411898,), (1371411900,), (1371411902,), (1371411904,), (1371411905,), (1371411908,), (1371411909,), (1371411928,), (1371411929,), (1371411931,), (1371411933,), (1371411935,), (1371411937,), (1371411976,), (1371411980,), (1371411982,), (1371411983,), (1371411990,), (1371411992,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24757131]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] map_info['map_portfolio_photo'] : {24757131: [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928, 1371411909, 1371411908, 1371411905, 1371411904, 1371411902, 1371411900, 1371411898, 1371411897, 1371411894, 1371411893, 1371411890, 1371411889, 1371411864, 1371411861, 1371411857, 1371411854, 1371411851, 1371411847, 1371411584, 1371411559, 1371411534, 1371411507, 1371411491, 1371411489, 1371411482, 1371411481, 1371411477, 1371411476, 1371411469, 1371411468, 1371411459, 1371411457, 1371411455, 1371411454, 1371411450, 1371411449, 1371411424, 1371411420, 1371411417, 1371411412, 1371411408, 1371411405]} final : True mtd_id 4302 list_pids : [1371411992, 1371411990, 1371411983, 1371411982, 1371411980, 1371411976, 1371411937, 1371411935, 1371411933, 1371411931, 1371411929, 1371411928] Looping around the photos to save general results len do output : 1 /24757131Didn'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, '3253406') ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406') ('4302', None, None, None, None, None, None, None, '3253406') ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406') 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, '24757131', 'None', None, None, None, None, '3253406'), ('4302', '24757131', '1371411992', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411990', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411983', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411982', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411980', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411976', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411937', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411935', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411933', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411931', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411929', None, None, None, None, None, '3253406'), ('4302', '24757131', '1371411928', None, None, None, None, None, '3253406')] time used for this insertion : 0.016561031341552734 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.153141975402832 time spend to save output : 0.016735553741455078 total time spend for step 5 : 1.169877529144287 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 (3253406) 2.24user 2.03system 0:09.75elapsed 43%CPU (0avgtext+0avgdata 159908maxresident)k 4384inputs+10112outputs (77major+76561minor)pagefaults 0swaps