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 : 3310503 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 (4322591) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4322591) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023270 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4322591'] with mtr_portfolio_ids : ['30023270'] and first list_photo_ids : [] new path : /proc/3310503/ Name: python3 Umask: 0002 State: R (running) Tgid: 3310503 Ngid: 0 Pid: 3310503 PPid: 3310502 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3310503 NSpid: 3310503 NSpgid: 3310007 NSsid: 3310007 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106772 kB VmRSS: 106772 kB RssAnon: 66356 kB RssFile: 40416 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 568 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: 60 nonvoluntary_ctxt_switches: 191 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3310503', 'Ngid': '0', 'Pid': '3310503', 'PPid': '3310502', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3310503', 'NSpid': '3310503', 'NSpgid': '3310007', 'NSsid': '3310007', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106772 kB', 'VmRSS': '106772 kB', 'RssAnon': '66356 kB', 'RssFile': '40416 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '568 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': '60', 'nonvoluntary_ctxt_switches': '191'} ('datou_batch_current', '3310503', '1113368', '0', '1113368', '872096', '106772', b'', 'marlene', '4322591') 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 (30023270) 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 (4322591 ) ) 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 (30023270) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402818903, 'portfolio_id': 30023270}, {'photo_id': 1402818787, 'portfolio_id': 30023270}, {'photo_id': 1402818776, 'portfolio_id': 30023270}, {'photo_id': 1402818763, 'portfolio_id': 30023270}, {'photo_id': 1402818761, 'portfolio_id': 30023270}, {'photo_id': 1402818741, 'portfolio_id': 30023270}, {'photo_id': 1402818740, 'portfolio_id': 30023270}, {'photo_id': 1402818738, 'portfolio_id': 30023270}, {'photo_id': 1402818734, 'portfolio_id': 30023270}, {'photo_id': 1402818732, 'portfolio_id': 30023270}, {'photo_id': 1402818730, 'portfolio_id': 30023270}, {'photo_id': 1402818727, 'portfolio_id': 30023270}, {'photo_id': 1402818724, 'portfolio_id': 30023270}, {'photo_id': 1402818718, 'portfolio_id': 30023270}, {'photo_id': 1402818703, 'portfolio_id': 30023270}, {'photo_id': 1402818699, 'portfolio_id': 30023270}, {'photo_id': 1402818695, 'portfolio_id': 30023270}, {'photo_id': 1402818692, 'portfolio_id': 30023270}, {'photo_id': 1402818689, 'portfolio_id': 30023270}, {'photo_id': 1402818588, 'portfolio_id': 30023270}, {'photo_id': 1402818579, 'portfolio_id': 30023270}, {'photo_id': 1402818570, 'portfolio_id': 30023270}, {'photo_id': 1402818562, 'portfolio_id': 30023270}, {'photo_id': 1402818534, 'portfolio_id': 30023270}, {'photo_id': 1402818443, 'portfolio_id': 30023270}, {'photo_id': 1402818425, 'portfolio_id': 30023270}, {'photo_id': 1402818424, 'portfolio_id': 30023270}, {'photo_id': 1402818423, 'portfolio_id': 30023270}, {'photo_id': 1402818420, 'portfolio_id': 30023270}, {'photo_id': 1402818390, 'portfolio_id': 30023270}, {'photo_id': 1402818388, 'portfolio_id': 30023270}, {'photo_id': 1402818386, 'portfolio_id': 30023270}, {'photo_id': 1402818385, 'portfolio_id': 30023270}, {'photo_id': 1402818311, 'portfolio_id': 30023270}, {'photo_id': 1402818275, 'portfolio_id': 30023270}, {'photo_id': 1402818242, 'portfolio_id': 30023270}, {'photo_id': 1402818210, 'portfolio_id': 30023270}, {'photo_id': 1402818139, 'portfolio_id': 30023270}, {'photo_id': 1402818138, 'portfolio_id': 30023270}, {'photo_id': 1402818010, 'portfolio_id': 30023270}, {'photo_id': 1402818009, 'portfolio_id': 30023270}, {'photo_id': 1402818007, 'portfolio_id': 30023270}, {'photo_id': 1402818006, 'portfolio_id': 30023270}, {'photo_id': 1402817992, 'portfolio_id': 30023270}, {'photo_id': 1402817989, 'portfolio_id': 30023270}, {'photo_id': 1402817986, 'portfolio_id': 30023270}, {'photo_id': 1402817984, 'portfolio_id': 30023270}, {'photo_id': 1402817982, 'portfolio_id': 30023270}, {'photo_id': 1402817809, 'portfolio_id': 30023270}, {'photo_id': 1402817653, 'portfolio_id': 30023270}, {'photo_id': 1402817618, 'portfolio_id': 30023270}, {'photo_id': 1402817615, 'portfolio_id': 30023270}, {'photo_id': 1402817613, 'portfolio_id': 30023270}, {'photo_id': 1402817612, 'portfolio_id': 30023270}, {'photo_id': 1402817583, 'portfolio_id': 30023270}, {'photo_id': 1402817581, 'portfolio_id': 30023270}] map_portfolio_id_photo_id: {30023270: [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718, 1402818703, 1402818699, 1402818695, 1402818692, 1402818689, 1402818588, 1402818579, 1402818570, 1402818562, 1402818534, 1402818443, 1402818425, 1402818424, 1402818423, 1402818420, 1402818390, 1402818388, 1402818386, 1402818385, 1402818311, 1402818275, 1402818242, 1402818210, 1402818139, 1402818138, 1402818010, 1402818009, 1402818007, 1402818006, 1402817992, 1402817989, 1402817986, 1402817984, 1402817982, 1402817809, 1402817653, 1402817618, 1402817615, 1402817613, 1402817612, 1402817583, 1402817581]} ##### 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.021216392517089844 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 17:32:29 2026 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 (30023270) 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 : 30023270 get user id for portfolio 30023270 get sub ptf for main ptf 30023270, type 3726 and hashtags ['cartonnette', 'kraft', 'flou', 'plastique', 'environnement', 'metal', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse', 'papier', 'autre_refus'] 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`=30023270 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','plastique','environnement','metal','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','autre_refus')) 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`=30023270 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','plastique','environnement','metal','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 30023270, 'sub_port_id': 30023280, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549094, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'flou': {'main_port_id': 30023270, 'sub_port_id': 30023281, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549095, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'Carton_gris': {'main_port_id': 30023270, 'sub_port_id': 30023282, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549096, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'papier': {'main_port_id': 30023270, 'sub_port_id': 30023283, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549097, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'Carton_brun': {'main_port_id': 30023270, 'sub_port_id': 30023284, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549098, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'cartonnette': {'main_port_id': 30023270, 'sub_port_id': 30023285, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549099, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'mal_croppe': {'main_port_id': 30023270, 'sub_port_id': 30023286, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549100, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'plastique': {'main_port_id': 30023270, 'sub_port_id': 30023287, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549101, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'autre_refus': {'main_port_id': 30023270, 'sub_port_id': 30023288, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549102, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'metal': {'main_port_id': 30023270, 'sub_port_id': 30023289, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549103, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 30023270, 'sub_port_id': 30023290, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549104, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}, 'environnement': {'main_port_id': 30023270, 'sub_port_id': 30023291, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549105, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30023280 , 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=30023270 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 (30023280) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023281 , 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=30023270 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 (30023281) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023282 , 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=30023270 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 (30023282) result : ((1402818375,), (1402818376,), (1402818456,), (1402818457,), (1402818620,), (1402818998,), (1402818999,), (1402819000,), (1402819001,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023283 , 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=30023270 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 (30023283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023284 , 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=30023270 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 (30023284) result : ((1402817958,), (1402818179,), (1402818180,), (1402818181,), (1402818182,), (1402818381,), (1402818382,), (1402818383,), (1402818384,), (1402818462,), (1402818658,), (1402818961,), (1402818962,), (1402818963,), (1402818964,), (1402818992,), (1402819006,), (1402819007,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023285 , 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=30023270 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 (30023285) result : ((1402817951,), (1402818178,), (1402818378,), (1402818379,), (1402818460,), (1402818629,), (1402818631,), (1402818722,), (1402818723,), (1402818991,), (1402819002,), (1402819003,), (1402819004,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023286 , 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=30023270 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 (30023286) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023287 , 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=30023270 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 (30023287) result : ((1402818464,), (1402818672,), (1402818725,), (1402818966,), (1402819008,), (1402819009,), (1402819010,), (1402819011,), (1402819012,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023288 , 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=30023270 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 (30023288) result : ((1402818177,), (1402818373,), (1402818380,), (1402818617,), (1402818618,), (1402818619,), (1402818989,), (1402818990,), (1402818996,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023289 , 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=30023270 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 (30023289) result : ((1402818466,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023290 , 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=30023270 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 (30023290) result : ((1402818175,), (1402818176,), (1402818365,), (1402818366,), (1402818367,), (1402818368,), (1402818369,), (1402818370,), (1402818371,), (1402818372,), (1402818454,), (1402818455,), (1402818720,), (1402818721,), (1402818959,), (1402818960,), (1402818993,), (1402818994,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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 30023291 , 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=30023270 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 (30023291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30023270) result : ((1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) 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`=30023270 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','plastique','environnement','metal','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','autre_refus')) 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`=30023270 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','plastique','environnement','metal','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 30023270, 'sub_port_id': 30023293, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549106, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'flou': {'main_port_id': 30023270, 'sub_port_id': 30023294, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549107, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'Carton_gris': {'main_port_id': 30023270, 'sub_port_id': 30023295, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549108, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'papier': {'main_port_id': 30023270, 'sub_port_id': 30023296, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549109, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'Carton_brun': {'main_port_id': 30023270, 'sub_port_id': 30023297, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549110, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'cartonnette': {'main_port_id': 30023270, 'sub_port_id': 30023298, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549111, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'mal_croppe': {'main_port_id': 30023270, 'sub_port_id': 30023299, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549112, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'plastique': {'main_port_id': 30023270, 'sub_port_id': 30023300, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549113, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'autre_refus': {'main_port_id': 30023270, 'sub_port_id': 30023301, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549114, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'metal': {'main_port_id': 30023270, 'sub_port_id': 30023302, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549115, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 30023270, 'sub_port_id': 30023303, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549116, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 17, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}, 'environnement': {'main_port_id': 30023270, 'sub_port_id': 30023304, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20549117, 'last_updated_at': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 17, 28, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 17, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023302,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023303,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023290 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30023304,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30023291 lien utilise dans velours : https://marlene.fotonower.com/velours/30023293,30023294,30023295,30023296,30023297,30023298,30023299,30023300,30023301,30023302,30023303,30023304?tags=kraft,flou,Carton_gris,papier,Carton_brun,cartonnette,mal_croppe,plastique,autre_refus,metal,Teint_Dans_La_Masse,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30023270]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] map_info['map_portfolio_photo'] : {30023270: [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718, 1402818703, 1402818699, 1402818695, 1402818692, 1402818689, 1402818588, 1402818579, 1402818570, 1402818562, 1402818534, 1402818443, 1402818425, 1402818424, 1402818423, 1402818420, 1402818390, 1402818388, 1402818386, 1402818385, 1402818311, 1402818275, 1402818242, 1402818210, 1402818139, 1402818138, 1402818010, 1402818009, 1402818007, 1402818006, 1402817992, 1402817989, 1402817986, 1402817984, 1402817982, 1402817809, 1402817653, 1402817618, 1402817615, 1402817613, 1402817612, 1402817583, 1402817581]} final : False mtd_id 4302 list_pids : [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] Looping around the photos to save general results len do output : 1 /30023270. 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, '4322591') ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591') 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', None, '30023270', "{'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291}", None, None, None, None, '4322591'), ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591')] time used for this insertion : 0.01892375946044922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.941683292388916 time spend to save output : 0.019286632537841797 total time spend for step 1 : 1.9609699249267578 step2:final Wed Jan 7 17:32:31 2026 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 (30023270) 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 30023270 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402817583,1402817581,1402817653,1402817618,1402817615,1402817613,1402817612,1402817809,1402817992,1402817989,1402817986,1402817982,1402817984,1402818010,1402818009,1402818007,1402818006,1402818139,1402818138,1402818311,1402818275,1402818242,1402818210,1402818390,1402818388,1402818386,1402818385,1402818443,1402818425,1402818424,1402818423,1402818420,1402818588,1402818579,1402818570,1402818562,1402818534,1402818741,1402818703,1402818740,1402818699,1402818695,1402818738,1402818692,1402818734,1402818689,1402818732,1402818730,1402818727,1402818724,1402818787,1402818718,1402818776,1402818763,1402818761,1402818903); 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([30023270]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} new output for save of step final : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] map_info['map_portfolio_photo'] : {30023270: [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718, 1402818703, 1402818699, 1402818695, 1402818692, 1402818689, 1402818588, 1402818579, 1402818570, 1402818562, 1402818534, 1402818443, 1402818425, 1402818424, 1402818423, 1402818420, 1402818390, 1402818388, 1402818386, 1402818385, 1402818311, 1402818275, 1402818242, 1402818210, 1402818139, 1402818138, 1402818010, 1402818009, 1402818007, 1402818006, 1402817992, 1402817989, 1402817986, 1402817984, 1402817982, 1402817809, 1402817653, 1402817618, 1402817615, 1402817613, 1402817612, 1402817583, 1402817581]} final : False mtd_id 4302 list_pids : [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] Looping around the photos to save general results len do output : 14 /1402818903.Didn't retrieve data . /1402818787.Didn't retrieve data . /1402818776.Didn't retrieve data . /1402818763.Didn't retrieve data . /1402818761.Didn't retrieve data . /1402818741.Didn't retrieve data . /1402818740.Didn't retrieve data . /1402818738.Didn't retrieve data . /1402818734.Didn't retrieve data . /1402818732.Didn't retrieve data . /1402818730.Didn't retrieve data . /1402818727.Didn't retrieve data . /1402818724.Didn't retrieve data . /1402818718.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, '4322591') ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '30023270', '1402818903', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818787', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818776', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818763', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818761', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818741', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818740', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818738', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818734', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818732', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818730', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818727', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818724', '0.03814862088974762', None, None, None, None, '4322591'), ('4302', '30023270', '1402818718', '0.03814862088974762', None, None, None, None, '4322591')] time used for this insertion : 0.018706083297729492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08599090576171875 time spend to save output : 0.019385814666748047 total time spend for step 2 : 0.1053767204284668 step3:velours_tree Wed Jan 7 17:32:31 2026 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 : {30023270: [{'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291}]} input_args_next_step : {30023270: ()} output_args : {30023270: [{'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291}]} args : 30023270 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 : ({'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30023270) 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([30023270]) 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.3725113868713379 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.37256622314453125 step4:send_mail_cod Wed Jan 7 17:32:31 2026 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 : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} input_args_next_step : {1402818903: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818903 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818787 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818776 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818763 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818761 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818741 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818740 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818738 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818734 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818732 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818730 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818727 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818724 depend.output_id : 0 input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ()} output_args : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',)} args : 1402818718 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 : {30023270: [{'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291}]} input_args_next_step : {1402818903: ('0.03814862088974762',), 1402818787: ('0.03814862088974762',), 1402818776: ('0.03814862088974762',), 1402818763: ('0.03814862088974762',), 1402818761: ('0.03814862088974762',), 1402818741: ('0.03814862088974762',), 1402818740: ('0.03814862088974762',), 1402818738: ('0.03814862088974762',), 1402818734: ('0.03814862088974762',), 1402818732: ('0.03814862088974762',), 1402818730: ('0.03814862088974762',), 1402818727: ('0.03814862088974762',), 1402818724: ('0.03814862088974762',), 1402818718: ('0.03814862088974762',), 30023270: ()} output_args : {30023270: [{'kraft': 30023280, 'flou': 30023281, 'Carton_gris': 30023282, 'papier': 30023283, 'Carton_brun': 30023284, 'cartonnette': 30023285, 'mal_croppe': 30023286, 'plastique': 30023287, 'autre_refus': 30023288, 'metal': 30023289, 'Teint_Dans_La_Masse': 30023290, 'environnement': 30023291}]} args : 30023270 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 :15, first value : ('0.03814862088974762',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30023270) 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 (1402818903,1402818787,1402818776,1402818763,1402818761,1402818741,1402818740,1402818738,1402818734,1402818732,1402818730,1402818727,1402818724,1402818718) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402818718 begin to download photo : 1402818730 begin to download photo : 1402818738 begin to download photo : 1402818761 begin to download photo : 1402818787 download finish for photo 1402818738 begin to download photo : 1402818740 download finish for photo 1402818761 begin to download photo : 1402818763 download finish for photo 1402818730 begin to download photo : 1402818732 download finish for photo 1402818718 begin to download photo : 1402818724 download finish for photo 1402818787 begin to download photo : 1402818903 download finish for photo 1402818740 begin to download photo : 1402818741 download finish for photo 1402818763 begin to download photo : 1402818776 download finish for photo 1402818732 begin to download photo : 1402818734 download finish for photo 1402818724 begin to download photo : 1402818727 download finish for photo 1402818903 download finish for photo 1402818741 download finish for photo 1402818776 download finish for photo 1402818734 download finish for photo 1402818727 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette300232801767803552/ imagette300232811767803552/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P30023270_07-01-2026_17_32_32.pdf 30023280 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=30023280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300232801767803552 30023281 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=30023281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300232811767803552 30023285 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=30023285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402817951: '1767802706_3676856_1402817583_ff37dac11278a180a069a501d64dfaee_rle_crop_4092812171_0.png', 1402818178: '1767802946_3689285_1402818007_b1ad93d0eba765e30bbcb39b399c0062_rle_crop_4092814097_0.png', 1402818378: '1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814408_0.png', 1402818379: '1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814462_0.png', 1402818460: '1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816107_0.png', 1402818629: '1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816472_0.png', 1402818631: '1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816496_0.png', 1402818722: '1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817614_0.png', 1402818723: '1767803246_3705490_1402818275_cff4e5918e3dffea35ac361cd5efdbeb_rle_crop_4092817629_0.png', 1402818991: '1767803465_3716341_1402818534_bd662c0bdf66c7d2bda0f4d3ccbe5eac_rle_crop_4092818589_0.png', 1402819002: '1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818562_0.png', 1402819003: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818617_0.png', 1402819004: '1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818630_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ea353356fe8182a75ed2359d921b0a8c_4314130.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ca2ced13873e01a59ebbddb7c14e3746_24106188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b08dcb672bb30698274146e3668672b5_4343691.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/31999a877ab5bc2d32a42d7eb9ee98c4_64301184.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e4c84a81050468fd207ac7b38cd14402_89590496.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2bff51a0eff68d9a94f2ce67016a69b3_26505785.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/830b2852134d01d41e10091a98daf6a2_90323981.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f626f2729ae62245cc95c4841c072aee_8255764.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f809aba60e96f1d192a3b2ef30a86600_67028764.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9beabc11fa82096deb9b5d9987c9092a_28374366.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bf159d4742d8fd91b86d2e8fbbd08fa4_94174575.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6fe7dd5ade4e633a82e6e214fdfbeb0d_68671909.png change filename to text .imagette300232851767803552/ imagette300232851767803552/1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814462_0.png.png imagette300232851767803552/1767803465_3716341_1402818534_bd662c0bdf66c7d2bda0f4d3ccbe5eac_rle_crop_4092818589_0.png.png imagette300232851767803552/1767802946_3689285_1402818007_b1ad93d0eba765e30bbcb39b399c0062_rle_crop_4092814097_0.png.png imagette300232851767803552/1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818562_0.png.png imagette300232851767803552/1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817614_0.png.png imagette300232851767803552/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818617_0.png.png imagette300232851767803552/1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816107_0.png.png imagette300232851767803552/1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814408_0.png.png imagette300232851767803552/1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818630_0.png.png imagette300232851767803552/1767802706_3676856_1402817583_ff37dac11278a180a069a501d64dfaee_rle_crop_4092812171_0.png.png imagette300232851767803552/1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816472_0.png.png imagette300232851767803552/1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816496_0.png.png imagette300232851767803552/1767803246_3705490_1402818275_cff4e5918e3dffea35ac361cd5efdbeb_rle_crop_4092817629_0.png.png imagette300232861767803553/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/04b6052a0e14f96793c1e6ff1f032615_76353474.png imagette300232851767803552 30023286 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=30023286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300232861767803553 30023287 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=30023287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818464: '1767803107_3698690_1402817613_9a6fd35f59c0a77846b9cd474ffeb31d_rle_crop_4092816093_0.png', 1402818672: '1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816497_0.png', 1402818725: '1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817616_0.png', 1402818966: '1767803427_3715480_1402818699_d484a97e682785141ba3bf0701c0479c_rle_crop_4092818102_0.png', 1402819008: '1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818566_0.png', 1402819009: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818608_0.png', 1402819010: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818606_0.png', 1402819011: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818623_0.png', 1402819012: '1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818640_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/679e94697f79f1c49be137d1eb67cd23_47856848.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7718d3caec568e04c642a67f708729e8_28695173.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/722936d7660e414629a82329f852d719_4576453.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b2984648d663ba3786bcb0b1d87e05c_64863648.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0f50cb1febd5056ad55b0919c9b07bf1_89998354.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/409d2a522af3ccd735349c69bc4f1910_84292288.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/49bf9d275b994dca78e75b95a1043483_72364818.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/03a45b161d237ab0c67e688887a950d9_93045874.png change filename to text .imagette300232871767803553/ imagette300232871767803553/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818606_0.png.png imagette300232871767803553/1767803427_3715480_1402818699_d484a97e682785141ba3bf0701c0479c_rle_crop_4092818102_0.png.png imagette300232871767803553/1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817616_0.png.png imagette300232871767803553/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818608_0.png.png imagette300232871767803553/1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816497_0.png.png imagette300232871767803553/1767803107_3698690_1402817613_9a6fd35f59c0a77846b9cd474ffeb31d_rle_crop_4092816093_0.png.png imagette300232871767803553/1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818640_0.png.png imagette300232871767803553/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818623_0.png.png imagette300232871767803553/1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818566_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/dd6ebbfb2a62be845650ee23fc2e8c23_53241781.png imagette300232871767803553 30023288 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=30023288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818177: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814076_0.png', 1402818373: '1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814442_0.png', 1402818380: '1767803007_3692280_1402817653_13934d849cd3baa5c60f150d5ad40c08_rle_crop_4092814479_0.png', 1402818617: '1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816470_0.png', 1402818618: '1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816471_0.png', 1402818619: '1767803186_3703031_1402818386_2497328a8b5172fd12aa7856ebd82d5f_rle_crop_4092816483_0.png', 1402818989: '1767803465_3716341_1402818703_18fd814b4e36752ff3761a9dd3a59ac3_rle_crop_4092818526_0.png', 1402818990: '1767803465_3716341_1402818534_bd662c0bdf66c7d2bda0f4d3ccbe5eac_rle_crop_4092818596_0.png', 1402818996: '1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819733_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8cf53d1f139bc49249cec52478748eaf_3925608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2318273df8658d086139e93d6e54d42b_21365891.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/34b8f0f908dabc037ccda61c81933d47_27461186.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/83583ad765502c5e9839e3e089cf5954_40773700.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b2b409d4975caf4171342fbc28b6d7ad_58882304.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c83c6fa6f277f55f16857070c4cc7f56_51058676.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/49dd12770b620dedb5396796fd720705_35480364.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2ee955fa6240b234bbb70fdc3cac3264_66710360.png change filename to text .imagette300232881767803553/ imagette300232881767803553/1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816470_0.png.png imagette300232881767803553/1767803186_3703031_1402818386_2497328a8b5172fd12aa7856ebd82d5f_rle_crop_4092816483_0.png.png imagette300232881767803553/1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819733_0.png.png imagette300232881767803553/1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814442_0.png.png imagette300232881767803553/1767803007_3692280_1402817653_13934d849cd3baa5c60f150d5ad40c08_rle_crop_4092814479_0.png.png imagette300232881767803553/1767803465_3716341_1402818703_18fd814b4e36752ff3761a9dd3a59ac3_rle_crop_4092818526_0.png.png imagette300232881767803553/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814076_0.png.png imagette300232881767803553/1767803465_3716341_1402818534_bd662c0bdf66c7d2bda0f4d3ccbe5eac_rle_crop_4092818596_0.png.png imagette300232881767803553/1767803186_3703031_1402818388_0f6d2ea6841d33045315d1df1f04906c_rle_crop_4092816471_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9d50463b1740ae6b0f8f15a67928d387_2543565.png imagette300232881767803553 30023289 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=30023289 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818466: '1767803107_3698690_1402817618_b6fa5f86d0b62d7e6fae071ebb3479dd_rle_crop_4092815548_0.png'} change filename to text .imagette300232891767803554/ imagette300232891767803554/1767803107_3698690_1402817618_b6fa5f86d0b62d7e6fae071ebb3479dd_rle_crop_4092815548_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0d4464b9ab5134930c4ef96ff886d2e4_58683945.png imagette300232891767803554 30023282 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=30023282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818375: '1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814342_0.png', 1402818376: '1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814346_0.png', 1402818456: '1767803107_3698690_1402817618_b6fa5f86d0b62d7e6fae071ebb3479dd_rle_crop_4092815545_0.png', 1402818457: '1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816103_0.png', 1402818620: '1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816501_0.png', 1402818998: '1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818568_0.png', 1402818999: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818610_0.png', 1402819000: '1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819727_0.png', 1402819001: '1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f1592faf709306e2e3c492cf38999c96_44768331.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/099c0bd10c1c9b455f6950baea5ee094_11398668.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ce6f275452a6c29b529cf7e521848687_90029207.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8ee51414181fa1b66570e6d372218ff9_34881286.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2bb15094ae6f4adabd5d46c90adf85b7_73362221.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6715a36a162d45d1ec57bc8470e302b4_18238715.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9ab49df21d6bf6193ead1dca58bae037_67623388.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/32494ed18dab953d0b2043991b9cfda3_94634717.png change filename to text .imagette300232821767803554/ imagette300232821767803554/1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819726_0.png.png imagette300232821767803554/1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814342_0.png.png imagette300232821767803554/1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816501_0.png.png imagette300232821767803554/1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816103_0.png.png imagette300232821767803554/1767803487_3718343_1402818420_efb118d9d82b385858bb7b9a84b50241_rle_crop_4092819727_0.png.png imagette300232821767803554/1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814346_0.png.png imagette300232821767803554/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818610_0.png.png imagette300232821767803554/1767803107_3698690_1402817618_b6fa5f86d0b62d7e6fae071ebb3479dd_rle_crop_4092815545_0.png.png imagette300232821767803554/1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818568_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0d58a5739092ff52ca738fa7feb3f650_26318701.png imagette300232821767803554 30023284 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=30023284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818462: '1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816109_0.png', 1402819007: '1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818616_0.png', 1402819006: '1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818574_0.png', 1402818992: '1767803465_3716341_1402818703_18fd814b4e36752ff3761a9dd3a59ac3_rle_crop_4092818527_0.png', 1402818964: '1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818158_0.png', 1402818963: '1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818155_0.png', 1402818962: '1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818156_0.png', 1402818961: '1767803427_3715480_1402818699_d484a97e682785141ba3bf0701c0479c_rle_crop_4092818103_0.png', 1402818658: '1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816500_0.png', 1402817958: '1767802706_3676856_1402817583_ff37dac11278a180a069a501d64dfaee_rle_crop_4092812177_0.png', 1402818384: '1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814447_0.png', 1402818383: '1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814349_0.png', 1402818382: '1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814331_0.png', 1402818381: '1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814332_0.png', 1402818182: '1767802946_3689285_1402818007_b1ad93d0eba765e30bbcb39b399c0062_rle_crop_4092814096_0.png', 1402818181: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814075_0.png', 1402818180: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814073_0.png', 1402818179: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814080_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/33ef90c9fc46087b34e46de9a87caf52_77420409.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1cfa4e9b555548680da004e2dcd1d1a6_66392110.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0465106b3cdc019aba589951ad8b2eae_12418674.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c3c1fb68fce1f97e54d04c6e3c4fb107_44508489.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e04a88bcf3885a0595404d07e7de0719_16900523.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/63b31d479ac22114f93621d9f1a0f3d0_14385013.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/04d3f6e7cae8323c2a5ed32b8d01d83b_91854067.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a9ada1360011dbe026b80aeaa9b81e83_11854063.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/54817e42871a49e9e68f9907311b6f2a_70744700.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/72b9b6df6dcf7bd0659eda7a76316576_41592716.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/70f500807ce73db4d99dcb29ed60aa4b_30528167.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4ae12f9d63fba4616fccdd4a03144291_97126666.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/cd4b06a481020a0d8ec9c9fec195b425_31311543.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f71bc45c46463ef2e6d61fce1d15f266_26534467.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c19f3853fa095d85f04d0d128854bb06_78204306.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bb19c5603c80a37bf0006c4ff95fcf5a_70541955.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8cf9bc595edf71c7e389e8c8d26acc2d_13093624.png change filename to text .imagette300232841767803555/ imagette300232841767803555/1767803465_3716341_1402818703_18fd814b4e36752ff3761a9dd3a59ac3_rle_crop_4092818527_0.png.png imagette300232841767803555/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814073_0.png.png imagette300232841767803555/1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816109_0.png.png imagette300232841767803555/1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814447_0.png.png imagette300232841767803555/1767802946_3689285_1402818007_b1ad93d0eba765e30bbcb39b399c0062_rle_crop_4092814096_0.png.png imagette300232841767803555/1767802706_3676856_1402817583_ff37dac11278a180a069a501d64dfaee_rle_crop_4092812177_0.png.png imagette300232841767803555/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814080_0.png.png imagette300232841767803555/1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818574_0.png.png imagette300232841767803555/1767802986_3690557_1402817989_f17a8706229f4ebe12bdd55383093907_rle_crop_4092814349_0.png.png imagette300232841767803555/1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814331_0.png.png imagette300232841767803555/1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818155_0.png.png imagette300232841767803555/1767803186_3703031_1402818385_aca365bd56e09d5fb60b12796bea133b_rle_crop_4092816500_0.png.png imagette300232841767803555/1767803487_3718343_1402818424_372e5517a65989c1aac22b35f5834ae2_rle_crop_4092818616_0.png.png imagette300232841767803555/1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818156_0.png.png imagette300232841767803555/1767803427_3715480_1402818699_d484a97e682785141ba3bf0701c0479c_rle_crop_4092818103_0.png.png imagette300232841767803555/1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814332_0.png.png imagette300232841767803555/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814075_0.png.png imagette300232841767803555/1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818158_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/806fb6f6ed862214a4f4570e6fbf7155_78643766.png imagette300232841767803555 30023290 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=30023290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402818372: '1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814463_0.png', 1402818994: '1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818632_0.png', 1402818993: '1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818570_0.png', 1402818960: '1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818159_0.png', 1402818959: '1767803427_3715480_1402818692_6f270ecdd4add51a1f21cf0757246741_rle_crop_4092818139_0.png', 1402818721: '1767803246_3705490_1402818242_19ffb4d7cb263f79ae54659f53fa3433_rle_crop_4092817642_0.png', 1402818720: '1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817615_0.png', 1402818455: '1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816105_0.png', 1402818454: '1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816113_0.png', 1402818175: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814078_0.png', 1402818371: '1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814467_0.png', 1402818370: '1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814452_0.png', 1402818369: '1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814446_0.png', 1402818368: '1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814412_0.png', 1402818367: '1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814416_0.png', 1402818366: '1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814337_0.png', 1402818365: '1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814327_0.png', 1402818176: '1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814084_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/172302610e73d28742ea83224ccfa137_82362363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b71db7df8a2e0f4e2f1db08e1c7b81a_66759578.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ecfa7a2115d6b72497ae8d8a066ea954_33332843.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ca447efce2f4530b1f79429700396383_71142562.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b59f9cfc28bc7c512d15f8d792d5f017_88661013.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ee95f704dd3718a3a2acb82b44eaefdc_95601518.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9337097fb9896113478c940a82ff6b46_62929423.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7744c28f3dd79b3f2847c9bd9bfdee34_74509454.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1d5cfd25e53884aab1f30af2111d8cc7_72923345.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/06f8f98b497718f3fef1ecb2f50c93f9_4565910.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d12a6052bbbf75b146379ada63b443d0_66369250.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/722480bf680804b716a7ad78be2b6170_76683178.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f338b8996e478f3140e21c0210a48793_22628367.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ad39d9e6ecb2a05eb45ff463bd4a7d5a_1105572.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a1e580605940ec5d8416ffaa107b7392_89130879.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9d1abda0cd91ddf15a17695d4da46831_70043516.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/98972f645d11d82ccdf008d4153fbf74_58952465.png change filename to text .imagette300232901767803556/ imagette300232901767803556/1767803246_3705490_1402818242_19ffb4d7cb263f79ae54659f53fa3433_rle_crop_4092817642_0.png.png imagette300232901767803556/1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816113_0.png.png imagette300232901767803556/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814084_0.png.png imagette300232901767803556/1767802946_3689285_1402818009_2ac002db84c3301be7f5c512c7697dfe_rle_crop_4092814078_0.png.png imagette300232901767803556/1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814446_0.png.png imagette300232901767803556/1767803246_3705490_1402818390_3bbdff4d6532f70b8befbad9c190cbcd_rle_crop_4092817615_0.png.png imagette300232901767803556/1767803487_3718343_1402818425_b9957f8b5254e7b445fca494eba036b2_rle_crop_4092818570_0.png.png imagette300232901767803556/1767803487_3718343_1402818423_d7ae6c146785039b577bff0827944ec7_rle_crop_4092818632_0.png.png imagette300232901767803556/1767802986_3690557_1402817984_393cd2832adeb54acfbe5c530def861e_rle_crop_4092814452_0.png.png imagette300232901767803556/1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814416_0.png.png imagette300232901767803556/1767802986_3690557_1402817986_e5021c00f922909298c393138e4dfd4b_rle_crop_4092814412_0.png.png imagette300232901767803556/1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814337_0.png.png imagette300232901767803556/1767803427_3715480_1402818689_303751f1249b96cdc45d07063b8aeffd_rle_crop_4092818159_0.png.png imagette300232901767803556/1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814463_0.png.png imagette300232901767803556/1767803107_3698690_1402817612_2b6445178792c5ebae50918962c126d8_rle_crop_4092816105_0.png.png imagette300232901767803556/1767802986_3690557_1402817982_ffec96f649a77cbc54f6afa647dc489c_rle_crop_4092814467_0.png.png imagette300232901767803556/1767802986_3690557_1402818010_355e7d0ab55316954ab2563ef7337870_rle_crop_4092814327_0.png.png imagette300232901767803556/1767803427_3715480_1402818692_6f270ecdd4add51a1f21cf0757246741_rle_crop_4092818139_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/fdb20315e63b61f444d81c4f20e1a727_2249986.png imagette300232901767803556 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30023270 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30023293,30023294,30023295,30023296,30023297,30023298,30023299,30023300,30023301,30023302,30023303,30023304?tags=kraft,flou,Carton_gris,papier,Carton_brun,cartonnette,mal_croppe,plastique,autre_refus,metal,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1402818903] : ('0.03814862088974762',) no score found for photo 1402818903 We are sending mail with results at report@fotonower.com args[1402818787] : ('0.03814862088974762',) no score found for photo 1402818787 We are sending mail with results at report@fotonower.com args[1402818776] : ('0.03814862088974762',) no score found for photo 1402818776 We are sending mail with results at report@fotonower.com args[1402818763] : ('0.03814862088974762',) no score found for photo 1402818763 We are sending mail with results at report@fotonower.com args[1402818761] : ('0.03814862088974762',) no score found for photo 1402818761 We are sending mail with results at report@fotonower.com args[1402818741] : ('0.03814862088974762',) no score found for photo 1402818741 We are sending mail with results at report@fotonower.com args[1402818740] : ('0.03814862088974762',) no score found for photo 1402818740 We are sending mail with results at report@fotonower.com args[1402818738] : ('0.03814862088974762',) no score found for photo 1402818738 We are sending mail with results at report@fotonower.com args[1402818734] : ('0.03814862088974762',) no score found for photo 1402818734 We are sending mail with results at report@fotonower.com args[1402818732] : ('0.03814862088974762',) no score found for photo 1402818732 We are sending mail with results at report@fotonower.com args[1402818730] : ('0.03814862088974762',) no score found for photo 1402818730 We are sending mail with results at report@fotonower.com args[1402818727] : ('0.03814862088974762',) no score found for photo 1402818727 We are sending mail with results at report@fotonower.com args[1402818724] : ('0.03814862088974762',) no score found for photo 1402818724 We are sending mail with results at report@fotonower.com args[1402818718] : ('0.03814862088974762',) no score found for photo 1402818718 We are sending mail with results at report@fotonower.com refus_total : 0.03814862088974762 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=30023270 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_P30023270_07-01-2026_17_32_32.pdf results_Auto_P30023270_07-01-2026_17_32_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30023270_07-01-2026_17_32_32.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','30023270','results_Auto_P30023270_07-01-2026_17_32_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30023270_07-01-2026_17_32_32.pdf','pdf','','0.31','0.03814862088974762') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30023270]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] map_info['map_portfolio_photo'] : {30023270: [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718, 1402818703, 1402818699, 1402818695, 1402818692, 1402818689, 1402818588, 1402818579, 1402818570, 1402818562, 1402818534, 1402818443, 1402818425, 1402818424, 1402818423, 1402818420, 1402818390, 1402818388, 1402818386, 1402818385, 1402818311, 1402818275, 1402818242, 1402818210, 1402818139, 1402818138, 1402818010, 1402818009, 1402818007, 1402818006, 1402817992, 1402817989, 1402817986, 1402817984, 1402817982, 1402817809, 1402817653, 1402817618, 1402817615, 1402817613, 1402817612, 1402817583, 1402817581]} final : False mtd_id 4302 list_pids : [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] 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, '4322591') ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '30023270', '1402818903', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591')] time used for this insertion : 0.016448020935058594 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.917527198791504 time spend to save output : 0.016748428344726562 total time spend for step 4 : 7.9342756271362305 step5:split_time_score Wed Jan 7 17:32:39 2026 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 : ['30023270'] 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 : [('30023270',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30023270) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402818787: {'path': 'temp/1767803551_3310503_1402818787_e27e8278d8c3d7db1a21dcbf4b85cac6.jpg', 'extension': 'jpg'}, 1402818903: {'path': 'temp/1767803551_3310503_1402818903_668a30062401ba49945d1d328026f461.jpg', 'extension': 'jpg'}, 1402818738: {'path': 'temp/1767803551_3310503_1402818738_cfdf0a9876a1b928c601442fff51787f.jpg', 'extension': 'jpg'}, 1402818740: {'path': 'temp/1767803551_3310503_1402818740_f097b849e9835745c48201491f2e8c2a.jpg', 'extension': 'jpg'}, 1402818741: {'path': 'temp/1767803551_3310503_1402818741_e072810799dd130e0035d5a20d45f10b.jpg', 'extension': 'jpg'}, 1402818761: {'path': 'temp/1767803551_3310503_1402818761_11f59298ccceaae39d810f16c99dec4b.jpg', 'extension': 'jpg'}, 1402818763: {'path': 'temp/1767803551_3310503_1402818763_21d81a7696b23c9b5ecef659e3164fd6.jpg', 'extension': 'jpg'}, 1402818776: {'path': 'temp/1767803551_3310503_1402818776_fb5aa3120a025f255988a2836158746a.jpg', 'extension': 'jpg'}, 1402818730: {'path': 'temp/1767803551_3310503_1402818730_f9a5ece1e2ee5621f70a1f1cd56ffb55.jpg', 'extension': 'jpg'}, 1402818732: {'path': 'temp/1767803551_3310503_1402818732_37c62cd3a5e406a6d25fe92885429442.jpg', 'extension': 'jpg'}, 1402818734: {'path': 'temp/1767803551_3310503_1402818734_cb883325a518f467326acad523afcf3e.jpg', 'extension': 'jpg'}, 1402818718: {'path': 'temp/1767803551_3310503_1402818718_4e0162489842ea169c2cbbf97a2ded44.jpg', 'extension': 'jpg'}, 1402818724: {'path': 'temp/1767803551_3310503_1402818724_122e6fc2bfb786bb5e210c64d81f9868.jpg', 'extension': 'jpg'}, 1402818727: {'path': 'temp/1767803551_3310503_1402818727_bcbfde9e204376bdbe8f5cfb1ea808b1.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 = 30023270; (('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 = 30023270 group by h (('17', 56),) 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=30023270 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 (30023270) 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 (30023270) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07012026 30023270 Nombre de photos uploadées : 56 / 23040 (0%) 07012026 30023270 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 07012026 30023270 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1402817583, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ff37dac11278a180a069a501d64dfaee.jpg', 'username': None, 'uploaded_at': 1767802568, 'text': 'image_07012026_17_15_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402817581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e4caafd1ceeca863c6a520fde451bce1.jpg', 'username': None, 'uploaded_at': 1767802568, 'text': 'image_07012026_17_15_14_010145m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402817653, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/13934d849cd3baa5c60f150d5ad40c08.jpg', 'username': None, 'uploaded_at': 1767802628, 'text': 'image_07012026_17_15_53_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402817618, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b6fa5f86d0b62d7e6fae071ebb3479dd.jpg', 'username': None, 'uploaded_at': 1767802628, 'text': 'image_07012026_17_16_04_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026504993438720703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 30023270, '2026-01-07' ) 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 = '2026-01-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2854728,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25641679763793945 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= 2854728 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 29999365, 'dashboard_result_id': 19118845, '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_P29999365_07-01-2026_05_45_43.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 29999670, 'dashboard_result_id': 19118846, '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_P29999670_07-01-2026_05_46_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30000240, 'dashboard_result_id': 19118847, '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_P30000240_07-01-2026_05_46_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30000381, 'dashboard_result_id': 19118848, '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_P30000381_07-01-2026_05_46_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30001385, 'dashboard_result_id': 19118849, '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_P30001385_07-01-2026_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30001625, 'dashboard_result_id': 19118850, '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_P30001625_07-01-2026_05_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30001993, 'dashboard_result_id': 19118851, '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_P30001993_07-01-2026_05_47_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30002683, 'dashboard_result_id': 19118852, '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_P30002683_07-01-2026_05_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30003176, 'dashboard_result_id': 19118853, '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_P30003176_07-01-2026_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30003654, 'dashboard_result_id': 19118855, '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_P30003654_07-01-2026_05_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30004058, 'dashboard_result_id': 19118856, '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_P30004058_07-01-2026_05_49_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30004504, 'dashboard_result_id': 19118857, '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_P30004504_07-01-2026_05_50_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30005091, 'dashboard_result_id': 19118858, '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_P30005091_07-01-2026_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30005616, 'dashboard_result_id': 19118860, '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_P30005616_07-01-2026_05_50_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30005785, 'dashboard_result_id': 19118861, '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_P30005785_07-01-2026_05_51_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30006433, 'dashboard_result_id': 19118862, '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_P30006433_07-01-2026_05_51_16.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30006459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006470, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30006862, 'dashboard_result_id': 19118863, '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_P30006862_07-01-2026_06_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30006923, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30008133, 'dashboard_result_id': 19118865, '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_P30008133_07-01-2026_07_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30008134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30008135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30008136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30008137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30008138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30008139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30008140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30008141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30008142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30008143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30008144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30008145, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30009247, 'dashboard_result_id': 19118866, '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_P30009247_07-01-2026_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30009251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30009252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30009253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30009254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30009255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30009256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30009257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30009258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30009259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30009260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30009261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30009262, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30009593, 'dashboard_result_id': 19118867, '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_P30009593_07-01-2026_08_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30009597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30009598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30009599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30009600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30009601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30009602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30009603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30009604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30009605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30009606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30009607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30009608, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30010197, 'dashboard_result_id': 19118868, '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_P30010197_07-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30010202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010209, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30010468, 'dashboard_result_id': 19118869, '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_P30010468_07-01-2026_08_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30010475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010486, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30011725, 'dashboard_result_id': 19118870, '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_P30011725_07-01-2026_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30011737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011740, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30011864, 'dashboard_result_id': 19118871, '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_P30011864_07-01-2026_10_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30011869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011880, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30012493, 'dashboard_result_id': 19118872, '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_P30012493_07-01-2026_10_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30012497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30012498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30012499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30012500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30012501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30012502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30012503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30012504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30012505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30012506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30012507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30012508, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30013967, 'dashboard_result_id': 19118873, '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_P30013967_07-01-2026_11_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30013971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30013972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30013973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30013974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30013975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30013976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30013977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30013978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30013979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30013980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30013981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30013982, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30014128, 'dashboard_result_id': 19118874, '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_P30014128_07-01-2026_12_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30014142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30014143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30014144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30014145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30014146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30014147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30014148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30014149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30014150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30014151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30014152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30014153, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30015597, 'dashboard_result_id': 19118875, '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_P30015597_07-01-2026_14_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30015611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015612, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30015792, 'dashboard_result_id': 19118876, '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_P30015792_07-01-2026_14_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30015802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015813, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30016267, 'dashboard_result_id': 19118877, '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_P30016267_07-01-2026_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016317, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30016904, 'dashboard_result_id': 19118878, '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_P30016904_07-01-2026_14_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016936, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30017547, 'dashboard_result_id': 19118879, '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_P30017547_07-01-2026_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30017555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30017556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30017557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30017558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30017559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30017560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30017561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30017562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30017563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30017564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30017565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30017566, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30018015, 'dashboard_result_id': 19118880, '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_P30018015_07-01-2026_15_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018059, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30018710, 'dashboard_result_id': 19118881, '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_P30018710_07-01-2026_15_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018738, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30019466, 'dashboard_result_id': 19118882, '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_P30019466_07-01-2026_15_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30019474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30019475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30019476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30019477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30019478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30019479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30019480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30019481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30019482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30019483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30019484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30019485, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30020121, 'dashboard_result_id': 19118883, '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_P30020121_07-01-2026_16_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020141, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30020366, 'dashboard_result_id': 19118884, '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_P30020366_07-01-2026_16_23_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020387, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30021157, 'dashboard_result_id': 19118885, '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_P30021157_07-01-2026_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021186, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30021437, 'dashboard_result_id': 19118886, '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_P30021437_07-01-2026_16_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021478, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30022124, 'dashboard_result_id': 19118887, '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_P30022124_07-01-2026_17_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022148, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30022669, 'dashboard_result_id': 19118888, '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_P30022669_07-01-2026_17_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022733, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2866162, 'mtr_portfolio_id': 30023270, 'dashboard_result_id': 19118889, '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_P30023270_07-01-2026_17_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30023280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30023281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30023282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30023283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30023284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30023285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30023286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30023287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30023288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30023289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30023290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30023291, '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 = 29999365 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': 4320485, 'mtr_portfolio_id': 29999365, 'created_at': datetime.datetime(2026, 1, 7, 5, 45, 41), 'result': '0.049124932594421564', 'result_long': None, 'result_double': None}] Qualite : 0.049124932594421564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_05_45_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999365 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_P29999365_07-01-2026_05_45_43.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}" where mtr_portfolio_id = 29999365 and dashboard_run_id = 2866162 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`=29999365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118845, 0.049124932594421564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_05_45_43.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, '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 = 29999670 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': 4320486, 'mtr_portfolio_id': 29999670, 'created_at': datetime.datetime(2026, 1, 7, 5, 46), 'result': '0.06694766439685172', 'result_long': None, 'result_double': None}] Qualite : 0.06694766439685172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999670 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_P29999670_07-01-2026_05_46_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}" where mtr_portfolio_id = 29999670 and dashboard_run_id = 2866162 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`=29999670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118846, 0.06694766439685172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_05_46_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, '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 = 30000240 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': 4320487, 'mtr_portfolio_id': 30000240, 'created_at': datetime.datetime(2026, 1, 7, 5, 46, 13), 'result': '0.07013621338932265', 'result_long': None, 'result_double': None}] Qualite : 0.07013621338932265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_05_46_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000240 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_P30000240_07-01-2026_05_46_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}" where mtr_portfolio_id = 30000240 and dashboard_run_id = 2866162 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`=30000240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118847, 0.07013621338932265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_05_46_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, '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 = 30000381 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': 4320488, 'mtr_portfolio_id': 30000381, 'created_at': datetime.datetime(2026, 1, 7, 5, 46, 30), 'result': '0.048472824194191244', 'result_long': None, 'result_double': None}] Qualite : 0.048472824194191244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_05_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000381 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_P30000381_07-01-2026_05_46_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}" where mtr_portfolio_id = 30000381 and dashboard_run_id = 2866162 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`=30000381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118848, 0.048472824194191244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_05_46_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 = 30001385 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': 4320489, 'mtr_portfolio_id': 30001385, 'created_at': datetime.datetime(2026, 1, 7, 5, 46, 59), 'result': '0.04826813212001843', 'result_long': None, 'result_double': None}] Qualite : 0.04826813212001843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001385 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_P30001385_07-01-2026_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}" where mtr_portfolio_id = 30001385 and dashboard_run_id = 2866162 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`=30001385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118849, 0.04826813212001843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_05_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, '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 = 30001625 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': 4320490, 'mtr_portfolio_id': 30001625, 'created_at': datetime.datetime(2026, 1, 7, 5, 47, 27), 'result': '0.06660748843389316', 'result_long': None, 'result_double': None}] Qualite : 0.06660748843389316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_05_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001625 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_P30001625_07-01-2026_05_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}" where mtr_portfolio_id = 30001625 and dashboard_run_id = 2866162 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`=30001625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118850, 0.06660748843389316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_05_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, '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 = 30001993 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': 4320491, 'mtr_portfolio_id': 30001993, 'created_at': datetime.datetime(2026, 1, 7, 5, 47, 30), 'result': '0.06158784706174094', 'result_long': None, 'result_double': None}] Qualite : 0.06158784706174094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001993 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_P30001993_07-01-2026_05_47_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}" where mtr_portfolio_id = 30001993 and dashboard_run_id = 2866162 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`=30001993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118851, 0.06158784706174094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_05_47_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, '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 = 30002683 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': 4320492, 'mtr_portfolio_id': 30002683, 'created_at': datetime.datetime(2026, 1, 7, 5, 47, 58), 'result': '0.07576182008037409', 'result_long': None, 'result_double': None}] Qualite : 0.07576182008037409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30002683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_05_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30002683 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_P30002683_07-01-2026_05_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}" where mtr_portfolio_id = 30002683 and dashboard_run_id = 2866162 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`=30002683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118852, 0.07576182008037409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_05_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, '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 = 30003176 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': 4320493, 'mtr_portfolio_id': 30003176, 'created_at': datetime.datetime(2026, 1, 7, 5, 48, 59), 'result': '0.04453398212877572', 'result_long': None, 'result_double': None}] Qualite : 0.04453398212877572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30003176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30003176 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_P30003176_07-01-2026_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, 'pht': 3726}}" where mtr_portfolio_id = 30003176 and dashboard_run_id = 2866162 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`=30003176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118853, 0.04453398212877572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_05_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, '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 = 30003654 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': 4320494, 'mtr_portfolio_id': 30003654, 'created_at': datetime.datetime(2026, 1, 7, 5, 49, 28), 'result': '0.05995918110148013', 'result_long': None, 'result_double': None}] Qualite : 0.05995918110148013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30003654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003654_07-01-2026_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30003654 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_P30003654_07-01-2026_05_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, 'pht': 3726}}" where mtr_portfolio_id = 30003654 and dashboard_run_id = 2866162 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`=30003654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118855, 0.05995918110148013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003654_07-01-2026_05_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003673, '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 = 30004058 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': 4320495, 'mtr_portfolio_id': 30004058, 'created_at': datetime.datetime(2026, 1, 7, 5, 49, 34), 'result': '0.09219118715305291', 'result_long': None, 'result_double': None}] Qualite : 0.09219118715305291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30004058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004058_07-01-2026_05_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30004058 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_P30004058_07-01-2026_05_49_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, 'pht': 3726}}" where mtr_portfolio_id = 30004058 and dashboard_run_id = 2866162 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`=30004058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118856, 0.09219118715305291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004058_07-01-2026_05_49_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30004096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004107, '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 = 30004504 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': 4320496, 'mtr_portfolio_id': 30004504, 'created_at': datetime.datetime(2026, 1, 7, 5, 49, 57), 'result': '0.054357922348110085', 'result_long': None, 'result_double': None}] Qualite : 0.054357922348110085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30004504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004504_07-01-2026_05_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30004504 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_P30004504_07-01-2026_05_50_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, 'pht': 3726}}" where mtr_portfolio_id = 30004504 and dashboard_run_id = 2866162 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`=30004504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118857, 0.054357922348110085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30004504_07-01-2026_05_50_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30004511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30004512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30004513, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30004514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30004516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30004517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30004518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30004519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30004520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30004521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30004522, '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 = 30005091 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': 4320497, 'mtr_portfolio_id': 30005091, 'created_at': datetime.datetime(2026, 1, 7, 5, 50, 31), 'result': '0.09144972504083636', 'result_long': None, 'result_double': None}] Qualite : 0.09144972504083636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005091_07-01-2026_05_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005091 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_P30005091_07-01-2026_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, 'pht': 3726}}" where mtr_portfolio_id = 30005091 and dashboard_run_id = 2866162 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`=30005091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118858, 0.09144972504083636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005091_07-01-2026_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005135, '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 = 30005616 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': 4320498, 'mtr_portfolio_id': 30005616, 'created_at': datetime.datetime(2026, 1, 7, 5, 50, 41), 'result': '0.05525133397869822', 'result_long': None, 'result_double': None}] Qualite : 0.05525133397869822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005616_07-01-2026_05_50_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005616 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_P30005616_07-01-2026_05_50_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, 'pht': 3726}}" where mtr_portfolio_id = 30005616 and dashboard_run_id = 2866162 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`=30005616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118860, 0.05525133397869822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005616_07-01-2026_05_50_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30005617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30005620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005628, '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 = 30005785 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': 4320499, 'mtr_portfolio_id': 30005785, 'created_at': datetime.datetime(2026, 1, 7, 5, 51), 'result': '0.05482485725749406', 'result_long': None, 'result_double': None}] Qualite : 0.05482485725749406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30005785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_05_51_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30005785 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_P30005785_07-01-2026_05_51_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, 'pht': 3726}}" where mtr_portfolio_id = 30005785 and dashboard_run_id = 2866162 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`=30005785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118861, 0.05482485725749406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30005785_07-01-2026_05_51_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30005830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30005831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30005832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30005833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30005834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30005835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30005836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30005837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30005839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30005840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30005841, '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 = 30006433 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': 4320500, 'mtr_portfolio_id': 30006433, 'created_at': datetime.datetime(2026, 1, 7, 5, 51, 13), 'result': '0.05741888788846315', 'result_long': None, 'result_double': None}] Qualite : 0.05741888788846315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30006433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30006433_07-01-2026_05_51_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30006433 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_P30006433_07-01-2026_05_51_16.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30006459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006470, 'pht': 3726}}" where mtr_portfolio_id = 30006433 and dashboard_run_id = 2866162 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`=30006433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118862, 0.05741888788846315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30006433_07-01-2026_05_51_16.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30006459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006470, '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 = 30006862 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': 4320501, 'mtr_portfolio_id': 30006862, 'created_at': datetime.datetime(2026, 1, 7, 5, 59, 59), 'result': '0.06259747425914222', 'result_long': None, 'result_double': None}] Qualite : 0.06259747425914222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30006862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30006862_07-01-2026_06_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30006862 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_P30006862_07-01-2026_06_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30006923, 'pht': 3726}}" where mtr_portfolio_id = 30006862 and dashboard_run_id = 2866162 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`=30006862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118863, 0.06259747425914222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30006862_07-01-2026_06_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30006912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30006913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30006914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30006915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30006916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30006917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30006918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30006919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30006920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30006921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30006922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30006923, '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 = 30008133 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': 4320651, 'mtr_portfolio_id': 30008133, 'created_at': datetime.datetime(2026, 1, 7, 7, 12, 59), 'result': '0.01419840844167656', 'result_long': None, 'result_double': None}] Qualite : 0.01419840844167656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30008133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30008133_07-01-2026_07_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30008133 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_P30008133_07-01-2026_07_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30008134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30008135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30008136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30008137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30008138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30008139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30008140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30008141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30008142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30008143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30008144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30008145, 'pht': 3726}}" where mtr_portfolio_id = 30008133 and dashboard_run_id = 2866162 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`=30008133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118865, 0.01419840844167656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30008133_07-01-2026_07_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30008134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30008135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30008136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30008137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30008138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30008139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30008140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30008141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30008142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30008143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30008144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30008145, '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 = 30009247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30009247 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 30009247 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30009247 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30009247 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30009247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30009247_07-01-2026_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30009247 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_P30009247_07-01-2026_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30009251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30009252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30009253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30009254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30009255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30009256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30009257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30009258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30009259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30009260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30009261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30009262, 'pht': 3726}}" where mtr_portfolio_id = 30009247 and dashboard_run_id = 2866162 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 = 30009593 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': 4320830, 'mtr_portfolio_id': 30009593, 'created_at': datetime.datetime(2026, 1, 7, 8, 3), 'result': '0.03511085588339204', 'result_long': None, 'result_double': None}] Qualite : 0.03511085588339204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30009593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30009593_07-01-2026_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30009593 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_P30009593_07-01-2026_08_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30009597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30009598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30009599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30009600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30009601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30009602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30009603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30009604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30009605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30009606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30009607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30009608, 'pht': 3726}}" where mtr_portfolio_id = 30009593 and dashboard_run_id = 2866162 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`=30009593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118867, 0.03511085588339204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30009593_07-01-2026_08_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30009597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30009598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30009599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30009600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30009601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30009602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30009603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30009604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30009605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30009606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30009607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30009608, '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 = 30010197 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': 4320903, 'mtr_portfolio_id': 30010197, 'created_at': datetime.datetime(2026, 1, 7, 8, 33), 'result': '0.14204512058446242', 'result_long': None, 'result_double': None}] Qualite : 0.14204512058446242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30010197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30010197_07-01-2026_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30010197 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_P30010197_07-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30010202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010209, 'pht': 3726}}" where mtr_portfolio_id = 30010197 and dashboard_run_id = 2866162 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`=30010197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118868, 0.14204512058446242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30010197_07-01-2026_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30010202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010209, '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 = 30010468 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': 4320953, 'mtr_portfolio_id': 30010468, 'created_at': datetime.datetime(2026, 1, 7, 8, 46, 31), 'result': '0.07337793488127957', 'result_long': None, 'result_double': None}] Qualite : 0.07337793488127957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30010468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30010468_07-01-2026_08_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30010468 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_P30010468_07-01-2026_08_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30010475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010486, 'pht': 3726}}" where mtr_portfolio_id = 30010468 and dashboard_run_id = 2866162 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`=30010468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118869, 0.07337793488127957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30010468_07-01-2026_08_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 30010475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30010476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30010477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30010478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30010479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30010480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30010481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30010482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30010483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30010484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30010485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30010486, '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 = 30011725 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': 4321106, 'mtr_portfolio_id': 30011725, 'created_at': datetime.datetime(2026, 1, 7, 9, 46, 57), 'result': '0.0027404002051390555', 'result_long': None, 'result_double': None}] Qualite : 0.0027404002051390555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30011725 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30011725_07-01-2026_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30011725 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_P30011725_07-01-2026_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30011737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011740, 'pht': 3726}}" where mtr_portfolio_id = 30011725 and dashboard_run_id = 2866162 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`=30011725 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118870, 0.0027404002051390555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30011725_07-01-2026_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30011737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011740, '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 = 30011864 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': 4321127, 'mtr_portfolio_id': 30011864, 'created_at': datetime.datetime(2026, 1, 7, 10, 7, 1), 'result': '0.13208933847964371', 'result_long': None, 'result_double': None}] Qualite : 0.13208933847964371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30011864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30011864_07-01-2026_10_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30011864 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_P30011864_07-01-2026_10_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30011869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011880, 'pht': 3726}}" where mtr_portfolio_id = 30011864 and dashboard_run_id = 2866162 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`=30011864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118871, 0.13208933847964371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30011864_07-01-2026_10_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30011869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30011870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30011871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30011872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30011873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30011874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30011875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30011876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30011877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30011878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30011879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30011880, '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 = 30012493 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': 4321210, 'mtr_portfolio_id': 30012493, 'created_at': datetime.datetime(2026, 1, 7, 10, 34, 58), 'result': '0.14011543555550385', 'result_long': None, 'result_double': None}] Qualite : 0.14011543555550385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30012493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30012493_07-01-2026_10_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30012493 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_P30012493_07-01-2026_10_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30012497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30012498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30012499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30012500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30012501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30012502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30012503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30012504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30012505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30012506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30012507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30012508, 'pht': 3726}}" where mtr_portfolio_id = 30012493 and dashboard_run_id = 2866162 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`=30012493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118872, 0.14011543555550385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30012493_07-01-2026_10_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30012497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30012498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30012499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30012500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30012501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30012502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30012503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30012504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30012505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30012506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30012507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30012508, '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 = 30013967 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': 4321423, 'mtr_portfolio_id': 30013967, 'created_at': datetime.datetime(2026, 1, 7, 11, 48, 32), 'result': '0.029487182326342013', 'result_long': None, 'result_double': None}] Qualite : 0.029487182326342013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30013967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30013967_07-01-2026_11_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30013967 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_P30013967_07-01-2026_11_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30013971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30013972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30013973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30013974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30013975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30013976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30013977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30013978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30013979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30013980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30013981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30013982, 'pht': 3726}}" where mtr_portfolio_id = 30013967 and dashboard_run_id = 2866162 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`=30013967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118873, 0.029487182326342013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30013967_07-01-2026_11_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30013971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30013972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30013973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30013974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30013975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30013976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30013977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30013978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30013979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30013980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30013981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30013982, '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 = 30014128 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': 4321444, 'mtr_portfolio_id': 30014128, 'created_at': datetime.datetime(2026, 1, 7, 12, 2, 59), 'result': '0.030986524367860566', 'result_long': None, 'result_double': None}] Qualite : 0.030986524367860566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30014128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30014128_07-01-2026_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30014128 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_P30014128_07-01-2026_12_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30014142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30014143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30014144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30014145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30014146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30014147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30014148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30014149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30014150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30014151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30014152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30014153, 'pht': 3726}}" where mtr_portfolio_id = 30014128 and dashboard_run_id = 2866162 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`=30014128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118874, 0.030986524367860566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30014128_07-01-2026_12_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30014142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30014143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30014144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30014145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30014146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30014147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30014148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30014149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30014150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30014151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30014152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30014153, '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 = 30015597 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': 4321718, 'mtr_portfolio_id': 30015597, 'created_at': datetime.datetime(2026, 1, 7, 14, 2, 59), 'result': '0.0406502017629576', 'result_long': None, 'result_double': None}] Qualite : 0.0406502017629576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30015597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30015597_07-01-2026_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30015597 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_P30015597_07-01-2026_14_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30015611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015612, 'pht': 3726}}" where mtr_portfolio_id = 30015597 and dashboard_run_id = 2866162 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`=30015597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118875, 0.0406502017629576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30015597_07-01-2026_14_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30015611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015612, '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 = 30015792 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': 4321760, 'mtr_portfolio_id': 30015792, 'created_at': datetime.datetime(2026, 1, 7, 14, 18, 57), 'result': '0.04460728276283382', 'result_long': None, 'result_double': None}] Qualite : 0.04460728276283382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30015792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30015792_07-01-2026_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30015792 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_P30015792_07-01-2026_14_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30015802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015813, 'pht': 3726}}" where mtr_portfolio_id = 30015792 and dashboard_run_id = 2866162 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`=30015792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118876, 0.04460728276283382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30015792_07-01-2026_14_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30015802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30015803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30015804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30015805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30015806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30015807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30015808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30015809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30015810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30015811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30015812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30015813, '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 = 30016267 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': 4321798, 'mtr_portfolio_id': 30016267, 'created_at': datetime.datetime(2026, 1, 7, 14, 32, 59), 'result': '0.050502616469643165', 'result_long': None, 'result_double': None}] Qualite : 0.050502616469643165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30016267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30016267_07-01-2026_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30016267 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_P30016267_07-01-2026_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016317, 'pht': 3726}}" where mtr_portfolio_id = 30016267 and dashboard_run_id = 2866162 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`=30016267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118877, 0.050502616469643165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30016267_07-01-2026_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016317, '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 = 30016904 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': 4321858, 'mtr_portfolio_id': 30016904, 'created_at': datetime.datetime(2026, 1, 7, 14, 46, 58), 'result': '0.033514886236474216', 'result_long': None, 'result_double': None}] Qualite : 0.033514886236474216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30016904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30016904_07-01-2026_14_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30016904 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_P30016904_07-01-2026_14_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016936, 'pht': 3726}}" where mtr_portfolio_id = 30016904 and dashboard_run_id = 2866162 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`=30016904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118878, 0.033514886236474216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30016904_07-01-2026_14_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30016925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30016926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30016927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30016928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30016929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30016930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30016931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30016932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30016933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30016934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30016935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30016936, '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 = 30017547 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': 4321929, 'mtr_portfolio_id': 30017547, 'created_at': datetime.datetime(2026, 1, 7, 15, 2, 56), 'result': '0.05897271963902756', 'result_long': None, 'result_double': None}] Qualite : 0.05897271963902756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30017547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30017547_07-01-2026_15_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30017547 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_P30017547_07-01-2026_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30017555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30017556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30017557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30017558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30017559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30017560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30017561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30017562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30017563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30017564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30017565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30017566, 'pht': 3726}}" where mtr_portfolio_id = 30017547 and dashboard_run_id = 2866162 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`=30017547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118879, 0.05897271963902756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30017547_07-01-2026_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30017555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30017556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30017557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30017558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30017559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30017560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30017561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30017562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30017563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30017564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30017565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30017566, '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 = 30018015 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': 4322005, 'mtr_portfolio_id': 30018015, 'created_at': datetime.datetime(2026, 1, 7, 15, 17), 'result': '0.05064700904018109', 'result_long': None, 'result_double': None}] Qualite : 0.05064700904018109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30018015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30018015_07-01-2026_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30018015 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_P30018015_07-01-2026_15_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018059, 'pht': 3726}}" where mtr_portfolio_id = 30018015 and dashboard_run_id = 2866162 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`=30018015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118880, 0.05064700904018109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30018015_07-01-2026_15_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018059, '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 = 30018710 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': 4322065, 'mtr_portfolio_id': 30018710, 'created_at': datetime.datetime(2026, 1, 7, 15, 34, 59), 'result': '0.05353529490218719', 'result_long': None, 'result_double': None}] Qualite : 0.05353529490218719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30018710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30018710_07-01-2026_15_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30018710 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_P30018710_07-01-2026_15_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018738, 'pht': 3726}}" where mtr_portfolio_id = 30018710 and dashboard_run_id = 2866162 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`=30018710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118881, 0.05353529490218719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30018710_07-01-2026_15_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30018727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30018728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30018729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30018730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30018731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30018732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30018733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30018734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30018735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30018736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30018737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30018738, '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 = 30019466 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': 4322150, 'mtr_portfolio_id': 30019466, 'created_at': datetime.datetime(2026, 1, 7, 15, 54, 59), 'result': '0.08661749733974249', 'result_long': None, 'result_double': None}] Qualite : 0.08661749733974249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30019466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30019466_07-01-2026_15_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30019466 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_P30019466_07-01-2026_15_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30019474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30019475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30019476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30019477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30019478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30019479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30019480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30019481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30019482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30019483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30019484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30019485, 'pht': 3726}}" where mtr_portfolio_id = 30019466 and dashboard_run_id = 2866162 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`=30019466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118882, 0.08661749733974249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30019466_07-01-2026_15_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30019474, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30019475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30019476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30019477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30019478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30019479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30019480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30019481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30019482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30019483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30019484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30019485, '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 = 30020121 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': 4322220, 'mtr_portfolio_id': 30020121, 'created_at': datetime.datetime(2026, 1, 7, 16, 3, 31), 'result': '0.04863153590090776', 'result_long': None, 'result_double': None}] Qualite : 0.04863153590090776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30020121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30020121_07-01-2026_16_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30020121 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_P30020121_07-01-2026_16_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020141, 'pht': 3726}}" where mtr_portfolio_id = 30020121 and dashboard_run_id = 2866162 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`=30020121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118883, 0.04863153590090776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30020121_07-01-2026_16_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020141, '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 = 30020366 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': 4322254, 'mtr_portfolio_id': 30020366, 'created_at': datetime.datetime(2026, 1, 7, 16, 22, 59), 'result': '0.0546993632285205', 'result_long': None, 'result_double': None}] Qualite : 0.0546993632285205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30020366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30020366_07-01-2026_16_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30020366 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_P30020366_07-01-2026_16_23_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020387, 'pht': 3726}}" where mtr_portfolio_id = 30020366 and dashboard_run_id = 2866162 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`=30020366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118884, 0.0546993632285205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30020366_07-01-2026_16_23_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30020376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30020377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30020378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30020379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30020380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30020381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30020382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30020383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30020384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30020385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30020386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30020387, '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 = 30021157 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': 4322343, 'mtr_portfolio_id': 30021157, 'created_at': datetime.datetime(2026, 1, 7, 16, 33, 1), 'result': '0.0641264112184009', 'result_long': None, 'result_double': None}] Qualite : 0.0641264112184009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30021157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30021157_07-01-2026_16_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30021157 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_P30021157_07-01-2026_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021186, 'pht': 3726}}" where mtr_portfolio_id = 30021157 and dashboard_run_id = 2866162 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`=30021157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118885, 0.0641264112184009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30021157_07-01-2026_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021186, '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 = 30021437 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': 4322372, 'mtr_portfolio_id': 30021437, 'created_at': datetime.datetime(2026, 1, 7, 16, 48, 57), 'result': '0.0556395062731642', 'result_long': None, 'result_double': None}] Qualite : 0.0556395062731642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30021437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30021437_07-01-2026_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30021437 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_P30021437_07-01-2026_16_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021478, 'pht': 3726}}" where mtr_portfolio_id = 30021437 and dashboard_run_id = 2866162 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`=30021437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118886, 0.0556395062731642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30021437_07-01-2026_16_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 30021467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30021468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30021469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30021470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30021471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30021472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30021473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30021474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30021475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30021476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30021477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30021478, '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 = 30022124 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': 4322436, 'mtr_portfolio_id': 30022124, 'created_at': datetime.datetime(2026, 1, 7, 17, 4, 57), 'result': '0.06361911851027341', 'result_long': None, 'result_double': None}] Qualite : 0.06361911851027341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30022124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30022124_07-01-2026_17_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30022124 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_P30022124_07-01-2026_17_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022148, 'pht': 3726}}" where mtr_portfolio_id = 30022124 and dashboard_run_id = 2866162 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`=30022124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118887, 0.06361911851027341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30022124_07-01-2026_17_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022148, '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 = 30022669 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': 4322510, 'mtr_portfolio_id': 30022669, 'created_at': datetime.datetime(2026, 1, 7, 17, 16, 57), 'result': '0.058487561501514525', 'result_long': None, 'result_double': None}] Qualite : 0.058487561501514525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30022669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30022669_07-01-2026_17_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30022669 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_P30022669_07-01-2026_17_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022733, 'pht': 3726}}" where mtr_portfolio_id = 30022669 and dashboard_run_id = 2866162 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`=30022669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118888, 0.058487561501514525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30022669_07-01-2026_17_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30022723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30022724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30022725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30022726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30022727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30022728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30022729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30022730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30022731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30022732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30022733, '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 = 30023270 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': 4322591, 'mtr_portfolio_id': 30023270, 'created_at': datetime.datetime(2026, 1, 7, 17, 32, 31), 'result': '0.03814862088974762', 'result_long': None, 'result_double': None}] Qualite : 0.03814862088974762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30023270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30023270_07-01-2026_17_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30023270 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_P30023270_07-01-2026_17_32_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30023280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30023281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30023282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30023283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30023284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30023285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30023286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30023287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30023288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30023289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30023290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30023291, 'pht': 3726}}" where mtr_portfolio_id = 30023270 and dashboard_run_id = 2866162 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`=30023270 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19118889, 0.03814862088974762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30023270_07-01-2026_17_32_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30023280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30023281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30023282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30023283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30023284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30023285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30023286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30023287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30023288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30023289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30023290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30023291, '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 (29999365,29999670,30000240,30000381,30001385,30001625,30001993,30002683,30003176,30003654,30004058,30004504,30005091,30005616,30005785,30006433,30006862,30008133,30009247,30009593,30010197,30010468,30011725,30011864,30012493,30013967,30014128,30015597,30015792,30016267,30016904,30017547,30018015,30018710,30019466,30020121,30020366,30021157,30021437,30022124,30022669,30023270) result : ((1402725806,), (1402725885,), (1402725888,), (1402725954,), (1402725956,), (1402725957,), (1402725959,), (1402726002,), (1402726004,), (1402726006,), (1402726033,), (1402726034,), (1402726036,), (1402726038,), (1402726054,), (1402726055,), (1402726058,), (1402726060,), (1402726064,), (1402726067,), (1402726080,), (1402726081,), (1402726086,), (1402726091,), (1402726189,), (1402726205,), (1402726236,), (1402726249,), (1402726250,), (1402726251,), (1402726261,), (1402726451,), (1402726452,), (1402726482,), (1402726520,), (1402726557,), (1402726579,), (1402726590,), (1402726591,), (1402726592,), (1402726656,), (1402726658,), (1402726661,), (1402726663,), (1402726666,), (1402726670,), (1402726677,), (1402726679,), (1402726680,), (1402726682,), (1402726683,), (1402726684,), (1402726686,), (1402726688,), (1402726692,), (1402726695,), (1402726734,), (1402726726,), (1402726727,), (1402726728,), (1402726730,), (1402726746,), (1402726747,), (1402726748,), (1402726790,), (1402726791,), (1402726793,), (1402726794,), (1402726837,), (1402726838,), (1402726839,), (1402726841,), (1402726844,), (1402726927,), (1402726931,), (1402726933,), (1402726935,), (1402726948,), (1402726949,), (1402726950,), (1402727047,), (1402727048,), (1402727049,), (1402727052,), (1402727055,), (1402727058,), (1402727061,), (1402727062,), (1402727063,), (1402727084,), (1402727085,), (1402727087,), (1402727104,), (1402727105,), (1402727129,), (1402727140,), (1402727149,), (1402727152,), (1402727156,), (1402727227,), (1402727229,), (1402727363,), (1402727462,), (1402727384,), (1402727476,), (1402727537,), (1402727538,), (1402727555,), (1402727556,), (1402727558,), (1402727562,), (1402727565,), (1402727568,), (1402727571,), (1402727572,), (1402727574,), (1402727575,), (1402727583,), (1402727584,), (1402727585,), (1402727601,), (1402727602,), (1402727603,), (1402727604,), (1402727607,), (1402727620,), (1402727621,), (1402727623,), (1402727624,), (1402727625,), (1402727626,), (1402727639,), (1402727640,), (1402727641,), (1402727677,), (1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,), (1402728536,), (1402728539,), (1402728542,), (1402728546,), (1402728549,), (1402728557,), (1402732292,), (1402732293,), (1402732328,), (1402732356,), (1402732359,), (1402732365,), (1402732369,), (1402732374,), (1402732548,), (1402732549,), (1402732550,), (1402732552,), (1402732556,), (1402732572,), (1402732582,), (1402732593,), (1402732594,), (1402732596,), (1402732597,), (1402732627,), (1402732628,), (1402732629,), (1402732653,), (1402732682,), (1402732711,), (1402732712,), (1402732713,), (1402732716,), (1402732719,), (1402732722,), (1402732731,), (1402732732,), (1402732733,), (1402732734,), (1402732751,), (1402732752,), (1402732754,), (1402732765,), (1402732766,), (1402732770,), (1402732771,), (1402732774,), (1402732776,), (1402732803,), (1402732793,), (1402732795,), (1402732798,), (1402732800,), (1402732809,), (1402732811,), (1402732814,), (1402732839,), (1402732845,), (1402732847,), (1402732850,), (1402732853,), (1402732865,), (1402732866,), (1402732867,), (1402732868,), (1402732872,), (1402732900,), (1402732901,), (1402732903,), (1402732916,), (1402732917,), (1402732919,), (1402732920,), (1402732923,), (1402732925,), (1402732957,), (1402732958,), (1402732959,), (1402732960,), (1402732963,), (1402732966,), (1402732976,), (1402732978,), (1402732997,), (1402732999,), (1402733001,), (1402733002,), (1402733005,), (1402733008,), (1402733019,), (1402733021,), (1402733023,), (1402733036,), (1402733038,), (1402733040,), (1402733044,), (1402733046,), (1402733079,), (1402733081,), (1402733101,), (1402733105,), (1402733110,), (1402733118,), (1402733119,), (1402733122,), (1402733123,), (1402733125,), (1402733126,), (1402733129,), (1402733131,), (1402733177,), (1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,), (1402737458,), (1402737460,), (1402737462,), (1402737464,), (1402737467,), (1402737489,), (1402737496,), (1402737510,), (1402737511,), (1402737513,), (1402737514,), (1402737547,), (1402737539,), (1402737540,), (1402737542,), (1402737544,), (1402737569,), (1402737571,), (1402737572,), (1402737573,), (1402737577,), (1402737581,), (1402737602,), (1402737603,), (1402737624,), (1402737625,), (1402737626,), (1402737628,), (1402737665,), (1402737696,), (1402737697,), (1402737698,), (1402737713,), (1402737714,), (1402737716,), (1402737718,), (1402737721,), (1402737740,), (1402737758,), (1402737759,), (1402737760,), (1402737761,), (1402737785,), (1402737786,), (1402737797,), (1402737799,), (1402737802,), (1402737806,), (1402737811,), (1402737816,), (1402737827,), (1402737828,), (1402737829,), (1402737831,), (1402737835,), (1402737854,), (1402737855,), (1402737856,), (1402737857,), (1402737887,), (1402737890,), (1402737891,), (1402737893,), (1402737917,), (1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,), (1402738224,), (1402738226,), (1402738227,), (1402738230,), (1402738245,), (1402738247,), (1402738249,), (1402738252,), (1402738256,), (1402738263,), (1402738266,), (1402738268,), (1402738271,), (1402738275,), (1402738277,), (1402738298,), (1402738295,), (1402738297,), (1402738308,), (1402738309,), (1402738310,), (1402738311,), (1402738315,), (1402738318,), (1402738328,), (1402738330,), (1402738332,), (1402738335,), (1402738350,), (1402738353,), (1402738357,), (1402738388,), (1402738389,), (1402738391,), (1402738393,), (1402738403,), (1402738405,), (1402738409,), (1402738414,), (1402738418,), (1402738423,), (1402738436,), (1402738437,), (1402738438,), (1402738439,), (1402738441,), (1402738444,), (1402738447,), (1402738451,), (1402738456,), (1402738470,), (1402738471,), (1402738497,), (1402738498,), (1402738499,), (1402738501,), (1402738505,), (1402738507,), (1402738520,), (1402738521,), (1402738523,), (1402738525,), (1402738528,), (1402738541,), (1402738542,), (1402738544,), (1402738555,), (1402738557,), (1402738558,), (1402738562,), (1402738565,), (1402738592,), (1402738593,), (1402738595,), (1402738597,), (1402738613,), (1402738617,), (1402738621,), (1402738625,), (1402738628,), (1402738630,), (1402738662,), (1402738648,), (1402738651,), (1402738654,), (1402738658,), (1402738672,), (1402738674,), (1402738677,), (1402738680,), (1402738683,), (1402738686,), (1402738705,), (1402738714,), (1402738715,), (1402738717,), (1402738749,), (1402738751,), (1402738752,), (1402738755,), (1402738766,), (1402738767,), (1402738768,), (1402738769,), (1402738772,), (1402738785,), (1402738786,), (1402738787,), (1402738788,), (1402738813,), (1402738814,), (1402738815,), (1402738816,), (1402738819,), (1402738850,), (1402738851,), (1402738852,), (1402738854,), (1402738857,), (1402738859,), (1402738873,), (1402738874,), (1402738876,), (1402738878,), (1402738890,), (1402738892,), (1402738893,), (1402738907,), (1402738909,), (1402738911,), (1402738913,), (1402738915,), (1402738938,), (1402738940,), (1402738943,), (1402738945,), (1402738948,), (1402738950,), (1402738960,), (1402738962,), (1402738986,), (1402738988,), (1402738990,), (1402738992,), (1402739017,), (1402739019,), (1402739021,), (1402739054,), (1402739051,), (1402739052,), (1402739053,), (1402739064,), (1402739065,), (1402739094,), (1402739095,), (1402739097,), (1402739099,), (1402739101,), (1402739134,), (1402739135,), (1402739136,), (1402739138,), (1402739142,), (1402739170,), (1402739171,), (1402739172,), (1402739174,), (1402739178,), (1402739195,), (1402739196,), (1402739198,), (1402739199,), (1402739203,), (1402739232,), (1402739233,), (1402739235,), (1402739237,), (1402739240,), (1402739255,), (1402739256,), (1402739257,), (1402739259,), (1402739284,), (1402739291,), (1402739292,), (1402739294,), (1402739312,), (1402739326,), (1402739327,), (1402739331,), (1402739334,), (1402739357,), (1402739358,), (1402739359,), (1402739361,), (1402739365,), (1402739368,), (1402739378,), (1402739379,), (1402739380,), (1402739381,), (1402739385,), (1402739389,), (1402739414,), (1402739417,), (1402739419,), (1402739430,), (1402739431,), (1402739432,), (1402739433,), (1402739460,), (1402739463,), (1402739465,), (1402739467,), (1402739501,), (1402739491,), (1402739493,), (1402739494,), (1402739497,), (1402739519,), (1402739523,), (1402739525,), (1402739526,), (1402739540,), (1402739541,), (1402739542,), (1402739544,), (1402739547,), (1402739566,), (1402739568,), (1402739570,), (1402739573,), (1402739576,), (1402739579,), (1402739586,), (1402739587,), (1402739589,), (1402739606,), (1402739607,), (1402739609,), (1402739610,), (1402739614,), (1402739643,), (1402739646,), (1402739648,), (1402739653,), (1402739657,), (1402739672,), (1402739673,), (1402739675,), (1402739685,), (1402739686,), (1402739687,), (1402739688,), (1402739690,), (1402739692,), (1402739719,), (1402739720,), (1402739722,), (1402739724,), (1402739727,), (1402739729,), (1402739748,), (1402739751,), (1402739752,), (1402739754,), (1402739757,), (1402739759,), (1402739788,), (1402739789,), (1402739790,), (1402739793,), (1402739796,), (1402739798,), (1402739808,), (1402739972,), (1402739971,), (1402739994,), (1402740019,), (1402740020,), (1402740040,), (1402740041,), (1402740042,), (1402740045,), (1402740048,), (1402740051,), (1402740056,), (1402740057,), (1402740058,), (1402740059,), (1402740060,), (1402740061,), (1402740064,), (1402740083,), (1402740084,), (1402740086,), (1402740087,), (1402740102,), (1402740103,), (1402740104,), (1402740105,), (1402740116,), (1402740117,), (1402740118,), (1402740119,), (1402740128,), (1402740130,), (1402740132,), (1402740136,), (1402740140,), (1402740157,), (1402740158,), (1402740159,), (1402740160,), (1402740163,), (1402740645,), (1402740648,), (1402740651,), (1402740674,), (1402740709,), (1402740763,), (1402741047,), (1402741093,), (1402741125,), (1402741664,), (1402741344,), (1402741414,), (1402741489,), (1402741595,), (1402742243,), (1402742305,), (1402742364,), (1402742432,), (1402742476,), (1402742511,), (1402742774,), (1402742786,), (1402742789,), (1402742793,), (1402743290,), (1402743324,), (1402743334,), (1402743335,), (1402743517,), (1402743546,), (1402743562,), (1402743608,), (1402743648,), (1402743682,), (1402743837,), (1402743849,), (1402743859,), (1402743862,), (1402743884,), (1402743886,), (1402743888,), (1402743891,), (1402743911,), (1402743913,), (1402743915,), (1402743918,), (1402743921,), (1402743939,), (1402743941,), (1402743943,), (1402743946,), (1402743983,), (1402743985,), (1402743987,), (1402743990,), (1402743994,), (1402743995,), (1402744015,), (1402744017,), (1402744020,), (1402744024,), (1402744027,), (1402744049,), (1402744051,), (1402744053,), (1402744062,), (1402744090,), (1402744092,), (1402744095,), (1402744097,), (1402744098,), (1402744100,), (1402744129,), (1402744131,), (1402744133,), (1402744136,), (1402744139,), (1402744140,), (1402744153,), (1402744155,), (1402744205,), (1402744246,), (1402744196,), (1402744202,), (1402744241,), (1402744242,), (1402744243,), (1402744285,), (1402744287,), (1402744289,), (1402744319,), (1402744321,), (1402744324,), (1402744326,), (1402744356,), (1402744358,), (1402744360,), (1402744363,), (1402744379,), (1402744381,), (1402744383,), (1402744417,), (1402744418,), (1402744419,), (1402744421,), (1402744424,), (1402744427,), (1402744438,), (1402744439,), (1402744442,), (1402744445,), (1402744448,), (1402744452,), (1402744476,), (1402744484,), (1402744486,), (1402744488,), (1402744489,), (1402744491,), (1402744498,), (1402744501,), (1402744504,), (1402744511,), (1402744519,), (1402744528,), (1402744529,), (1402744531,), (1402744532,), (1402744565,), (1402744566,), (1402744567,), (1402744569,), (1402744573,), (1402744574,), (1402744590,), (1402744591,), (1402744592,), (1402744595,), (1402744598,), (1402744601,), (1402744626,), (1402744637,), (1402744665,), (1402744666,), (1402744667,), (1402744668,), (1402744671,), (1402744674,), (1402744707,), (1402744712,), (1402744713,), (1402744714,), (1402744718,), (1402744722,), (1402744748,), (1402744744,), (1402744746,), (1402744768,), (1402744770,), (1402744772,), (1402744774,), (1402744834,), (1402744841,), (1402744845,), (1402744849,), (1402744853,), (1402744873,), (1402744876,), (1402744879,), (1402744882,), (1402744885,), (1402744898,), (1402744900,), (1402744903,), (1402744944,), (1402744951,), (1402744954,), (1402744956,), (1402744988,), (1402744990,), (1402744993,), (1402744998,), (1402745002,), (1402745006,), (1402745044,), (1402745045,), (1402745047,), (1402745049,), (1402745064,), (1402745066,), (1402745068,), (1402745070,), (1402745073,), (1402745076,), (1402745115,), (1402745116,), (1402745118,), (1402745119,), (1402745122,), (1402745125,), (1402748303,), (1402752157,), (1402752172,), (1402752247,), (1402752265,), (1402752281,), (1402752282,), (1402752341,), (1402752344,), (1402752598,), (1402752765,), (1402755283,), (1402755370,), (1402755381,), (1402755577,), (1402755740,), (1402755795,), (1402755829,), (1402755864,), (1402755865,), (1402755896,), (1402755958,), (1402755959,), (1402755975,), (1402755976,), (1402755988,), (1402755989,), (1402756583,), (1402756958,), (1402761251,), (1402761379,), (1402761380,), (1402761552,), (1402761553,), (1402761554,), (1402761580,), (1402761581,), (1402761594,), (1402761608,), (1402761680,), (1402761679,), (1402761723,), (1402761814,), (1402761817,), (1402762297,), (1402762344,), (1402762414,), (1402762516,), (1402762767,), (1402762980,), (1402769082,), (1402769245,), (1402769309,), (1402769310,), (1402769391,), (1402769654,), (1402769762,), (1402769992,), (1402770192,), (1402770211,), (1402770212,), (1402770213,), (1402770222,), (1402770223,), (1402770247,), (1402770607,), (1402770643,), (1402770644,), (1402770651,), (1402770676,), (1402770750,), (1402770751,), (1402771332,), (1402773716,), (1402774740,), (1402774765,), (1402774842,), (1402775125,), (1402775451,), (1402775452,), (1402775465,), (1402775555,), (1402775556,), (1402775585,), (1402775681,), (1402780931,), (1402781103,), (1402781114,), (1402781120,), (1402781367,), (1402781540,), (1402781541,), (1402781697,), (1402781888,), (1402781889,), (1402782119,), (1402782141,), (1402782144,), (1402782167,), (1402782169,), (1402782174,), (1402782490,), (1402782626,), (1402783562,), (1402787988,), (1402788140,), (1402788204,), (1402788205,), (1402788207,), (1402788209,), (1402788212,), (1402788240,), (1402788257,), (1402788263,), (1402788267,), (1402788270,), (1402788303,), (1402788412,), (1402788415,), (1402788417,), (1402788435,), (1402788437,), (1402788477,), (1402788479,), (1402788481,), (1402788482,), (1402789001,), (1402789035,), (1402789182,), (1402789184,), (1402789281,), (1402789295,), (1402789357,), (1402789358,), (1402789360,), (1402789362,), (1402789365,), (1402789382,), (1402789384,), (1402789386,), (1402789388,), (1402789391,), (1402789395,), (1402789408,), (1402789410,), (1402789413,), (1402789780,), (1402789629,), (1402789662,), (1402789699,), (1402789736,), (1402790068,), (1402790122,), (1402790209,), (1402790247,), (1402790298,), (1402790568,), (1402790570,), (1402790590,), (1402790786,), (1402790788,), (1402790791,), (1402790794,), (1402790798,), (1402791154,), (1402791172,), (1402791192,), (1402791216,), (1402791218,), (1402791221,), (1402791256,), (1402791258,), (1402791316,), (1402791358,), (1402791361,), (1402791364,), (1402791588,), (1402791593,), (1402791703,), (1402791712,), (1402791713,), (1402791719,), (1402791725,), (1402791732,), (1402791870,), (1402791884,), (1402791904,), (1402791906,), (1402791927,), (1402791951,), (1402791954,), (1402791986,), (1402791988,), (1402792010,), (1402792074,), (1402792077,), (1402792080,), (1402792082,), (1402792104,), (1402792132,), (1402792134,), (1402792137,), (1402792156,), (1402792157,), (1402792158,), (1402792191,), (1402792195,), (1402792196,), (1402792199,), (1402792201,), (1402792202,), (1402792216,), (1402792218,), (1402792237,), (1402792271,), (1402792305,), (1402792430,), (1402792503,), (1402792511,), (1402792518,), (1402792530,), (1402792534,), (1402792549,), (1402792551,), (1402792553,), (1402792557,), (1402792562,), (1402792590,), (1402792592,), (1402792595,), (1402792615,), (1402792617,), (1402792619,), (1402792623,), (1402792665,), (1402792667,), (1402792669,), (1402792671,), (1402792675,), (1402792678,), (1402792686,), (1402792695,), (1402792698,), (1402792714,), (1402792724,), (1402792776,), (1402792809,), (1402792845,), (1402792982,), (1402793200,), (1402793198,), (1402793218,), (1402793219,), (1402793240,), (1402793251,), (1402793255,), (1402793256,), (1402793277,), (1402793279,), (1402793281,), (1402793284,), (1402793288,), (1402793290,), (1402793318,), (1402793320,), (1402793323,), (1402793326,), (1402793331,), (1402793360,), (1402793362,), (1402793390,), (1402793430,), (1402793466,), (1402793499,), (1402793501,), (1402793505,), (1402793509,), (1402793554,), (1402793556,), (1402793560,), (1402793563,), (1402793567,), (1402793596,), (1402793611,), (1402793616,), (1402793619,), (1402793623,), (1402793643,), (1402793644,), (1402793647,), (1402793650,), (1402793693,), (1402793696,), (1402793716,), (1402793720,), (1402793725,), (1402793729,), (1402793744,), (1402793746,), (1402793750,), (1402793753,), (1402793798,), (1402793800,), (1402793802,), (1402793953,), (1402793957,), (1402793960,), (1402793965,), (1402793968,), (1402794031,), (1402794023,), (1402794027,), (1402794440,), (1402794672,), (1402794752,), (1402794829,), (1402794897,), (1402795016,), (1402795479,), (1402795549,), (1402799051,), (1402799083,), (1402799137,), (1402799516,), (1402799618,), (1402799651,), (1402799666,), (1402799669,), (1402799829,), (1402799830,), (1402799833,), (1402799835,), (1402800050,), (1402800081,), (1402800112,), (1402800149,), (1402800444,), (1402800451,), (1402800466,), (1402800496,), (1402800529,), (1402800714,), (1402800716,), (1402800743,), (1402801139,), (1402801034,), (1402801069,), (1402801103,), (1402801623,), (1402801658,), (1402801690,), (1402801694,), (1402801698,), (1402801833,), (1402802015,), (1402802018,), (1402802023,), (1402802173,), (1402802270,), (1402802361,), (1402802471,), (1402803329,), (1402803331,), (1402803348,), (1402803353,), (1402803356,), (1402803658,), (1402803660,), (1402803740,), (1402803762,), (1402803796,), (1402804071,), (1402804077,), (1402804086,), (1402804116,), (1402804118,), (1402804120,), (1402804228,), (1402804246,), (1402804265,), (1402804271,), (1402804292,), (1402804307,), (1402804309,), (1402804311,), (1402804314,), (1402804318,), (1402804321,), (1402804347,), (1402804349,), (1402804352,), (1402804447,), (1402804483,), (1402804493,), (1402804517,), (1402804537,), (1402804578,), (1402804580,), (1402804583,), (1402804586,), (1402804590,), (1402804636,), (1402804879,), (1402804629,), (1402804631,), (1402804633,), (1402804776,), (1402804778,), (1402804796,), (1402804829,), (1402804832,), (1402804855,), (1402804877,), (1402804878,), (1402804883,), (1402804884,), (1402804886,), (1402804889,), (1402804892,), (1402805408,), (1402806658,), (1402806708,), (1402806516,), (1402806679,), (1402806680,), (1402806692,), (1402806698,), (1402806773,), (1402806823,), (1402806826,), (1402806828,), (1402806832,), (1402806838,), (1402806845,), (1402806847,), (1402806850,), (1402806864,), (1402806867,), (1402806870,), (1402806873,), (1402806876,), (1402806929,), (1402806964,), (1402806965,), (1402806967,), (1402806970,), (1402806974,), (1402806977,), (1402806995,), (1402807007,), (1402807017,), (1402807021,), (1402807034,), (1402807060,), (1402807052,), (1402807054,), (1402807057,), (1402807084,), (1402807085,), (1402807108,), (1402807145,), (1402807507,), (1402807539,), (1402807587,), (1402807655,), (1402807721,), (1402807792,), (1402808398,), (1402808400,), (1402808984,), (1402809062,), (1402809077,), (1402809096,), (1402809099,), (1402809101,), (1402809119,), (1402809120,), (1402809123,), (1402809141,), (1402809597,), (1402809629,), (1402809670,), (1402809924,), (1402809955,), (1402809994,), (1402810234,), (1402810238,), (1402810243,), (1402810254,), (1402810316,), (1402810318,), (1402810332,), (1402810355,), (1402810392,), (1402810394,), (1402810397,), (1402810399,), (1402810405,), (1402810798,), (1402812106,), (1402812096,), (1402812102,), (1402812150,), (1402812152,), (1402812154,), (1402812198,), (1402812231,), (1402812233,), (1402812235,), (1402812237,), (1402812241,), (1402812306,), (1402812313,), (1402812319,), (1402812322,), (1402812325,), (1402812328,), (1402812445,), (1402812451,), (1402812623,), (1402812628,), (1402812631,), (1402812633,), (1402812636,), (1402812711,), (1402812656,), (1402812657,), (1402812687,), (1402812704,), (1402812707,), (1402812823,), (1402812858,), (1402812860,), (1402812923,), (1402812924,), (1402812927,), (1402812930,), (1402812953,), (1402812955,), (1402812958,), (1402812961,), (1402812964,), (1402812984,), (1402812986,), (1402813008,), (1402813046,), (1402813079,), (1402813086,), (1402813104,), (1402813162,), (1402813165,), (1402813167,), (1402813169,), (1402813172,), (1402813174,), (1402813267,), (1402813282,), (1402813289,), (1402813305,), (1402813316,), (1402813335,), (1402813342,), (1402813344,), (1402813346,), (1402813348,), (1402813383,), (1402813389,), (1402813391,), (1402813394,), (1402813398,), (1402813400,), (1402813409,), (1402813410,), (1402813413,), (1402813416,), (1402813547,), (1402813582,), (1402813620,), (1402813926,), (1402813959,), (1402814171,), (1402814183,), (1402814199,), (1402814205,), (1402814238,), (1402814250,), (1402814253,), (1402814255,), (1402814301,), (1402814290,), (1402814292,), (1402814294,), (1402814297,), (1402814310,), (1402814312,), (1402814486,), (1402814488,), (1402814491,), (1402814511,), (1402814513,), (1402814515,), (1402814518,), (1402814544,), (1402814546,), (1402814548,), (1402814551,), (1402814555,), (1402814573,), (1402814575,), (1402814577,), (1402814608,), (1402814825,), (1402814829,), (1402814967,), (1402814969,), (1402815020,), (1402815022,), (1402815631,), (1402815692,), (1402815755,), (1402815808,), (1402815960,), (1402815961,), (1402815996,), (1402816001,), (1402816031,), (1402816036,), (1402816227,), (1402816610,), (1402816184,), (1402816192,), (1402816196,), (1402816200,), (1402816480,), (1402816512,), (1402816529,), (1402816532,), (1402816548,), (1402816581,), (1402816608,), (1402816609,), (1402816615,), (1402816617,), (1402816619,), (1402816637,), (1402816639,), (1402816644,), (1402816646,), (1402816650,), (1402816652,), (1402816659,), (1402816667,), (1402816671,), (1402816673,), (1402816687,), (1402816717,), (1402816719,), (1402816721,), (1402816724,), (1402816728,), (1402816731,), (1402816741,), (1402816743,), (1402816745,), (1402816748,), (1402816862,), (1402816863,), (1402816865,), (1402816868,), (1402816871,), (1402816873,), (1402816876,), (1402816878,), (1402816880,), (1402816883,), (1402816894,), (1402816896,), (1402816904,), (1402816972,), (1402816974,), (1402816976,), (1402816979,), (1402816983,), (1402816986,), (1402817177,), (1402817178,), (1402817181,), (1402817184,), (1402817247,), (1402817265,), (1402817270,), (1402817273,), (1402817277,), (1402817341,), (1402817585,), (1402817581,), (1402817583,), (1402817612,), (1402817613,), (1402817615,), (1402817618,), (1402817653,), (1402817809,), (1402817982,), (1402817984,), (1402817986,), (1402817989,), (1402817992,), (1402818006,), (1402818007,), (1402818009,), (1402818010,), (1402818138,), (1402818139,), (1402818210,), (1402818242,), (1402818275,), (1402818311,), (1402818385,), (1402818386,), (1402818388,), (1402818390,), (1402818420,), (1402818423,), (1402818424,), (1402818425,), (1402818443,), (1402818534,), (1402818562,), (1402818570,), (1402818579,), (1402818588,), (1402818689,), (1402818692,), (1402818695,), (1402818699,), (1402818703,), (1402818718,), (1402818724,), (1402818727,), (1402818730,), (1402818732,), (1402818734,), (1402818738,), (1402818740,), (1402818741,), (1402818761,), (1402818763,), (1402818776,), (1402818787,), (1402818903,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07012026': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30023270]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] map_info['map_portfolio_photo'] : {30023270: [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718, 1402818703, 1402818699, 1402818695, 1402818692, 1402818689, 1402818588, 1402818579, 1402818570, 1402818562, 1402818534, 1402818443, 1402818425, 1402818424, 1402818423, 1402818420, 1402818390, 1402818388, 1402818386, 1402818385, 1402818311, 1402818275, 1402818242, 1402818210, 1402818139, 1402818138, 1402818010, 1402818009, 1402818007, 1402818006, 1402817992, 1402817989, 1402817986, 1402817984, 1402817982, 1402817809, 1402817653, 1402817618, 1402817615, 1402817613, 1402817612, 1402817583, 1402817581]} final : True mtd_id 4302 list_pids : [1402818903, 1402818787, 1402818776, 1402818763, 1402818761, 1402818741, 1402818740, 1402818738, 1402818734, 1402818732, 1402818730, 1402818727, 1402818724, 1402818718] Looping around the photos to save general results len do output : 1 /30023270Didn'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, '4322591') ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591') ('4302', None, None, None, None, None, None, None, '4322591') ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591') 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', None, '30023270', 'None', None, None, None, None, '4322591'), ('4302', '30023270', '1402818903', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818787', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818776', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818763', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818761', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818741', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818740', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818738', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818734', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818732', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818730', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818727', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818724', None, None, None, None, None, '4322591'), ('4302', '30023270', '1402818718', None, None, None, None, None, '4322591')] time used for this insertion : 0.019782304763793945 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.279980182647705 time spend to save output : 0.02001500129699707 total time spend for step 5 : 3.299995183944702 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 (4322591) 2.96user 1.52system 0:18.59elapsed 24%CPU (0avgtext+0avgdata 169128maxresident)k 36784inputs+17720outputs (187major+89752minor)pagefaults 0swaps