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 : 3814210 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 (4213002) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4213002) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364180 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4213002'] with mtr_portfolio_ids : ['29364180'] and first list_photo_ids : [] new path : /proc/3814210/ Name: python3 Umask: 0002 State: R (running) Tgid: 3814210 Ngid: 0 Pid: 3814210 PPid: 3814209 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3814210 NSpid: 3814210 NSpgid: 3812977 NSsid: 3812977 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105052 kB VmRSS: 105052 kB RssAnon: 66320 kB RssFile: 38732 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3814210', 'Ngid': '0', 'Pid': '3814210', 'PPid': '3814209', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3814210', 'NSpid': '3814210', 'NSpgid': '3812977', 'NSsid': '3812977', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105052 kB', 'VmRSS': '105052 kB', 'RssAnon': '66320 kB', 'RssFile': '38732 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '3814210', '1113376', '0', '1113376', '872104', '105052', b'', 'marlene', '4213002') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29364180) 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 (4213002 ) ) 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 (29364180) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399005516, 'portfolio_id': 29364180}, {'photo_id': 1399005514, 'portfolio_id': 29364180}, {'photo_id': 1399005512, 'portfolio_id': 29364180}, {'photo_id': 1399005510, 'portfolio_id': 29364180}, {'photo_id': 1399005481, 'portfolio_id': 29364180}, {'photo_id': 1399005477, 'portfolio_id': 29364180}, {'photo_id': 1399005475, 'portfolio_id': 29364180}, {'photo_id': 1399005473, 'portfolio_id': 29364180}, {'photo_id': 1399005471, 'portfolio_id': 29364180}, {'photo_id': 1399005458, 'portfolio_id': 29364180}, {'photo_id': 1399005456, 'portfolio_id': 29364180}, {'photo_id': 1399005453, 'portfolio_id': 29364180}, {'photo_id': 1399005446, 'portfolio_id': 29364180}, {'photo_id': 1399005445, 'portfolio_id': 29364180}, {'photo_id': 1399005437, 'portfolio_id': 29364180}, {'photo_id': 1399005143, 'portfolio_id': 29364180}, {'photo_id': 1399005141, 'portfolio_id': 29364180}, {'photo_id': 1399005130, 'portfolio_id': 29364180}, {'photo_id': 1399005127, 'portfolio_id': 29364180}, {'photo_id': 1399005125, 'portfolio_id': 29364180}, {'photo_id': 1399005123, 'portfolio_id': 29364180}, {'photo_id': 1399005121, 'portfolio_id': 29364180}, {'photo_id': 1399005119, 'portfolio_id': 29364180}, {'photo_id': 1399005076, 'portfolio_id': 29364180}, {'photo_id': 1399005073, 'portfolio_id': 29364180}, {'photo_id': 1399005072, 'portfolio_id': 29364180}, {'photo_id': 1399005071, 'portfolio_id': 29364180}, {'photo_id': 1399005070, 'portfolio_id': 29364180}, {'photo_id': 1399005051, 'portfolio_id': 29364180}, {'photo_id': 1399005036, 'portfolio_id': 29364180}, {'photo_id': 1399005022, 'portfolio_id': 29364180}, {'photo_id': 1399005012, 'portfolio_id': 29364180}, {'photo_id': 1399004971, 'portfolio_id': 29364180}, {'photo_id': 1399004943, 'portfolio_id': 29364180}, {'photo_id': 1399004940, 'portfolio_id': 29364180}, {'photo_id': 1399004937, 'portfolio_id': 29364180}, {'photo_id': 1399004936, 'portfolio_id': 29364180}, {'photo_id': 1399004935, 'portfolio_id': 29364180}, {'photo_id': 1399004934, 'portfolio_id': 29364180}, {'photo_id': 1399004860, 'portfolio_id': 29364180}, {'photo_id': 1399004859, 'portfolio_id': 29364180}, {'photo_id': 1399004858, 'portfolio_id': 29364180}, {'photo_id': 1399004829, 'portfolio_id': 29364180}, {'photo_id': 1399004707, 'portfolio_id': 29364180}, {'photo_id': 1399004645, 'portfolio_id': 29364180}, {'photo_id': 1399004575, 'portfolio_id': 29364180}, {'photo_id': 1399004542, 'portfolio_id': 29364180}, {'photo_id': 1399004503, 'portfolio_id': 29364180}, {'photo_id': 1399004472, 'portfolio_id': 29364180}, {'photo_id': 1399004458, 'portfolio_id': 29364180}, {'photo_id': 1399004316, 'portfolio_id': 29364180}, {'photo_id': 1399004274, 'portfolio_id': 29364180}, {'photo_id': 1399004241, 'portfolio_id': 29364180}, {'photo_id': 1399004208, 'portfolio_id': 29364180}, {'photo_id': 1399004171, 'portfolio_id': 29364180}, {'photo_id': 1399004111, 'portfolio_id': 29364180}, {'photo_id': 1399003905, 'portfolio_id': 29364180}, {'photo_id': 1399003861, 'portfolio_id': 29364180}, {'photo_id': 1399003827, 'portfolio_id': 29364180}, {'photo_id': 1399003796, 'portfolio_id': 29364180}, {'photo_id': 1399003763, 'portfolio_id': 29364180}, {'photo_id': 1399003728, 'portfolio_id': 29364180}, {'photo_id': 1399003536, 'portfolio_id': 29364180}, {'photo_id': 1399003533, 'portfolio_id': 29364180}, {'photo_id': 1399003530, 'portfolio_id': 29364180}, {'photo_id': 1399003526, 'portfolio_id': 29364180}, {'photo_id': 1399003525, 'portfolio_id': 29364180}, {'photo_id': 1399003025, 'portfolio_id': 29364180}, {'photo_id': 1399002993, 'portfolio_id': 29364180}, {'photo_id': 1399002898, 'portfolio_id': 29364180}, {'photo_id': 1399002854, 'portfolio_id': 29364180}] map_portfolio_id_photo_id: {29364180: [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437, 1399005143, 1399005141, 1399005130, 1399005127, 1399005125, 1399005123, 1399005121, 1399005119, 1399005076, 1399005073, 1399005072, 1399005071, 1399005070, 1399005051, 1399005036, 1399005022, 1399005012, 1399004971, 1399004943, 1399004940, 1399004937, 1399004936, 1399004935, 1399004934, 1399004860, 1399004859, 1399004858, 1399004829, 1399004707, 1399004645, 1399004575, 1399004542, 1399004503, 1399004472, 1399004458, 1399004316, 1399004274, 1399004241, 1399004208, 1399004171, 1399004111, 1399003905, 1399003861, 1399003827, 1399003796, 1399003763, 1399003728, 1399003536, 1399003533, 1399003530, 1399003526, 1399003525, 1399003025, 1399002993, 1399002898, 1399002854]} ##### 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.01944589614868164 #### 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 Fri Dec 12 07:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29364180) 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 : 29364180 get user id for portfolio 29364180 get sub ptf for main ptf 29364180, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'Carton_brun', 'kraft', 'flou', 'Carton_gris', 'papier', 'plastique', 'metal', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364180 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','kraft','flou','Carton_gris','papier','plastique','metal','Teint_Dans_La_Masse','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364180 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','kraft','flou','Carton_gris','papier','plastique','metal','Teint_Dans_La_Masse','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29364180, 'sub_port_id': 29364221, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999177, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'kraft': {'main_port_id': 29364180, 'sub_port_id': 29364222, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999178, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'mal_croppe': {'main_port_id': 29364180, 'sub_port_id': 29364223, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999179, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'environnement': {'main_port_id': 29364180, 'sub_port_id': 29364224, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999180, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'metal': {'main_port_id': 29364180, 'sub_port_id': 29364225, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999181, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'Carton_gris': {'main_port_id': 29364180, 'sub_port_id': 29364226, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999182, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'papier': {'main_port_id': 29364180, 'sub_port_id': 29364227, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999183, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'cartonnette': {'main_port_id': 29364180, 'sub_port_id': 29364228, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999184, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'autre_refus': {'main_port_id': 29364180, 'sub_port_id': 29364229, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999185, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'plastique': {'main_port_id': 29364180, 'sub_port_id': 29364230, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999186, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29364180, 'sub_port_id': 29364231, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999187, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}, 'Carton_brun': {'main_port_id': 29364180, 'sub_port_id': 29364232, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999188, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364221 , 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=29364180 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 (29364221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364222 , 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=29364180 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 (29364222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364223 , 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=29364180 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 (29364223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364224 , 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=29364180 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 (29364224) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364225 , 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=29364180 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 (29364225) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364226 , 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=29364180 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 (29364226) result : ((1399004440,), (1399004442,), (1399004924,), (1399004980,), (1399004982,), (1399004984,), (1399005137,), (1399005345,), (1399005370,), (1399005371,), (1399005488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364227 , 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=29364180 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 (29364227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364228 , 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=29364180 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 (29364228) result : ((1399004998,), (1399005000,), (1399005002,), (1399005363,), (1399005364,), (1399005365,), (1399005366,), (1399005373,), (1399005489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364229 , 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=29364180 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 (29364229) result : ((1399004906,), (1399004908,), (1399004911,), (1399004913,), (1399004915,), (1399004965,), (1399005136,), (1399005335,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364230 , 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=29364180 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 (29364230) result : ((1399004451,), (1399004931,), (1399004932,), (1399005011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364231 , 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=29364180 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 (29364231) result : ((1399004421,), (1399004423,), (1399004425,), (1399004427,), (1399004429,), (1399004894,), (1399004954,), (1399004955,), (1399004956,), (1399005326,), (1399005369,), (1399005487,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29364232 , 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=29364180 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 (29364232) result : ((1399004928,), (1399004929,), (1399004930,), (1399005138,), (1399005139,), (1399005367,), (1399005383,), (1399005385,), (1399005387,), (1399005467,), (1399005491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29364180) result : ((1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364180 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','kraft','flou','Carton_gris','papier','plastique','metal','Teint_Dans_La_Masse','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364180 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','kraft','flou','Carton_gris','papier','plastique','metal','Teint_Dans_La_Masse','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29364180, 'sub_port_id': 29364234, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999189, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'kraft': {'main_port_id': 29364180, 'sub_port_id': 29364235, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999190, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 29364180, 'sub_port_id': 29364236, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999191, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'environnement': {'main_port_id': 29364180, 'sub_port_id': 29364237, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999192, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'metal': {'main_port_id': 29364180, 'sub_port_id': 29364238, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999193, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 29364180, 'sub_port_id': 29364239, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999194, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'papier': {'main_port_id': 29364180, 'sub_port_id': 29364240, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999195, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'cartonnette': {'main_port_id': 29364180, 'sub_port_id': 29364242, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999196, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'autre_refus': {'main_port_id': 29364180, 'sub_port_id': 29364243, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999197, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'plastique': {'main_port_id': 29364180, 'sub_port_id': 29364244, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999198, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29364180, 'sub_port_id': 29364245, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999199, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}, 'Carton_brun': {'main_port_id': 29364180, 'sub_port_id': 29364246, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19999200, 'last_updated_at': datetime.datetime(2025, 12, 12, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29364246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29364232 lien utilise dans velours : https://marlene.fotonower.com/velours/29364234,29364235,29364236,29364237,29364238,29364239,29364240,29364242,29364243,29364244,29364245,29364246?tags=flou,kraft,mal_croppe,environnement,metal,Carton_gris,papier,cartonnette,autre_refus,plastique,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29364180]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] map_info['map_portfolio_photo'] : {29364180: [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437, 1399005143, 1399005141, 1399005130, 1399005127, 1399005125, 1399005123, 1399005121, 1399005119, 1399005076, 1399005073, 1399005072, 1399005071, 1399005070, 1399005051, 1399005036, 1399005022, 1399005012, 1399004971, 1399004943, 1399004940, 1399004937, 1399004936, 1399004935, 1399004934, 1399004860, 1399004859, 1399004858, 1399004829, 1399004707, 1399004645, 1399004575, 1399004542, 1399004503, 1399004472, 1399004458, 1399004316, 1399004274, 1399004241, 1399004208, 1399004171, 1399004111, 1399003905, 1399003861, 1399003827, 1399003796, 1399003763, 1399003728, 1399003536, 1399003533, 1399003530, 1399003526, 1399003525, 1399003025, 1399002993, 1399002898, 1399002854]} final : False mtd_id 4302 list_pids : [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] Looping around the photos to save general results len do output : 1 /29364180. 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, '4213002') ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29364180', "{'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232}", None, None, None, None, '4213002'), ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002')] time used for this insertion : 0.01584935188293457 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.830686092376709 time spend to save output : 0.0161592960357666 total time spend for step 1 : 1.8468453884124756 step2:final Fri Dec 12 07:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29364180) 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 29364180 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399003025,1399002993,1399002898,1399002854,1399004458,1399003536,1399003533,1399004316,1399003530,1399004274,1399003526,1399004241,1399003905,1399003525,1399003861,1399003827,1399003796,1399003763,1399003728,1399004208,1399004171,1399004111,1399004707,1399004645,1399004575,1399004542,1399004503,1399004472,1399004860,1399004859,1399004858,1399004829,1399004943,1399004940,1399004937,1399004936,1399004935,1399004934,1399005051,1399005036,1399005022,1399005012,1399004971,1399005076,1399005073,1399005072,1399005071,1399005070,1399005130,1399005127,1399005125,1399005123,1399005121,1399005119,1399005143,1399005141,1399005458,1399005456,1399005453,1399005446,1399005445,1399005437,1399005481,1399005477,1399005475,1399005473,1399005471,1399005516,1399005514,1399005512,1399005510); 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([29364180]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} new output for save of step final : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] map_info['map_portfolio_photo'] : {29364180: [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437, 1399005143, 1399005141, 1399005130, 1399005127, 1399005125, 1399005123, 1399005121, 1399005119, 1399005076, 1399005073, 1399005072, 1399005071, 1399005070, 1399005051, 1399005036, 1399005022, 1399005012, 1399004971, 1399004943, 1399004940, 1399004937, 1399004936, 1399004935, 1399004934, 1399004860, 1399004859, 1399004858, 1399004829, 1399004707, 1399004645, 1399004575, 1399004542, 1399004503, 1399004472, 1399004458, 1399004316, 1399004274, 1399004241, 1399004208, 1399004171, 1399004111, 1399003905, 1399003861, 1399003827, 1399003796, 1399003763, 1399003728, 1399003536, 1399003533, 1399003530, 1399003526, 1399003525, 1399003025, 1399002993, 1399002898, 1399002854]} final : False mtd_id 4302 list_pids : [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] Looping around the photos to save general results len do output : 15 /1399005516.Didn't retrieve data . /1399005514.Didn't retrieve data . /1399005512.Didn't retrieve data . /1399005510.Didn't retrieve data . /1399005481.Didn't retrieve data . /1399005477.Didn't retrieve data . /1399005475.Didn't retrieve data . /1399005473.Didn't retrieve data . /1399005471.Didn't retrieve data . /1399005458.Didn't retrieve data . /1399005456.Didn't retrieve data . /1399005453.Didn't retrieve data . /1399005446.Didn't retrieve data . /1399005445.Didn't retrieve data . /1399005437.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, '4213002') ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '29364180', '1399005516', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005514', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005512', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005510', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005481', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005477', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005475', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005473', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005471', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005458', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005456', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005453', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005446', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005445', '0.06627404327278591', None, None, None, None, '4213002'), ('4302', '29364180', '1399005437', '0.06627404327278591', None, None, None, None, '4213002')] time used for this insertion : 0.015064716339111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08079695701599121 time spend to save output : 0.015742063522338867 total time spend for step 2 : 0.09653902053833008 step3:velours_tree Fri Dec 12 07:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29364180: [{'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232}]} input_args_next_step : {29364180: ()} output_args : {29364180: [{'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232}]} args : 29364180 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29364180) 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([29364180]) 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.2585623264312744 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.2586100101470947 step4:send_mail_cod Fri Dec 12 07:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} input_args_next_step : {1399005516: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005516 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005514 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005512 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005510 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005481 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005477 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005475 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005473 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005471 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005458 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005456 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005453 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005446 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005445 depend.output_id : 0 input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ()} output_args : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',)} args : 1399005437 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 : {29364180: [{'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232}]} input_args_next_step : {1399005516: ('0.06627404327278591',), 1399005514: ('0.06627404327278591',), 1399005512: ('0.06627404327278591',), 1399005510: ('0.06627404327278591',), 1399005481: ('0.06627404327278591',), 1399005477: ('0.06627404327278591',), 1399005475: ('0.06627404327278591',), 1399005473: ('0.06627404327278591',), 1399005471: ('0.06627404327278591',), 1399005458: ('0.06627404327278591',), 1399005456: ('0.06627404327278591',), 1399005453: ('0.06627404327278591',), 1399005446: ('0.06627404327278591',), 1399005445: ('0.06627404327278591',), 1399005437: ('0.06627404327278591',), 29364180: ()} output_args : {29364180: [{'flou': 29364221, 'kraft': 29364222, 'mal_croppe': 29364223, 'environnement': 29364224, 'metal': 29364225, 'Carton_gris': 29364226, 'papier': 29364227, 'cartonnette': 29364228, 'autre_refus': 29364229, 'plastique': 29364230, 'Teint_Dans_La_Masse': 29364231, 'Carton_brun': 29364232}]} args : 29364180 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 :16, first value : ('0.06627404327278591',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29364180) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1399005516,1399005514,1399005512,1399005510,1399005481,1399005477,1399005475,1399005473,1399005471,1399005458,1399005456,1399005453,1399005446,1399005445,1399005437) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399005437 begin to download photo : 1399005456 begin to download photo : 1399005475 begin to download photo : 1399005512 download finish for photo 1399005456 begin to download photo : 1399005458 download finish for photo 1399005475 begin to download photo : 1399005477 download finish for photo 1399005512 begin to download photo : 1399005514 download finish for photo 1399005437 begin to download photo : 1399005445 download finish for photo 1399005514 begin to download photo : 1399005516 download finish for photo 1399005477 begin to download photo : 1399005481 download finish for photo 1399005458 begin to download photo : 1399005471 download finish for photo 1399005445 begin to download photo : 1399005446 download finish for photo 1399005481 begin to download photo : 1399005510 download finish for photo 1399005516 download finish for photo 1399005471 begin to download photo : 1399005473 download finish for photo 1399005446 begin to download photo : 1399005453 download finish for photo 1399005510 download finish for photo 1399005473 download finish for photo 1399005453 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293642211765520101/ imagette293642221765520101/ imagette293642231765520101/ imagette293642251765520101/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29364180_12-12-2025_07_15_01.pdf 29364221 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293642211765520101 29364222 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293642221765520101 29364223 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293642231765520101 29364225 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293642251765520101 29364228 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004998: '1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274136_0.png', 1399005000: '1765519627_1007757_1399003526_507a1ccf684fd3e4cbb74d836aab4564_rle_crop_4067274323_0.png', 1399005002: '1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274341_0.png', 1399005363: '1765519866_1020011_1399004940_0ccafefcfc35e2ca5e3c337be1b2af26_rle_crop_4067276668_0.png', 1399005364: '1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276734_0.png', 1399005365: '1765519866_1020011_1399004934_b09acf349cca40237dd01ec16e64a61e_rle_crop_4067276826_0.png', 1399005366: '1765519866_1020011_1399004934_b09acf349cca40237dd01ec16e64a61e_rle_crop_4067276825_0.png', 1399005373: '1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276850_0.png', 1399005489: '1765519985_1028481_1399005071_667c57f39c07126242977c1026728633_rle_crop_4067277428_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b3c4145abe4b5899019fd4bc68187ddd_45991407.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/40b455f4592a15f2aee313263d781fc9_63723732.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b3c4145abe4b5899019fd4bc68187ddd_9963144.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/43c9c301c4d4180ca8f007b719325a0c_23605775.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1f30c5bd51045863c7dd0e7110d88ffa_86096117.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/65e8a43f7548fe2d292a42fbf7618a89_70899651.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9e486aa84576d79f639119026b10627a_23998129.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/3d52decc4880a1c8ef0b29fb74330ffa_24335938.png change filename to text .imagette293642281765520101/ imagette293642281765520101/1765519866_1020011_1399004934_b09acf349cca40237dd01ec16e64a61e_rle_crop_4067276825_0.png.png imagette293642281765520101/1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274136_0.png.png imagette293642281765520101/1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276734_0.png.png imagette293642281765520101/1765519627_1007757_1399003526_507a1ccf684fd3e4cbb74d836aab4564_rle_crop_4067274323_0.png.png imagette293642281765520101/1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274341_0.png.png imagette293642281765520101/1765519866_1020011_1399004940_0ccafefcfc35e2ca5e3c337be1b2af26_rle_crop_4067276668_0.png.png imagette293642281765520101/1765519866_1020011_1399004934_b09acf349cca40237dd01ec16e64a61e_rle_crop_4067276826_0.png.png imagette293642281765520101/1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276850_0.png.png imagette293642281765520101/1765519985_1028481_1399005071_667c57f39c07126242977c1026728633_rle_crop_4067277428_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/4da361d42b1b8b7f5131ff8deb398bdd_20917575.png imagette293642281765520101 29364229 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004906: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270856_0.png', 1399004908: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270846_0.png', 1399004911: '1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270869_0.png', 1399004913: '1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270866_0.png', 1399004915: '1765519585_1006274_1399003763_fc1c6191c2a59c0aaab3c07026947e36_rle_crop_4067270880_0.png', 1399004965: '1765519627_1007757_1399003861_e87fc636ff3665b8427e4a9d892b7437_rle_crop_4067274149_0.png', 1399005136: '1765519825_1018012_1399004171_cf801bc4576b5ad744a6d104dc300e48_rle_crop_4067276510_0.png', 1399005335: '1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/00527b18d25ee523a5e6950c20f87539_573762.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/073f82ae317ad49e20370a1b9cc90954_27487502.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0abc111d7b737e8a51189c58762a675e_83190417.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/db2f1340104c12baf5b22606f3535b6e_43495094.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/55fcd5be6f364e684aab5292bd37ba0d_43054630.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ff64bec3d2271a96cb0c1c69bd660a32_31778619.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fae2e975aec7aad3328b260fd0d2486d_92427085.png change filename to text .imagette293642291765520101/ imagette293642291765520101/1765519825_1018012_1399004171_cf801bc4576b5ad744a6d104dc300e48_rle_crop_4067276510_0.png.png imagette293642291765520101/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270856_0.png.png imagette293642291765520101/1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270866_0.png.png imagette293642291765520101/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270846_0.png.png imagette293642291765520101/1765519585_1006274_1399003763_fc1c6191c2a59c0aaab3c07026947e36_rle_crop_4067270880_0.png.png imagette293642291765520101/1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270869_0.png.png imagette293642291765520101/1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276736_0.png.png imagette293642291765520101/1765519627_1007757_1399003861_e87fc636ff3665b8427e4a9d892b7437_rle_crop_4067274149_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7325cab06ded91de78782c0ed9f263fa_5903287.png imagette293642291765520101 29364230 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004451: '1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270526_0.png', 1399004931: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270845_0.png', 1399004932: '1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270867_0.png', 1399005011: '1765519627_1007757_1399003530_db1dfa8a1a4c97cfa674b47f406665fb_rle_crop_4067274175_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/db0804e5b43849d1ac696abb534e0c9d_28347400.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/65af2aede7fb3be0ccf64b13db642d94_48039435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ced8064f0d2ffe3f603c8b7b04ec339a_3840989.png change filename to text .imagette293642301765520102/ imagette293642301765520102/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270845_0.png.png imagette293642301765520102/1765519585_1006274_1399003796_a4f9ff97422de6d891670d43994752ae_rle_crop_4067270867_0.png.png imagette293642301765520102/1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270526_0.png.png imagette293642301765520102/1765519627_1007757_1399003530_db1dfa8a1a4c97cfa674b47f406665fb_rle_crop_4067274175_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7fe78b6fbf5ac0e54f1ce0386cf533e6_66697957.png imagette293642301765520102 29364226 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004440: '1765519467_1002070_1399002993_92f27449fb01bbfb019242cd565b9b1a_rle_crop_4067270513_0.png', 1399004442: '1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270529_0.png', 1399004924: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270855_0.png', 1399004980: '1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274137_0.png', 1399004982: '1765519627_1007757_1399003530_db1dfa8a1a4c97cfa674b47f406665fb_rle_crop_4067274176_0.png', 1399004984: '1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274342_0.png', 1399005137: '1765519825_1018012_1399004707_a23fd1623608a91c5ff625db127cef21_rle_crop_4067276504_0.png', 1399005345: '1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276740_0.png', 1399005370: '1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276846_0.png', 1399005371: '1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277084_0.png', 1399005488: '1765519985_1028481_1399005070_c09629caed62e21662f7e6b0df7a3072_rle_crop_4067277445_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7a218b6af4e6dba615b82f9f5ee3bcf1_45726250.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/977e85f5a019c8072fb800e969984039_27126850.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9a4fe8a3b641edd16551facb8aa03905_30720083.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d85eaefc9007dda16e9bdc349bb62ded_92596976.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/07e439891296d9eb856dc6b93f052046_49022235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d85eaefc9007dda16e9bdc349bb62ded_81323262.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/35c0f00ec74d15538fbea6b9da73a051_31381735.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/eea0792e2ebd465cb7ad1554b21d2cd0_21649747.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b4f539445165c0aea319bcad5a3c264c_68591697.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/91d19fb0be35c6bf1dd7b668c12fc6f9_70217449.png change filename to text .imagette293642261765520102/ imagette293642261765520102/1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276846_0.png.png imagette293642261765520102/1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277084_0.png.png imagette293642261765520102/1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270529_0.png.png imagette293642261765520102/1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274342_0.png.png imagette293642261765520102/1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274137_0.png.png imagette293642261765520102/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270855_0.png.png imagette293642261765520102/1765519985_1028481_1399005070_c09629caed62e21662f7e6b0df7a3072_rle_crop_4067277445_0.png.png imagette293642261765520102/1765519467_1002070_1399002993_92f27449fb01bbfb019242cd565b9b1a_rle_crop_4067270513_0.png.png imagette293642261765520102/1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276740_0.png.png imagette293642261765520102/1765519627_1007757_1399003530_db1dfa8a1a4c97cfa674b47f406665fb_rle_crop_4067274176_0.png.png imagette293642261765520102/1765519825_1018012_1399004707_a23fd1623608a91c5ff625db127cef21_rle_crop_4067276504_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/c22049768cd54ccd23351036c137d0af_71640762.png imagette293642261765520102 29364231 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004421: '1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270501_0.png', 1399004423: '1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270499_0.png', 1399004425: '1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270497_0.png', 1399004427: '1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270533_0.png', 1399004429: '1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270530_0.png', 1399004894: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270848_0.png', 1399004954: '1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274140_0.png', 1399004955: '1765519627_1007757_1399003526_507a1ccf684fd3e4cbb74d836aab4564_rle_crop_4067274331_0.png', 1399004956: '1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274345_0.png', 1399005326: '1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276741_0.png', 1399005369: '1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277089_0.png', 1399005487: '1765519985_1028481_1399005072_602e18f47083064f5478ec7b579c244d_rle_crop_4067277424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9f11743f9607735fe81bc21f300aa019_1364860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1d1e31bef1d9f7b6940444c9297705a3_82661896.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/27b7e2ae888c05c2c8930ca86324ba5a_6951215.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0063b7e6622c302b3d76af480a916954_18701806.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fb0085cf85686a956fbffb8db7a94615_20897661.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/43e42e3f60d549c95805a5fbc9d62849_41427726.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a36e6402cc8b97f426f1bca1959b5b8c_4152937.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/f6b47211faa0011d49bf6991de0cfc45_18446644.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a36e6402cc8b97f426f1bca1959b5b8c_28039934.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7f3ab9654159047ca268cc8e402522c9_62333254.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/631e37f20b838edb15254793af542b2d_6094967.png change filename to text .imagette293642311765520103/ imagette293642311765520103/1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270533_0.png.png imagette293642311765520103/1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270499_0.png.png imagette293642311765520103/1765519627_1007757_1399003525_e310909049dccc828ac1dcac0591d2d5_rle_crop_4067274345_0.png.png imagette293642311765520103/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270848_0.png.png imagette293642311765520103/1765519627_1007757_1399003905_fd833d21c4b363006c64af0b2429fc7f_rle_crop_4067274140_0.png.png imagette293642311765520103/1765519467_1002070_1399002898_a6e88d00b625c99c171b799759907ba3_rle_crop_4067270530_0.png.png imagette293642311765520103/1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270497_0.png.png imagette293642311765520103/1765519467_1002070_1399003025_bb2ff568ca6478a49ec123f98cf5016e_rle_crop_4067270501_0.png.png imagette293642311765520103/1765519866_1020011_1399004936_0f235449b1f6265c52394c14d72ccc9b_rle_crop_4067276741_0.png.png imagette293642311765520103/1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277089_0.png.png imagette293642311765520103/1765519985_1028481_1399005072_602e18f47083064f5478ec7b579c244d_rle_crop_4067277424_0.png.png imagette293642311765520103/1765519627_1007757_1399003526_507a1ccf684fd3e4cbb74d836aab4564_rle_crop_4067274331_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1ed0bb1cfd3ecfbdd97d3b0c76610448_27199102.png imagette293642311765520103 29364232 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399004928: '1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270851_0.png', 1399004929: '1765519585_1006274_1399003728_ef154973362699f28d595d68542a14c5_rle_crop_4067270897_0.png', 1399004930: '1765519585_1006274_1399003728_ef154973362699f28d595d68542a14c5_rle_crop_4067270901_0.png', 1399005138: '1765519825_1018012_1399004707_a23fd1623608a91c5ff625db127cef21_rle_crop_4067276503_0.png', 1399005139: '1765519825_1018012_1399004171_cf801bc4576b5ad744a6d104dc300e48_rle_crop_4067276511_0.png', 1399005367: '1765519866_1020011_1399004935_49a09b253b9ce4e82b7d8aac18bf3a24_rle_crop_4067276808_0.png', 1399005383: '1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276847_0.png', 1399005385: '1765519885_1022434_1399004858_68371c70be397755c0f6959c444b5b2b_rle_crop_4067276864_0.png', 1399005387: '1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277090_0.png', 1399005467: '1765519945_1026945_1399005036_aae55724df4c5626d756994a909f697e_rle_crop_4067277304_0.png', 1399005491: '1765519985_1028481_1399005070_c09629caed62e21662f7e6b0df7a3072_rle_crop_4067277444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fca40c52c61e2fc36129a4ca717dc3e0_21890647.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d8ef1bdbff8c2d939075dc27202609a3_27162143.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/87109401a09b21a6d04e0eb4c98684bc_44435449.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/2d1d684ac514bc3e58bab7f079191969_45680362.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/01c69eb699432b816b047d4f5932b3c5_53910849.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/268830974f6f6ed4eeea0319f72321de_18009419.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/2028876d1d9a8889ce64f7e70f0707fc_93799338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/8465ce509e7a07375b7e8298dd166019_57273174.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/136dd5c603d532e65fbfc4b57be00c7b_80196836.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/154570740d1caca93826562ad4423c2e_89618855.png change filename to text .imagette293642321765520104/ imagette293642321765520104/1765519866_1020011_1399004935_49a09b253b9ce4e82b7d8aac18bf3a24_rle_crop_4067276808_0.png.png imagette293642321765520104/1765519885_1022434_1399004859_25ae8b37ef453d9e053718bf3996be79_rle_crop_4067276847_0.png.png imagette293642321765520104/1765519945_1026945_1399005036_aae55724df4c5626d756994a909f697e_rle_crop_4067277304_0.png.png imagette293642321765520104/1765519585_1006274_1399003827_64e179d21cb66dadfb911093f88a81a5_rle_crop_4067270851_0.png.png imagette293642321765520104/1765519825_1018012_1399004171_cf801bc4576b5ad744a6d104dc300e48_rle_crop_4067276511_0.png.png imagette293642321765520104/1765519885_1022434_1399004829_bef7d81bb4e94923385806377a4fef92_rle_crop_4067277090_0.png.png imagette293642321765520104/1765519585_1006274_1399003728_ef154973362699f28d595d68542a14c5_rle_crop_4067270897_0.png.png imagette293642321765520104/1765519985_1028481_1399005070_c09629caed62e21662f7e6b0df7a3072_rle_crop_4067277444_0.png.png imagette293642321765520104/1765519585_1006274_1399003728_ef154973362699f28d595d68542a14c5_rle_crop_4067270901_0.png.png imagette293642321765520104/1765519825_1018012_1399004707_a23fd1623608a91c5ff625db127cef21_rle_crop_4067276503_0.png.png imagette293642321765520104/1765519885_1022434_1399004858_68371c70be397755c0f6959c444b5b2b_rle_crop_4067276864_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/3d2d3d53e7869e39d48deeb45457797a_39662236.png imagette293642321765520104 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29364180 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29364234,29364235,29364236,29364237,29364238,29364239,29364240,29364242,29364243,29364244,29364245,29364246?tags=flou,kraft,mal_croppe,environnement,metal,Carton_gris,papier,cartonnette,autre_refus,plastique,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1399005516] : ('0.06627404327278591',) no score found for photo 1399005516 We are sending mail with results at report@fotonower.com args[1399005514] : ('0.06627404327278591',) no score found for photo 1399005514 We are sending mail with results at report@fotonower.com args[1399005512] : ('0.06627404327278591',) no score found for photo 1399005512 We are sending mail with results at report@fotonower.com args[1399005510] : ('0.06627404327278591',) no score found for photo 1399005510 We are sending mail with results at report@fotonower.com args[1399005481] : ('0.06627404327278591',) no score found for photo 1399005481 We are sending mail with results at report@fotonower.com args[1399005477] : ('0.06627404327278591',) no score found for photo 1399005477 We are sending mail with results at report@fotonower.com args[1399005475] : ('0.06627404327278591',) no score found for photo 1399005475 We are sending mail with results at report@fotonower.com args[1399005473] : ('0.06627404327278591',) no score found for photo 1399005473 We are sending mail with results at report@fotonower.com args[1399005471] : ('0.06627404327278591',) no score found for photo 1399005471 We are sending mail with results at report@fotonower.com args[1399005458] : ('0.06627404327278591',) no score found for photo 1399005458 We are sending mail with results at report@fotonower.com args[1399005456] : ('0.06627404327278591',) no score found for photo 1399005456 We are sending mail with results at report@fotonower.com args[1399005453] : ('0.06627404327278591',) no score found for photo 1399005453 We are sending mail with results at report@fotonower.com args[1399005446] : ('0.06627404327278591',) no score found for photo 1399005446 We are sending mail with results at report@fotonower.com args[1399005445] : ('0.06627404327278591',) no score found for photo 1399005445 We are sending mail with results at report@fotonower.com args[1399005437] : ('0.06627404327278591',) no score found for photo 1399005437 We are sending mail with results at report@fotonower.com refus_total : 0.06627404327278591 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364180 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_P29364180_12-12-2025_07_15_01.pdf results_Auto_P29364180_12-12-2025_07_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29364180','results_Auto_P29364180_12-12-2025_07_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_15_01.pdf','pdf','','0.26','0.06627404327278591') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29364180]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] map_info['map_portfolio_photo'] : {29364180: [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437, 1399005143, 1399005141, 1399005130, 1399005127, 1399005125, 1399005123, 1399005121, 1399005119, 1399005076, 1399005073, 1399005072, 1399005071, 1399005070, 1399005051, 1399005036, 1399005022, 1399005012, 1399004971, 1399004943, 1399004940, 1399004937, 1399004936, 1399004935, 1399004934, 1399004860, 1399004859, 1399004858, 1399004829, 1399004707, 1399004645, 1399004575, 1399004542, 1399004503, 1399004472, 1399004458, 1399004316, 1399004274, 1399004241, 1399004208, 1399004171, 1399004111, 1399003905, 1399003861, 1399003827, 1399003796, 1399003763, 1399003728, 1399003536, 1399003533, 1399003530, 1399003526, 1399003525, 1399003025, 1399002993, 1399002898, 1399002854]} final : False mtd_id 4302 list_pids : [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] 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, '4213002') ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '29364180', '1399005516', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002')] time used for this insertion : 0.017299890518188477 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.800273180007935 time spend to save output : 0.017624855041503906 total time spend for step 4 : 5.8178980350494385 step5:split_time_score Fri Dec 12 07:15:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29364180'] 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 : [('29364180',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29364180) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399005512: {'path': 'temp/1765520100_3814210_1399005512_94dc3143735493544ad20ef7602dda4c.jpg', 'extension': 'jpg'}, 1399005514: {'path': 'temp/1765520100_3814210_1399005514_f213dfc87661fc021a61491fe2421d84.jpg', 'extension': 'jpg'}, 1399005516: {'path': 'temp/1765520100_3814210_1399005516_c04d23344a157d9bf65aae6f9a050e73.jpg', 'extension': 'jpg'}, 1399005475: {'path': 'temp/1765520100_3814210_1399005475_6483704faf082a01b4027eef1effcc2a.jpg', 'extension': 'jpg'}, 1399005477: {'path': 'temp/1765520100_3814210_1399005477_5e22599e992a265a23b78052971cbee0.jpg', 'extension': 'jpg'}, 1399005481: {'path': 'temp/1765520100_3814210_1399005481_e239ef4afcaded5c72b9dcfb758b05df.jpg', 'extension': 'jpg'}, 1399005510: {'path': 'temp/1765520100_3814210_1399005510_ad1b57392dd394192fdf1d7dbf5139fd.jpg', 'extension': 'jpg'}, 1399005456: {'path': 'temp/1765520100_3814210_1399005456_ddd3071c6a394f556ab1bd57933a8036.jpg', 'extension': 'jpg'}, 1399005458: {'path': 'temp/1765520100_3814210_1399005458_53d1899def5bfc4366dabd29442471d8.jpg', 'extension': 'jpg'}, 1399005471: {'path': 'temp/1765520100_3814210_1399005471_e1ee648674a2c90fcd3bd31fb0e3e8aa.jpg', 'extension': 'jpg'}, 1399005473: {'path': 'temp/1765520100_3814210_1399005473_136593c1175cccaf7358942bdba465a4.jpg', 'extension': 'jpg'}, 1399005437: {'path': 'temp/1765520100_3814210_1399005437_74266a77822015cd16e56298dbf4be24.jpg', 'extension': 'jpg'}, 1399005445: {'path': 'temp/1765520100_3814210_1399005445_bf25bbee8f01ca3b786ff16238ce432d.jpg', 'extension': 'jpg'}, 1399005446: {'path': 'temp/1765520100_3814210_1399005446_c73bdcbf1ae968ada76432c52b549304.jpg', 'extension': 'jpg'}, 1399005453: {'path': 'temp/1765520100_3814210_1399005453_fc75a783880ab9dba58b200717104b0e.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 = 29364180; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29364180 group by h (('07', 71),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29364180 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 (29364180) 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 (29364180) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12122025 29364180 Nombre de photos uploadées : 71 / 23040 (0%) 12122025 29364180 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 12122025 29364180 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1399003025, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/bb2ff568ca6478a49ec123f98cf5016e.jpg', 'username': None, 'uploaded_at': 1765519278, 'text': 'image_12122025_07_00_03_9135.jpg'}, {'photo_id': 1399002993, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/92f27449fb01bbfb019242cd565b9b1a.jpg', 'username': None, 'uploaded_at': 1765519278, 'text': 'image_12122025_07_00_14_10139.jpg'}, {'photo_id': 1399002898, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a6e88d00b625c99c171b799759907ba3.jpg', 'username': None, 'uploaded_at': 1765519278, 'text': 'image_12122025_07_00_24_10136.jpg'}, {'photo_id': 1399002854, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d79d359fbd75f1b2913cbddc41e92732.jpg', 'username': None, 'uploaded_at': 1765519278, 'text': 'image_12122025_07_00_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003002643585205078 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29364180, '2025-12-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2725864,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25266599655151367 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= 2725864 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29353967, 'dashboard_result_id': 18291260, '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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29354414, 'dashboard_result_id': 18291261, '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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29354703, 'dashboard_result_id': 18291262, '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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29355153, 'dashboard_result_id': 18291263, '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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29356369, 'dashboard_result_id': 18291264, '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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29356788, 'dashboard_result_id': 18291265, '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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29357162, 'dashboard_result_id': 18291266, '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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29357697, 'dashboard_result_id': 18291267, '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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29358082, 'dashboard_result_id': 18291268, '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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29358557, 'dashboard_result_id': 18291269, '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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29358933, 'dashboard_result_id': 18291270, '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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29359035, 'dashboard_result_id': 18291271, '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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29359405, 'dashboard_result_id': 18291272, '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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29359799, 'dashboard_result_id': 18291273, '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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29360191, 'dashboard_result_id': 18291274, '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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29361267, 'dashboard_result_id': 18291275, '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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29361419, 'dashboard_result_id': 18291276, '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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29361719, 'dashboard_result_id': 18291277, '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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29362085, 'dashboard_result_id': 18291278, '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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29362407, 'dashboard_result_id': 18291279, '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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29362854, 'dashboard_result_id': 18291280, '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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29363295, 'dashboard_result_id': 18291281, '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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29363773, 'dashboard_result_id': 18291282, '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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2734239, 'mtr_portfolio_id': 29364180, 'dashboard_result_id': 18291283, '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_P29364180_12-12-2025_07_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, '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 = 29353967 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': 4212498, 'mtr_portfolio_id': 29353967, 'created_at': datetime.datetime(2025, 12, 12, 6, 9, 58), 'result': '0.04597087438017942', 'result_long': None, 'result_double': None}] Qualite : 0.04597087438017942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29353967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29353967 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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}" where mtr_portfolio_id = 29353967 and dashboard_run_id = 2734239 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`=29353967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291260, 0.04597087438017942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, '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 = 29354414 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': 4212499, 'mtr_portfolio_id': 29354414, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 38), 'result': '0.05125559086969083', 'result_long': None, 'result_double': None}] Qualite : 0.05125559086969083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354414 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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}" where mtr_portfolio_id = 29354414 and dashboard_run_id = 2734239 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`=29354414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291261, 0.05125559086969083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, '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 = 29354703 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': 4212500, 'mtr_portfolio_id': 29354703, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 58), 'result': '0.0506519231053191', 'result_long': None, 'result_double': None}] Qualite : 0.0506519231053191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354703 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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}" where mtr_portfolio_id = 29354703 and dashboard_run_id = 2734239 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`=29354703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291262, 0.0506519231053191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, '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 = 29355153 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': 4212501, 'mtr_portfolio_id': 29355153, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 13), 'result': '0.055784932988337046', 'result_long': None, 'result_double': None}] Qualite : 0.055784932988337046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29355153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29355153 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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}" where mtr_portfolio_id = 29355153 and dashboard_run_id = 2734239 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`=29355153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291263, 0.055784932988337046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, '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 = 29356369 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': 4212502, 'mtr_portfolio_id': 29356369, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 30), 'result': '0.03774252289420257', 'result_long': None, 'result_double': None}] Qualite : 0.03774252289420257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356369 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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}" where mtr_portfolio_id = 29356369 and dashboard_run_id = 2734239 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`=29356369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291264, 0.03774252289420257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, '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 = 29356788 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': 4212503, 'mtr_portfolio_id': 29356788, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 2), 'result': '0.054177068289269714', 'result_long': None, 'result_double': None}] Qualite : 0.054177068289269714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356788 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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}" where mtr_portfolio_id = 29356788 and dashboard_run_id = 2734239 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`=29356788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291265, 0.054177068289269714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, '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 = 29357162 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': 4212504, 'mtr_portfolio_id': 29357162, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 29), 'result': '0.048368403148316676', 'result_long': None, 'result_double': None}] Qualite : 0.048368403148316676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357162 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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}" where mtr_portfolio_id = 29357162 and dashboard_run_id = 2734239 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`=29357162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291266, 0.048368403148316676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, '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 = 29357697 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': 4212505, 'mtr_portfolio_id': 29357697, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 30), 'result': '0.05939493826901827', 'result_long': None, 'result_double': None}] Qualite : 0.05939493826901827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357697 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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}" where mtr_portfolio_id = 29357697 and dashboard_run_id = 2734239 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`=29357697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291267, 0.05939493826901827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, '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 = 29358082 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': 4212506, 'mtr_portfolio_id': 29358082, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 57), 'result': '0.03917308618929719', 'result_long': None, 'result_double': None}] Qualite : 0.03917308618929719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358082 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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}" where mtr_portfolio_id = 29358082 and dashboard_run_id = 2734239 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`=29358082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291268, 0.03917308618929719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, '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 = 29358557 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': 4212507, 'mtr_portfolio_id': 29358557, 'created_at': datetime.datetime(2025, 12, 12, 6, 14, 29), 'result': '0.07413136999611537', 'result_long': None, 'result_double': None}] Qualite : 0.07413136999611537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358557 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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}" where mtr_portfolio_id = 29358557 and dashboard_run_id = 2734239 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`=29358557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291269, 0.07413136999611537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, '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 = 29358933 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': 4212508, 'mtr_portfolio_id': 29358933, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 30), 'result': '0.062389813942886216', 'result_long': None, 'result_double': None}] Qualite : 0.062389813942886216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358933 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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}" where mtr_portfolio_id = 29358933 and dashboard_run_id = 2734239 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`=29358933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291270, 0.062389813942886216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, '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 = 29359035 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': 4212509, 'mtr_portfolio_id': 29359035, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 36), 'result': '0.07474450706546877', 'result_long': None, 'result_double': None}] Qualite : 0.07474450706546877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359035 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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}" where mtr_portfolio_id = 29359035 and dashboard_run_id = 2734239 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`=29359035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291271, 0.07474450706546877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, '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 = 29359405 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': 4212510, 'mtr_portfolio_id': 29359405, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 58), 'result': '0.02671260360751556', 'result_long': None, 'result_double': None}] Qualite : 0.02671260360751556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359405 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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}" where mtr_portfolio_id = 29359405 and dashboard_run_id = 2734239 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`=29359405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291272, 0.02671260360751556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, '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 = 29359799 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': 4212511, 'mtr_portfolio_id': 29359799, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 12), 'result': '0.03439692669008735', 'result_long': None, 'result_double': None}] Qualite : 0.03439692669008735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359799 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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}" where mtr_portfolio_id = 29359799 and dashboard_run_id = 2734239 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`=29359799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291273, 0.03439692669008735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, '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 = 29360191 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': 4212512, 'mtr_portfolio_id': 29360191, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 31), 'result': '0.029805734438451352', 'result_long': None, 'result_double': None}] Qualite : 0.029805734438451352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29360191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29360191 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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}" where mtr_portfolio_id = 29360191 and dashboard_run_id = 2734239 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`=29360191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291274, 0.029805734438451352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, '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 = 29361267 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': 4212513, 'mtr_portfolio_id': 29361267, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 30), 'result': '0.017617938333941475', 'result_long': None, 'result_double': None}] Qualite : 0.017617938333941475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361267 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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}" where mtr_portfolio_id = 29361267 and dashboard_run_id = 2734239 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`=29361267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291275, 0.017617938333941475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, '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 = 29361419 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': 4212514, 'mtr_portfolio_id': 29361419, 'created_at': datetime.datetime(2025, 12, 12, 5, 40, 39), 'result': '0.042268325842161156', 'result_long': None, 'result_double': None}] Qualite : 0.042268325842161156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361419 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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}" where mtr_portfolio_id = 29361419 and dashboard_run_id = 2734239 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`=29361419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291276, 0.042268325842161156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, '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 = 29361719 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': 4212426, 'mtr_portfolio_id': 29361719, 'created_at': datetime.datetime(2025, 12, 12, 5, 48, 58), 'result': '0.03512528820820063', 'result_long': None, 'result_double': None}] Qualite : 0.03512528820820063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361719 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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}" where mtr_portfolio_id = 29361719 and dashboard_run_id = 2734239 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`=29361719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291277, 0.03512528820820063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, '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 = 29362085 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': 4212622, 'mtr_portfolio_id': 29362085, 'created_at': datetime.datetime(2025, 12, 12, 6, 3, 29), 'result': '0.02489806755007265', 'result_long': None, 'result_double': None}] Qualite : 0.02489806755007265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362085 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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}" where mtr_portfolio_id = 29362085 and dashboard_run_id = 2734239 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`=29362085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291278, 0.02489806755007265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, '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 = 29362407 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': 4212692, 'mtr_portfolio_id': 29362407, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 33), 'result': '0.03598098129173726', 'result_long': None, 'result_double': None}] Qualite : 0.03598098129173726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362407 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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}" where mtr_portfolio_id = 29362407 and dashboard_run_id = 2734239 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`=29362407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291279, 0.03598098129173726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, '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 = 29362854 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': 4212774, 'mtr_portfolio_id': 29362854, 'created_at': datetime.datetime(2025, 12, 12, 6, 32, 57), 'result': '0.06304396315216139', 'result_long': None, 'result_double': None}] Qualite : 0.06304396315216139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362854 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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}" where mtr_portfolio_id = 29362854 and dashboard_run_id = 2734243 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`=29362854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291280, 0.06304396315216139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, '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 = 29363295 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': 4212843, 'mtr_portfolio_id': 29363295, 'created_at': datetime.datetime(2025, 12, 12, 6, 48, 58), 'result': '0.04653111445326504', 'result_long': None, 'result_double': None}] Qualite : 0.04653111445326504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363295 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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}" where mtr_portfolio_id = 29363295 and dashboard_run_id = 2734243 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`=29363295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291281, 0.04653111445326504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, '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 = 29363773 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': 4212927, 'mtr_portfolio_id': 29363773, 'created_at': datetime.datetime(2025, 12, 12, 7, 2, 59), 'result': '0.042970748644587525', 'result_long': None, 'result_double': None}] Qualite : 0.042970748644587525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363773 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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}" where mtr_portfolio_id = 29363773 and dashboard_run_id = 2734243 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`=29363773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291282, 0.042970748644587525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, '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 = 29364180 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': 4213002, 'mtr_portfolio_id': 29364180, 'created_at': datetime.datetime(2025, 12, 12, 7, 15), 'result': '0.06627404327278591', 'result_long': None, 'result_double': None}] Qualite : 0.06627404327278591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364180 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_P29364180_12-12-2025_07_15_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}" where mtr_portfolio_id = 29364180 and dashboard_run_id = 2734243 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`=29364180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18291283, 0.06627404327278591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_15_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, '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 (29353967,29354414,29354703,29355153,29356369,29356788,29357162,29357697,29358082,29358557,29358933,29359035,29359405,29359799,29360191,29361267,29361419,29361719,29362085,29362407,29362854,29363295,29363773,29364180) result : ((1398955948,), (1398955951,), (1398955953,), (1398955955,), (1398955958,), (1398956174,), (1398956207,), (1398956248,), (1398956287,), (1398956299,), (1398956413,), (1398956414,), (1398956417,), (1398956419,), (1398956458,), (1398956462,), (1398956499,), (1398956502,), (1398956535,), (1398956537,), (1398956569,), (1398956573,), (1398956728,), (1398956766,), (1398956802,), (1398956837,), (1398956876,), (1398957235,), (1398957280,), (1398957314,), (1398957359,), (1398957581,), (1398957616,), (1398957651,), (1398957685,), (1398958081,), (1398958115,), (1398958178,), (1398958243,), (1398959056,), (1398959095,), (1398959129,), (1398959259,), (1398959260,), (1398959262,), (1398959263,), (1398959265,), (1398959499,), (1398959536,), (1398959576,), (1398959611,), (1398959646,), (1398959782,), (1398959784,), (1398959786,), (1398959788,), (1398959791,), (1398959815,), (1398959816,), (1398959817,), (1398959827,), (1398959828,), (1398959831,), (1398959836,), (1398959839,), (1398959850,), (1398959852,), (1398959854,), (1398959861,), (1398959868,), (1398959881,), (1398959918,), (1398959934,), (1398959936,), (1398959938,), (1398959940,), (1398959977,), (1398959980,), (1398959981,), (1398959982,), (1398959985,), (1398959995,), (1398959997,), (1398959999,), (1398960001,), (1398960232,), (1398960233,), (1398960234,), (1398960235,), (1398960248,), (1398960251,), (1398960254,), (1398960294,), (1398960337,), (1398960370,), (1398960409,), (1398960553,), (1398960556,), (1398960559,), (1398960563,), (1398960567,), (1398960571,), (1398960586,), (1398960587,), (1398960588,), (1398960589,), (1398960602,), (1398960604,), (1398960606,), (1398960608,), (1398960610,), (1398960612,), (1398960633,), (1398960634,), (1398960658,), (1398960695,), (1398960731,), (1398960771,), (1398960890,), (1398960924,), (1398961059,), (1398961510,), (1398961576,), (1398961611,), (1398961646,), (1398961900,), (1398961928,), (1398961997,), (1398961999,), (1398962015,), (1398961988,), (1398961990,), (1398961992,), (1398961994,), (1398962137,), (1398962172,), (1398962214,), (1398962250,), (1398962686,), (1398962758,), (1398962830,), (1398962906,), (1398962974,), (1398963510,), (1398963549,), (1398963586,), (1398964022,), (1398964056,), (1398964088,), (1398964125,), (1398964158,), (1398964196,), (1398964464,), (1398964629,), (1398964667,), (1398964710,), (1398964773,), (1398964798,), (1398964894,), (1398964896,), (1398964899,), (1398964924,), (1398964926,), (1398964928,), (1398964935,), (1398964941,), (1398964957,), (1398964959,), (1398964962,), (1398964966,), (1398964969,), (1398965265,), (1398965301,), (1398965339,), (1398965998,), (1398966065,), (1398966129,), (1398966191,), (1398966866,), (1398966869,), (1398966871,), (1398966873,), (1398966876,), (1398966879,), (1398967116,), (1398967151,), (1398967185,), (1398967251,), (1398967556,), (1398967558,), (1398967560,), (1398967562,), (1398967656,), (1398967659,), (1398967660,), (1398967663,), (1398967666,), (1398967669,), (1398967684,), (1398967673,), (1398967675,), (1398967677,), (1398967679,), (1398967681,), (1398968022,), (1398968059,), (1398968096,), (1398968132,), (1398968424,), (1398968425,), (1398968426,), (1398968427,), (1398968612,), (1398968647,), (1398968661,), (1398968663,), (1398968686,), (1398968689,), (1398968730,), (1398968734,), (1398968736,), (1398968949,), (1398968984,), (1398969018,), (1398969066,), (1398969102,), (1398969138,), (1398969480,), (1398969516,), (1398969553,), (1398969588,), (1398969628,), (1398969666,), (1398969784,), (1398969786,), (1398969787,), (1398969987,), (1398970023,), (1398970061,), (1398970095,), (1398970108,), (1398970111,), (1398970231,), (1398970232,), (1398970234,), (1398970236,), (1398970239,), (1398970242,), (1398970252,), (1398970253,), (1398970254,), (1398970268,), (1398970270,), (1398970272,), (1398970274,), (1398970277,), (1398970281,), (1398970290,), (1398970292,), (1398970294,), (1398970296,), (1398970299,), (1398970342,), (1398970344,), (1398970346,), (1398970349,), (1398971710,), (1398975733,), (1398975742,), (1398975770,), (1398975798,), (1398975799,), (1398975800,), (1398975801,), (1398975804,), (1398975817,), (1398975819,), (1398975830,), (1398975835,), (1398975840,), (1398975842,), (1398975845,), (1398975855,), (1398975857,), (1398975858,), (1398975875,), (1398975911,), (1398976270,), (1398976306,), (1398976341,), (1398976749,), (1398976750,), (1398976751,), (1398976752,), (1398976755,), (1398976954,), (1398976962,), (1398976983,), (1398977016,), (1398977041,), (1398977080,), (1398977082,), (1398977085,), (1398977088,), (1398977106,), (1398977108,), (1398977110,), (1398977111,), (1398977113,), (1398977123,), (1398977124,), (1398977126,), (1398977128,), (1398977131,), (1398977133,), (1398977150,), (1398977153,), (1398977160,), (1398977162,), (1398977486,), (1398977521,), (1398977551,), (1398977585,), (1398977620,), (1398977856,), (1398977858,), (1398977890,), (1398977928,), (1398977965,), (1398978183,), (1398978218,), (1398978251,), (1398978290,), (1398978326,), (1398978363,), (1398978734,), (1398978671,), (1398978704,), (1398979122,), (1398979124,), (1398979126,), (1398979128,), (1398979131,), (1398979134,), (1398979311,), (1398979343,), (1398979350,), (1398979352,), (1398979376,), (1398979435,), (1398979442,), (1398979446,), (1398979468,), (1398979469,), (1398979470,), (1398979471,), (1398979473,), (1398979487,), (1398979490,), (1398979492,), (1398979494,), (1398979497,), (1398979501,), (1398979508,), (1398979514,), (1398979523,), (1398979526,), (1398979527,), (1398979534,), (1398979536,), (1398979539,), (1398979540,), (1398979541,), (1398979542,), (1398979554,), (1398979556,), (1398979557,), (1398979560,), (1398979568,), (1398979580,), (1398979582,), (1398979584,), (1398979586,), (1398979604,), (1398979605,), (1398979606,), (1398979620,), (1398979622,), (1398979624,), (1398979626,), (1398979637,), (1398979642,), (1398979644,), (1398979662,), (1398979665,), (1398979668,), (1398979671,), (1398979672,), (1398979674,), (1398979691,), (1398979684,), (1398979687,), (1398979689,), (1398979704,), (1398979705,), (1398979706,), (1398979707,), (1398979709,), (1398979712,), (1398979719,), (1398979741,), (1398979775,), (1398979808,), (1398980178,), (1398980212,), (1398980236,), (1398980237,), (1398980240,), (1398980627,), (1398980689,), (1398980723,), (1398980764,), (1398981148,), (1398981149,), (1398981150,), (1398981183,), (1398981218,), (1398981253,), (1398981573,), (1398981608,), (1398981642,), (1398981681,), (1398981749,), (1398981810,), (1398981986,), (1398981998,), (1398982000,), (1398982003,), (1398982011,), (1398982013,), (1398982015,), (1398982017,), (1398982020,), (1398982022,), (1398982030,), (1398982034,), (1398982036,), (1398982037,), (1398982039,), (1398982050,), (1398982051,), (1398982052,), (1398982053,), (1398982072,), (1398982413,), (1398982448,), (1398982481,), (1398982516,), (1398982899,), (1398982943,), (1398982978,), (1398982980,), (1398982983,), (1398982986,), (1398983007,), (1398984295,), (1398984050,), (1398984628,), (1398984717,), (1398984727,), (1398984729,), (1398984731,), (1398984747,), (1398984748,), (1398984749,), (1398984750,), (1398984766,), (1398984768,), (1398984774,), (1398984783,), (1398984799,), (1398984800,), (1398984801,), (1398984802,), (1398984837,), (1398984839,), (1398984841,), (1398984843,), (1398984846,), (1398984855,), (1398984858,), (1398984861,), (1398984865,), (1398984867,), (1398984891,), (1398984892,), (1398984893,), (1398984894,), (1398984936,), (1398984937,), (1398984940,), (1398984941,), (1398984942,), (1398984943,), (1398984959,), (1398984960,), (1398984961,), (1398984962,), (1398984963,), (1398984964,), (1398984965,), (1398984966,), (1398984926,), (1398984927,), (1398984928,), (1398984929,), (1398984930,), (1398984931,), (1398984932,), (1398984933,), (1398984934,), (1398984935,), (1398984938,), (1398984939,), (1398984948,), (1398984950,), (1398984951,), (1398984952,), (1398984953,), (1398984954,), (1398984955,), (1398984956,), (1398984957,), (1398984958,), (1398984967,), (1398984968,), (1398984969,), (1398984970,), (1398984971,), (1398984972,), (1398984973,), (1398984974,), (1398984975,), (1398984976,), (1398984977,), (1398984978,), (1398984980,), (1398984981,), (1398984982,), (1398984983,), (1398984984,), (1398984995,), (1398984996,), (1398984997,), (1398984998,), (1398984999,), (1398985000,), (1398985001,), (1398985002,), (1398985003,), (1398985004,), (1398985015,), (1398985016,), (1398985017,), (1398985018,), (1398985019,), (1398985026,), (1398985027,), (1398985028,), (1398985029,), (1398985030,), (1398985037,), (1398985456,), (1398985466,), (1398985468,), (1398985470,), (1398985476,), (1398985477,), (1398985479,), (1398985481,), (1398985484,), (1398985487,), (1398985503,), (1398985504,), (1398985507,), (1398985510,), (1398985512,), (1398985517,), (1398985519,), (1398985111,), (1398985112,), (1398985113,), (1398985114,), (1398985115,), (1398985116,), (1398985117,), (1398985118,), (1398985120,), (1398985122,), (1398985124,), (1398985126,), (1398985129,), (1398985130,), (1398985131,), (1398985133,), (1398985135,), (1398985137,), (1398985149,), (1398985181,), (1398985213,), (1398985245,), (1398985279,), (1398985312,), (1398985390,), (1398985392,), (1398985395,), (1398985399,), (1398985402,), (1398985405,), (1398985410,), (1398985412,), (1398985415,), (1398985418,), (1398985421,), (1398985424,), (1398985427,), (1398985428,), (1398985431,), (1398985434,), (1398985438,), (1398985445,), (1398985450,), (1398985451,), (1398985688,), (1398985501,), (1398985679,), (1398985681,), (1398985683,), (1398985685,), (1398985703,), (1398985705,), (1398985706,), (1398985709,), (1398985712,), (1398985715,), (1398985727,), (1398985730,), (1398985732,), (1398985734,), (1398985736,), (1398985738,), (1398985744,), (1398985747,), (1398985748,), (1398985749,), (1398985751,), (1398985753,), (1398985755,), (1398985770,), (1398985772,), (1398985773,), (1398985774,), (1398985809,), (1398985797,), (1398985799,), (1398985801,), (1398985803,), (1398985806,), (1398985817,), (1398985818,), (1398985819,), (1398985820,), (1398985823,), (1398985826,), (1398985837,), (1398985839,), (1398985841,), (1398985844,), (1398985847,), (1398985849,), (1398985855,), (1398985856,), (1398985860,), (1398985864,), (1398985865,), (1398985866,), (1398985869,), (1398985872,), (1398985882,), (1398985884,), (1398985892,), (1398985900,), (1398985907,), (1398985919,), (1398985921,), (1398985925,), (1398985929,), (1398985966,), (1398985975,), (1398985979,), (1398985981,), (1398985983,), (1398985986,), (1398986001,), (1398986002,), (1398986004,), (1398986006,), (1398986021,), (1398986022,), (1398986023,), (1398986024,), (1398986026,), (1398986038,), (1398986040,), (1398986042,), (1398986044,), (1398986048,), (1398986051,), (1398986062,), (1398986064,), (1398986066,), (1398986068,), (1398986070,), (1398986091,), (1398986093,), (1398986095,), (1398986098,), (1398986101,), (1398986104,), (1398986134,), (1398986140,), (1398986142,), (1398986144,), (1398986147,), (1398986160,), (1398986161,), (1398986162,), (1398986163,), (1398986166,), (1398986187,), (1398986188,), (1398986191,), (1398986193,), (1398986196,), (1398986200,), (1398986218,), (1398986206,), (1398986212,), (1398986239,), (1398986241,), (1398986253,), (1398986261,), (1398986263,), (1398986265,), (1398986278,), (1398986279,), (1398986280,), (1398986281,), (1398986291,), (1398986294,), (1398986297,), (1398986318,), (1398986320,), (1398986321,), (1398986322,), (1398986324,), (1398986348,), (1398986352,), (1398986354,), (1398986356,), (1398986359,), (1398986365,), (1398986367,), (1398986369,), (1398986371,), (1398986386,), (1398986387,), (1398986388,), (1398986390,), (1398986393,), (1398986396,), (1398986405,), (1398986406,), (1398986414,), (1398986418,), (1398986423,), (1398986425,), (1398986429,), (1398986432,), (1398986436,), (1398986439,), (1398986445,), (1398986446,), (1398986447,), (1398986448,), (1398986463,), (1398986464,), (1398986466,), (1398986468,), (1398986471,), (1398986503,), (1398986507,), (1398986508,), (1398986509,), (1398986512,), (1398986524,), (1398986526,), (1398986528,), (1398986544,), (1398986546,), (1398986547,), (1398986548,), (1398986551,), (1398986553,), (1398986574,), (1398986581,), (1398986582,), (1398986584,), (1398986587,), (1398986590,), (1398986620,), (1398986616,), (1398986618,), (1398986619,), (1398986636,), (1398986640,), (1398986643,), (1398986647,), (1398986650,), (1398986652,), (1398986670,), (1398986671,), (1398986672,), (1398986673,), (1398986679,), (1398986681,), (1398986693,), (1398986695,), (1398986697,), (1398986726,), (1398986728,), (1398986730,), (1398986732,), (1398986735,), (1398986736,), (1398986750,), (1398986751,), (1398986752,), (1398986753,), (1398986756,), (1398986758,), (1398986774,), (1398986775,), (1398986777,), (1398986780,), (1398986783,), (1398986785,), (1398986795,), (1398986796,), (1398986799,), (1398986802,), (1398986804,), (1398986806,), (1398986812,), (1398986813,), (1398986815,), (1398986818,), (1398986821,), (1398986822,), (1398986834,), (1398986839,), (1398986842,), (1398986846,), (1398986854,), (1398986857,), (1398986867,), (1398986869,), (1398986890,), (1398986891,), (1398986899,), (1398986901,), (1398986903,), (1398986904,), (1398986909,), (1398986912,), (1398986914,), (1398986922,), (1398986924,), (1398986927,), (1398986930,), (1398986944,), (1398986947,), (1398986949,), (1398986965,), (1398986968,), (1398986971,), (1398986974,), (1398986976,), (1398987140,), (1398986991,), (1398987027,), (1398987063,), (1398987102,), (1398987562,), (1398987596,), (1398987632,), (1398987665,), (1398987732,), (1398987796,), (1398988690,), (1398988753,), (1398988816,), (1398989359,), (1398989391,), (1398989426,), (1398989461,), (1398989820,), (1398989821,), (1398989822,), (1398989857,), (1398989862,), (1398990176,), (1398990213,), (1398990216,), (1398990217,), (1398990344,), (1398990347,), (1398990350,), (1398990377,), (1398990413,), (1398990451,), (1398990589,), (1398990593,), (1398990595,), (1398990596,), (1398990599,), (1398990916,), (1398990951,), (1398991430,), (1398991463,), (1398991517,), (1398991574,), (1398991605,), (1398991751,), (1398991795,), (1398993212,), (1398997259,), (1398998062,), (1398998097,), (1398998117,), (1398998455,), (1398998457,), (1398998476,), (1398998646,), (1398998647,), (1398998664,), (1398998666,), (1398998668,), (1398998670,), (1398998673,), (1398998676,), (1398998685,), (1398998686,), (1398998712,), (1398998710,), (1398998711,), (1398998723,), (1398998725,), (1398998727,), (1398998729,), (1398998732,), (1398998735,), (1398998746,), (1398998748,), (1398998751,), (1398998753,), (1398998756,), (1398998769,), (1398998770,), (1398998771,), (1398998772,), (1398998775,), (1398998805,), (1398998807,), (1398998809,), (1398998811,), (1398998814,), (1398998828,), (1398998830,), (1398998832,), (1398998836,), (1398998857,), (1398998859,), (1398998861,), (1398998863,), (1398998866,), (1398998869,), (1398998877,), (1398998878,), (1398998880,), (1398998914,), (1398998915,), (1398998916,), (1398998917,), (1398998919,), (1398998922,), (1398998935,), (1398998936,), (1398998937,), (1398998938,), (1398998958,), (1398998960,), (1398998962,), (1398998964,), (1398998967,), (1398998968,), (1398998979,), (1398998981,), (1398998982,), (1398998984,), (1398998987,), (1398999000,), (1398999002,), (1398999003,), (1398999020,), (1398999022,), (1398999024,), (1398999026,), (1398999029,), (1398999032,), (1398999056,), (1398999064,), (1398999066,), (1398999067,), (1398999087,), (1398999079,), (1398999081,), (1398999083,), (1398999085,), (1398999116,), (1398999117,), (1398999124,), (1398999133,), (1398999136,), (1398999139,), (1398999161,), (1398999163,), (1398999165,), (1398999167,), (1398999186,), (1398999187,), (1398999188,), (1398999189,), (1398999192,), (1398999195,), (1398999208,), (1398999210,), (1398999212,), (1398999214,), (1398999238,), (1398999239,), (1398999240,), (1398999241,), (1398999244,), (1398999246,), (1398999259,), (1398999261,), (1398999263,), (1398999265,), (1398999268,), (1398999291,), (1398999294,), (1398999295,), (1398999296,), (1398999299,), (1398999313,), (1398999315,), (1398999317,), (1398999319,), (1398999322,), (1398999325,), (1398999349,), (1398999350,), (1398999351,), (1398999352,), (1398999368,), (1398999370,), (1398999372,), (1398999374,), (1398999377,), (1398999393,), (1398999394,), (1398999395,), (1398999407,), (1398999409,), (1398999411,), (1398999413,), (1398999416,), (1398999418,), (1398999448,), (1398999451,), (1398999455,), (1398999456,), (1398999472,), (1398999475,), (1398999479,), (1398999481,), (1398999484,), (1398999515,), (1398999504,), (1398999505,), (1398999509,), (1398999512,), (1398999528,), (1398999530,), (1398999532,), (1398999534,), (1398999537,), (1398999555,), (1398999560,), (1398999561,), (1398999564,), (1398999567,), (1398999570,), (1398999578,), (1398999580,), (1398999582,), (1398999584,), (1398999587,), (1398999588,), (1398999602,), (1398999604,), (1398999605,), (1398999606,), (1398999609,), (1398999623,), (1398999625,), (1398999627,), (1398999631,), (1398999635,), (1398999638,), (1398999646,), (1398999647,), (1398999648,), (1398999658,), (1398999660,), (1398999662,), (1398999665,), (1398999667,), (1398999668,), (1398999684,), (1398999686,), (1398999688,), (1398999691,), (1398999693,), (1398999708,), (1398999709,), (1398999710,), (1398999711,), (1398999727,), (1398999729,), (1398999731,), (1398999733,), (1398999736,), (1398999738,), (1398999777,), (1398999779,), (1398999781,), (1398999783,), (1398999786,), (1398999801,), (1398999802,), (1398999803,), (1398999804,), (1398999807,), (1398999818,), (1398999821,), (1398999824,), (1398999826,), (1398999829,), (1398999853,), (1398999856,), (1398999859,), (1398999866,), (1398999879,), (1398999880,), (1398999882,), (1398999883,), (1398999884,), (1398999885,), (1398999888,), (1398999889,), (1398999892,), (1398999893,), (1398999900,), (1398999897,), (1398999898,), (1398999899,), (1398999915,), (1398999917,), (1398999919,), (1398999921,), (1398999937,), (1398999940,), (1398999942,), (1398999946,), (1398999950,), (1398999976,), (1398999979,), (1398999981,), (1398999985,), (1398999988,), (1398999997,), (1398999999,), (1399000001,), (1399000003,), (1399000006,), (1399000008,), (1399000022,), (1399000023,), (1399000024,), (1399000025,), (1399000028,), (1399000049,), (1399000051,), (1399000053,), (1399000055,), (1399000058,), (1399000061,), (1399000080,), (1399000081,), (1399000083,), (1399000085,), (1399000107,), (1399000112,), (1399000114,), (1399000116,), (1399000119,), (1399000122,), (1399000158,), (1399000160,), (1399000162,), (1399000164,), (1399000177,), (1399000179,), (1399000181,), (1399000183,), (1399000186,), (1399000189,), (1399000216,), (1399000220,), (1399000221,), (1399000222,), (1399000225,), (1399000239,), (1399000241,), (1399000243,), (1399000248,), (1399000254,), (1399000256,), (1399000266,), (1399000268,), (1399000270,), (1399000272,), (1399000303,), (1399000307,), (1399000309,), (1399000310,), (1399000313,), (1399000315,), (1399000346,), (1399000338,), (1399000342,), (1399000363,), (1399000365,), (1399000367,), (1399000371,), (1399000375,), (1399000395,), (1399000397,), (1399000399,), (1399000400,), (1399000403,), (1399000420,), (1399000422,), (1399000424,), (1399000426,), (1399000443,), (1399000444,), (1399000445,), (1399000446,), (1399000448,), (1399000450,), (1399000473,), (1399000474,), (1399000475,), (1399000476,), (1399000479,), (1399000493,), (1399000506,), (1399000514,), (1399000518,), (1399000521,), (1399000530,), (1399000533,), (1399000535,), (1399000537,), (1399000541,), (1399000570,), (1399000572,), (1399000574,), (1399000576,), (1399000578,), (1399000580,), (1399000591,), (1399000592,), (1399000593,), (1399000594,), (1399000626,), (1399000628,), (1399000637,), (1399000645,), (1399000649,), (1399000651,), (1399000692,), (1399000693,), (1399000694,), (1399000695,), (1399000716,), (1399000717,), (1399000718,), (1399000719,), (1399000722,), (1399000724,), (1399000737,), (1399000739,), (1399000741,), (1399000743,), (1399000746,), (1399000788,), (1399000790,), (1399000814,), (1399000808,), (1399000810,), (1399000812,), (1399000833,), (1399000835,), (1399000836,), (1399000837,), (1399000839,), (1399000841,), (1399000869,), (1399000870,), (1399000871,), (1399000904,), (1399000906,), (1399000908,), (1399000910,), (1399000935,), (1399000936,), (1399000937,), (1399000957,), (1399000959,), (1399000961,), (1399000963,), (1399000966,), (1399000968,), (1399000976,), (1399000979,), (1399000982,), (1399000986,), (1399001005,), (1399001007,), (1399001009,), (1399001011,), (1399001035,), (1399001040,), (1399001041,), (1399001042,), (1399001045,), (1399001064,), (1399001066,), (1399001068,), (1399001070,), (1399001073,), (1399001074,), (1399001084,), (1399001087,), (1399001089,), (1399001092,), (1399001095,), (1399001096,), (1399001112,), (1399001115,), (1399001122,), (1399001123,), (1399001124,), (1399001125,), (1399001128,), (1399001130,), (1399001149,), (1399001151,), (1399001153,), (1399001155,), (1399001158,), (1399001161,), (1399001174,), (1399001175,), (1399001176,), (1399001205,), (1399001207,), (1399001209,), (1399001211,), (1399001216,), (1399001220,), (1399001261,), (1399001262,), (1399001265,), (1399001268,), (1399001271,), (1399001274,), (1399001277,), (1399001243,), (1399001253,), (1399001256,), (1399001259,), (1399001281,), (1399001283,), (1399001285,), (1399001310,), (1399001312,), (1399001318,), (1399001327,), (1399001330,), (1399001333,), (1399001341,), (1399001343,), (1399001345,), (1399001347,), (1399001350,), (1399001363,), (1399001366,), (1399001368,), (1399001370,), (1399001420,), (1399001426,), (1399001428,), (1399001431,), (1399001434,), (1399001436,), (1399001438,), (1399001448,), (1399001450,), (1399001452,), (1399001454,), (1399001456,), (1399001459,), (1399001466,), (1399001468,), (1399001471,), (1399001474,), (1399001476,), (1399001478,), (1399001525,), (1399001526,), (1399001528,), (1399001529,), (1399001530,), (1399001531,), (1399001533,), (1399001534,), (1399001553,), (1399001554,), (1399001581,), (1399001584,), (1399001589,), (1399001593,), (1399001597,), (1399001604,), (1399001615,), (1399001617,), (1399001619,), (1399001621,), (1399001623,), (1399001625,), (1399001654,), (1399001656,), (1399001658,), (1399001662,), (1399001665,), (1399001666,), (1399001687,), (1399001689,), (1399001718,), (1399001753,), (1399001788,), (1399001824,), (1399002278,), (1399002338,), (1399002384,), (1399002420,), (1399002452,), (1399002484,), (1399002628,), (1399002630,), (1399002649,), (1399002652,), (1399002682,), (1399002718,), (1399003056,), (1399003091,), (1399003239,), (1399003284,), (1399003320,), (1399003353,), (1399003386,), (1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12122025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29364180]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] map_info['map_portfolio_photo'] : {29364180: [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437, 1399005143, 1399005141, 1399005130, 1399005127, 1399005125, 1399005123, 1399005121, 1399005119, 1399005076, 1399005073, 1399005072, 1399005071, 1399005070, 1399005051, 1399005036, 1399005022, 1399005012, 1399004971, 1399004943, 1399004940, 1399004937, 1399004936, 1399004935, 1399004934, 1399004860, 1399004859, 1399004858, 1399004829, 1399004707, 1399004645, 1399004575, 1399004542, 1399004503, 1399004472, 1399004458, 1399004316, 1399004274, 1399004241, 1399004208, 1399004171, 1399004111, 1399003905, 1399003861, 1399003827, 1399003796, 1399003763, 1399003728, 1399003536, 1399003533, 1399003530, 1399003526, 1399003525, 1399003025, 1399002993, 1399002898, 1399002854]} final : True mtd_id 4302 list_pids : [1399005516, 1399005514, 1399005512, 1399005510, 1399005481, 1399005477, 1399005475, 1399005473, 1399005471, 1399005458, 1399005456, 1399005453, 1399005446, 1399005445, 1399005437] Looping around the photos to save general results len do output : 1 /29364180Didn'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, '4213002') ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002') ('4302', None, None, None, None, None, None, None, '4213002') ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29364180', 'None', None, None, None, None, '4213002'), ('4302', '29364180', '1399005516', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005514', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005512', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005510', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005481', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005477', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005475', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005473', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005471', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005458', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005456', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005453', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005446', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005445', None, None, None, None, None, '4213002'), ('4302', '29364180', '1399005437', None, None, None, None, None, '4213002')] time used for this insertion : 0.016832351684570312 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.175593852996826 time spend to save output : 0.01703953742980957 total time spend for step 5 : 2.1926333904266357 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 (4213002) 2.32user 2.50system 0:12.75elapsed 37%CPU (0avgtext+0avgdata 168036maxresident)k 168inputs+14592outputs (3major+79615minor)pagefaults 0swaps