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 : 981553 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 (3512632) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3512632) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914094 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3512632'] with mtr_portfolio_ids : ['25914094'] and first list_photo_ids : [] new path : /proc/981553/ Name: python3 Umask: 0002 State: R (running) Tgid: 981553 Ngid: 0 Pid: 981553 PPid: 981552 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 981553 NSpid: 981553 NSpgid: 978146 NSsid: 978146 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100436 kB VmRSS: 100436 kB RssAnon: 59816 kB RssFile: 40620 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 111 nonvoluntary_ctxt_switches: 118 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '981553', 'Ngid': '0', 'Pid': '981553', 'PPid': '981552', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '981553', 'NSpid': '981553', 'NSpgid': '978146', 'NSsid': '978146', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100436 kB', 'VmRSS': '100436 kB', 'RssAnon': '59816 kB', 'RssFile': '40620 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '111', 'nonvoluntary_ctxt_switches': '118'} ('datou_batch_current', '981553', '1106964', '0', '1106964', '865716', '100436', b'', 'marlene', '3512632') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25914094) 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 (3512632 ) ) 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 (25914094) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376616399, 'portfolio_id': 25914094}, {'photo_id': 1376616383, 'portfolio_id': 25914094}, {'photo_id': 1376616380, 'portfolio_id': 25914094}, {'photo_id': 1376616375, 'portfolio_id': 25914094}, {'photo_id': 1376616364, 'portfolio_id': 25914094}, {'photo_id': 1376616359, 'portfolio_id': 25914094}, {'photo_id': 1376616354, 'portfolio_id': 25914094}, {'photo_id': 1376616353, 'portfolio_id': 25914094}, {'photo_id': 1376616348, 'portfolio_id': 25914094}, {'photo_id': 1376616346, 'portfolio_id': 25914094}, {'photo_id': 1376616327, 'portfolio_id': 25914094}, {'photo_id': 1376616315, 'portfolio_id': 25914094}, {'photo_id': 1376616308, 'portfolio_id': 25914094}, {'photo_id': 1376616302, 'portfolio_id': 25914094}, {'photo_id': 1376616293, 'portfolio_id': 25914094}, {'photo_id': 1376616135, 'portfolio_id': 25914094}, {'photo_id': 1376616111, 'portfolio_id': 25914094}, {'photo_id': 1376616088, 'portfolio_id': 25914094}, {'photo_id': 1376616063, 'portfolio_id': 25914094}, {'photo_id': 1376616038, 'portfolio_id': 25914094}, {'photo_id': 1376615911, 'portfolio_id': 25914094}, {'photo_id': 1376615908, 'portfolio_id': 25914094}, {'photo_id': 1376615850, 'portfolio_id': 25914094}, {'photo_id': 1376615825, 'portfolio_id': 25914094}, {'photo_id': 1376615823, 'portfolio_id': 25914094}, {'photo_id': 1376615807, 'portfolio_id': 25914094}, {'photo_id': 1376615671, 'portfolio_id': 25914094}, {'photo_id': 1376615667, 'portfolio_id': 25914094}, {'photo_id': 1376615641, 'portfolio_id': 25914094}, {'photo_id': 1376615617, 'portfolio_id': 25914094}, {'photo_id': 1376615589, 'portfolio_id': 25914094}, {'photo_id': 1376615562, 'portfolio_id': 25914094}, {'photo_id': 1376615256, 'portfolio_id': 25914094}, {'photo_id': 1376615254, 'portfolio_id': 25914094}, {'photo_id': 1376615251, 'portfolio_id': 25914094}, {'photo_id': 1376615248, 'portfolio_id': 25914094}, {'photo_id': 1376614235, 'portfolio_id': 25914094}, {'photo_id': 1376614131, 'portfolio_id': 25914094}, {'photo_id': 1376614026, 'portfolio_id': 25914094}, {'photo_id': 1376614000, 'portfolio_id': 25914094}, {'photo_id': 1376613974, 'portfolio_id': 25914094}, {'photo_id': 1376613949, 'portfolio_id': 25914094}, {'photo_id': 1376613921, 'portfolio_id': 25914094}, {'photo_id': 1376613897, 'portfolio_id': 25914094}, {'photo_id': 1376613623, 'portfolio_id': 25914094}, {'photo_id': 1376613619, 'portfolio_id': 25914094}, {'photo_id': 1376613616, 'portfolio_id': 25914094}, {'photo_id': 1376613613, 'portfolio_id': 25914094}, {'photo_id': 1376613611, 'portfolio_id': 25914094}, {'photo_id': 1376613609, 'portfolio_id': 25914094}, {'photo_id': 1376613560, 'portfolio_id': 25914094}, {'photo_id': 1376613558, 'portfolio_id': 25914094}, {'photo_id': 1376613555, 'portfolio_id': 25914094}, {'photo_id': 1376613553, 'portfolio_id': 25914094}, {'photo_id': 1376613549, 'portfolio_id': 25914094}, {'photo_id': 1376613545, 'portfolio_id': 25914094}, {'photo_id': 1376613517, 'portfolio_id': 25914094}, {'photo_id': 1376613515, 'portfolio_id': 25914094}, {'photo_id': 1376613512, 'portfolio_id': 25914094}, {'photo_id': 1376613509, 'portfolio_id': 25914094}, {'photo_id': 1376613476, 'portfolio_id': 25914094}, {'photo_id': 1376613474, 'portfolio_id': 25914094}, {'photo_id': 1376613471, 'portfolio_id': 25914094}, {'photo_id': 1376613467, 'portfolio_id': 25914094}] map_portfolio_id_photo_id: {25914094: [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293, 1376616135, 1376616111, 1376616088, 1376616063, 1376616038, 1376615911, 1376615908, 1376615850, 1376615825, 1376615823, 1376615807, 1376615671, 1376615667, 1376615641, 1376615617, 1376615589, 1376615562, 1376615256, 1376615254, 1376615251, 1376615248, 1376614235, 1376614131, 1376614026, 1376614000, 1376613974, 1376613949, 1376613921, 1376613897, 1376613623, 1376613619, 1376613616, 1376613613, 1376613611, 1376613609, 1376613560, 1376613558, 1376613555, 1376613553, 1376613549, 1376613545, 1376613517, 1376613515, 1376613512, 1376613509, 1376613476, 1376613474, 1376613471, 1376613467]} ##### 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.01625204086303711 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Aug 12 14:16:55 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25914094) 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 : 25914094 get user id for portfolio 25914094 get sub ptf for main ptf 25914094, type 3726 and hashtags ['environnement', 'papier', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'mal_croppe', 'flou', 'metal', 'Carton_brun', 'plastique', '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`=25914094 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','flou','metal','Carton_brun','plastique','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`=25914094 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','flou','metal','Carton_brun','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25914094, 'sub_port_id': 25914112, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458528, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'papier': {'main_port_id': 25914094, 'sub_port_id': 25914113, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458529, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'flou': {'main_port_id': 25914094, 'sub_port_id': 25914114, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458530, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'autre_refus': {'main_port_id': 25914094, 'sub_port_id': 25914115, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458531, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'plastique': {'main_port_id': 25914094, 'sub_port_id': 25914116, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458532, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'environnement': {'main_port_id': 25914094, 'sub_port_id': 25914117, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458533, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'cartonnette': {'main_port_id': 25914094, 'sub_port_id': 25914118, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458534, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'metal': {'main_port_id': 25914094, 'sub_port_id': 25914119, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458535, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'kraft': {'main_port_id': 25914094, 'sub_port_id': 25914120, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458536, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25914094, 'sub_port_id': 25914121, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458537, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'Carton_gris': {'main_port_id': 25914094, 'sub_port_id': 25914122, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458538, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}, 'mal_croppe': {'main_port_id': 25914094, 'sub_port_id': 25914123, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458539, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914112 , 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=25914094 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 (25914112) result : ((1376613604,), (1376613605,), (1376615110,), (1376615112,), (1376615545,), (1376615547,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914113 , 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=25914094 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 (25914113) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914114 , 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=25914094 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 (25914114) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914115 , 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=25914094 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 (25914115) result : ((1376615522,), (1376615902,), (1376616268,), (1376616384,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914116 , 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=25914094 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 (25914116) result : ((1376613606,), (1376613607,), (1376615555,), (1376615557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914117 , 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=25914094 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 (25914117) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914118 , 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=25914094 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 (25914118) result : ((1376613602,), (1376613603,), (1376614188,), (1376615099,), (1376615101,), (1376615904,), (1376616273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914119 , 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=25914094 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 (25914119) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914120 , 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=25914094 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 (25914120) result : ((1376615567,), (1376615569,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914121 , 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=25914094 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 (25914121) result : ((1376613598,), (1376613599,), (1376614166,), (1376614168,), (1376615513,), (1376615515,), (1376616267,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914122 , 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=25914094 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 (25914122) result : ((1376613600,), (1376613601,), (1376614180,), (1376614182,), (1376615087,), (1376615089,), (1376615532,), (1376615534,), (1376615536,), (1376615903,), (1376616271,), (1376616272,), (1376616385,), (1376616386,), (1376616387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25914123 , 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=25914094 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 (25914123) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25914094) result : ((1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) 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 (1376614000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25914094 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','flou','metal','Carton_brun','plastique','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`=25914094 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','flou','metal','Carton_brun','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25914094, 'sub_port_id': 25914125, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458540, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'papier': {'main_port_id': 25914094, 'sub_port_id': 25914126, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458541, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'flou': {'main_port_id': 25914094, 'sub_port_id': 25914127, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458542, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'autre_refus': {'main_port_id': 25914094, 'sub_port_id': 25914128, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458543, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'plastique': {'main_port_id': 25914094, 'sub_port_id': 25914129, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458544, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'environnement': {'main_port_id': 25914094, 'sub_port_id': 25914130, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458545, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'cartonnette': {'main_port_id': 25914094, 'sub_port_id': 25914131, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458546, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'metal': {'main_port_id': 25914094, 'sub_port_id': 25914132, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458547, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'kraft': {'main_port_id': 25914094, 'sub_port_id': 25914133, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458548, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25914094, 'sub_port_id': 25914134, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458549, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'Carton_gris': {'main_port_id': 25914094, 'sub_port_id': 25914135, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458550, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}, 'mal_croppe': {'main_port_id': 25914094, 'sub_port_id': 25914136, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17458551, 'last_updated_at': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 12, 14, 14, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 12, 14, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25914136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25914123 lien utilise dans velours : https://www.fotonower.com/velours/25914125,25914126,25914127,25914128,25914129,25914130,25914131,25914132,25914133,25914134,25914135,25914136?tags=Carton_brun,papier,flou,autre_refus,plastique,environnement,cartonnette,metal,kraft,Teint_Dans_La_Masse,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25914094]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] map_info['map_portfolio_photo'] : {25914094: [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293, 1376616135, 1376616111, 1376616088, 1376616063, 1376616038, 1376615911, 1376615908, 1376615850, 1376615825, 1376615823, 1376615807, 1376615671, 1376615667, 1376615641, 1376615617, 1376615589, 1376615562, 1376615256, 1376615254, 1376615251, 1376615248, 1376614235, 1376614131, 1376614026, 1376614000, 1376613974, 1376613949, 1376613921, 1376613897, 1376613623, 1376613619, 1376613616, 1376613613, 1376613611, 1376613609, 1376613560, 1376613558, 1376613555, 1376613553, 1376613549, 1376613545, 1376613517, 1376613515, 1376613512, 1376613509, 1376613476, 1376613474, 1376613471, 1376613467]} final : False mtd_id 4302 list_pids : [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] Looping around the photos to save general results len do output : 1 /25914094. 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, '3512632') ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25914094', "{'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123}", None, None, None, None, '3512632'), ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632')] time used for this insertion : 0.013691186904907227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4429135322570801 time spend to save output : 0.014013290405273438 total time spend for step 1 : 0.4569268226623535 step2:final Tue Aug 12 14:16:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25914094) 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 25914094 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376613476,1376613474,1376613471,1376613467,1376613517,1376613515,1376613512,1376613509,1376613560,1376613558,1376613555,1376613553,1376613549,1376613545,1376613623,1376614131,1376613619,1376614026,1376613616,1376614000,1376613974,1376613613,1376613949,1376613611,1376613609,1376613921,1376613897,1376615256,1376614235,1376615254,1376615251,1376615248,1376615671,1376615667,1376615641,1376615617,1376615589,1376615562,1376615850,1376615825,1376615823,1376615807,1376615911,1376615908,1376616135,1376616111,1376616088,1376616063,1376616038,1376616383,1376616327,1376616380,1376616315,1376616308,1376616375,1376616364,1376616302,1376616359,1376616293,1376616354,1376616353,1376616348,1376616346,1376616399); 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([25914094]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} new output for save of step final : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] map_info['map_portfolio_photo'] : {25914094: [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293, 1376616135, 1376616111, 1376616088, 1376616063, 1376616038, 1376615911, 1376615908, 1376615850, 1376615825, 1376615823, 1376615807, 1376615671, 1376615667, 1376615641, 1376615617, 1376615589, 1376615562, 1376615256, 1376615254, 1376615251, 1376615248, 1376614235, 1376614131, 1376614026, 1376614000, 1376613974, 1376613949, 1376613921, 1376613897, 1376613623, 1376613619, 1376613616, 1376613613, 1376613611, 1376613609, 1376613560, 1376613558, 1376613555, 1376613553, 1376613549, 1376613545, 1376613517, 1376613515, 1376613512, 1376613509, 1376613476, 1376613474, 1376613471, 1376613467]} final : False mtd_id 4302 list_pids : [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] Looping around the photos to save general results len do output : 15 /1376616399.Didn't retrieve data . /1376616383.Didn't retrieve data . /1376616380.Didn't retrieve data . /1376616375.Didn't retrieve data . /1376616364.Didn't retrieve data . /1376616359.Didn't retrieve data . /1376616354.Didn't retrieve data . /1376616353.Didn't retrieve data . /1376616348.Didn't retrieve data . /1376616346.Didn't retrieve data . /1376616327.Didn't retrieve data . /1376616315.Didn't retrieve data . /1376616308.Didn't retrieve data . /1376616302.Didn't retrieve data . /1376616293.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, '3512632') ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25914094', '1376616399', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616383', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616380', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616375', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616364', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616359', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616354', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616353', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616348', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616346', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616327', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616315', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616308', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616302', '0.04456258357942308', None, None, None, None, '3512632'), ('4302', '25914094', '1376616293', '0.04456258357942308', None, None, None, None, '3512632')] time used for this insertion : 0.013391971588134766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06594705581665039 time spend to save output : 0.014060258865356445 total time spend for step 2 : 0.08000731468200684 step3:velours_tree Tue Aug 12 14:16:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25914094: [{'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123}]} input_args_next_step : {25914094: ()} output_args : {25914094: [{'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123}]} args : 25914094 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 : ({'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25914094) 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([25914094]) 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.34235477447509766 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.3424091339111328 step4:send_mail_cod Tue Aug 12 14:16:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} input_args_next_step : {1376616399: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616399 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616383 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616380 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616375 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616364 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616359 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616354 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616353 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616348 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616346 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616327 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616315 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616308 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616302 depend.output_id : 0 input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ()} output_args : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',)} args : 1376616293 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 : {25914094: [{'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123}]} input_args_next_step : {1376616399: ('0.04456258357942308',), 1376616383: ('0.04456258357942308',), 1376616380: ('0.04456258357942308',), 1376616375: ('0.04456258357942308',), 1376616364: ('0.04456258357942308',), 1376616359: ('0.04456258357942308',), 1376616354: ('0.04456258357942308',), 1376616353: ('0.04456258357942308',), 1376616348: ('0.04456258357942308',), 1376616346: ('0.04456258357942308',), 1376616327: ('0.04456258357942308',), 1376616315: ('0.04456258357942308',), 1376616308: ('0.04456258357942308',), 1376616302: ('0.04456258357942308',), 1376616293: ('0.04456258357942308',), 25914094: ()} output_args : {25914094: [{'Carton_brun': 25914112, 'papier': 25914113, 'flou': 25914114, 'autre_refus': 25914115, 'plastique': 25914116, 'environnement': 25914117, 'cartonnette': 25914118, 'metal': 25914119, 'kraft': 25914120, 'Teint_Dans_La_Masse': 25914121, 'Carton_gris': 25914122, 'mal_croppe': 25914123}]} args : 25914094 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.04456258357942308',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25914094) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1376616399,1376616383,1376616380,1376616375,1376616364,1376616359,1376616354,1376616353,1376616348,1376616346,1376616327,1376616315,1376616308,1376616302,1376616293) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376616293 begin to download photo : 1376616327 begin to download photo : 1376616354 begin to download photo : 1376616380 download finish for photo 1376616293 begin to download photo : 1376616302 download finish for photo 1376616327 begin to download photo : 1376616346 download finish for photo 1376616380 begin to download photo : 1376616383 download finish for photo 1376616354 begin to download photo : 1376616359 download finish for photo 1376616302 begin to download photo : 1376616308 download finish for photo 1376616346 begin to download photo : 1376616348 download finish for photo 1376616383 begin to download photo : 1376616399 download finish for photo 1376616359 begin to download photo : 1376616364 download finish for photo 1376616348 begin to download photo : 1376616353 download finish for photo 1376616308 begin to download photo : 1376616315 download finish for photo 1376616364 begin to download photo : 1376616375 download finish for photo 1376616315 download finish for photo 1376616399 download finish for photo 1376616353 download finish for photo 1376616375 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette259141141755001017/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P25914094_12-08-2025_14_16_57.pdf 25914114 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259141141755001017 25914115 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376615522: '1755000566_4169466_1376613553_2e7f65c885d910a3636afc43b8f019f2_rle_crop_3912123648_0.png', 1376615902: '1755000684_4173054_1376615254_74ac0aa80f1576a7f447346770532d6c_rle_crop_3912124069_0.png', 1376616268: '1755000806_4176682_1376615823_f11ab036f208a83028237d1aa951f2c1_rle_crop_3912124604_0.png', 1376616384: '1755000926_4179325_1376616063_900be1c855220ccf1a6a01f099d7c676_rle_crop_3912124750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/f6a623d6e171acb861adebfe79fa4f15_96137090.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/8be924e3c7a0cc4b255788d7b6b36cb3_95345145.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/bd8e36492d0d7cfca8c9e3587ef337ce_11561556.png change filename to text .imagette259141151755001017/ imagette259141151755001017/1755000684_4173054_1376615254_74ac0aa80f1576a7f447346770532d6c_rle_crop_3912124069_0.png.png imagette259141151755001017/1755000926_4179325_1376616063_900be1c855220ccf1a6a01f099d7c676_rle_crop_3912124750_0.png.png imagette259141151755001017/1755000566_4169466_1376613553_2e7f65c885d910a3636afc43b8f019f2_rle_crop_3912123648_0.png.png imagette259141151755001017/1755000806_4176682_1376615823_f11ab036f208a83028237d1aa951f2c1_rle_crop_3912124604_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/3fb250b1d1cfcb4060c229537e39e70b_74222426.png imagette259141151755001017 25914116 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376613606: '1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114676_0.png', 1376613607: '1755000206_4159428_1376613471_7922946dcd21ad3cef252db500556916_rle_crop_3912114696_0.png', 1376615555: '1755000566_4169466_1376613558_2226244770dcf87e8eb1578648259eee_rle_crop_3912123630_0.png', 1376615557: '1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123642_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/fb3c0710d80084ac785b739ca4aead90_64556703.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/24abaa846778a0520fce685f01c1f34b_77210894.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/8b2e875c59d8e62efd6172546fb244e0_31759270.png change filename to text .imagette259141161755001017/ imagette259141161755001017/1755000206_4159428_1376613471_7922946dcd21ad3cef252db500556916_rle_crop_3912114696_0.png.png imagette259141161755001017/1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123642_0.png.png imagette259141161755001017/1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114676_0.png.png imagette259141161755001017/1755000566_4169466_1376613558_2226244770dcf87e8eb1578648259eee_rle_crop_3912123630_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/d2d3e061a6ca8be25dde8a958749d067_72738378.png imagette259141161755001017 25914118 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376613602: '1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114674_0.png', 1376613603: '1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114713_0.png', 1376614188: '1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118985_0.png', 1376615099: '1755000445_4166530_1376614026_09e19af17879a2f0ab76d3344aaa17fd_rle_crop_3912122898_0.png', 1376615101: '1755000445_4166530_1376613619_5dcfb6428b7d776b073e712b43bcbf1b_rle_crop_3912123018_0.png', 1376615904: '1755000684_4173054_1376615248_681139c6d3e199b685ccdddb9006b118_rle_crop_3912124093_0.png', 1376616273: '1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/1d354effe35d8a2cbcb241b53d24174b_37820011.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/21c5e553ae8226af5763d5691cb52f67_38468146.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/a5e0e19f46ad7d922f8ac9f7a1cc1510_63036654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/db4fad126788704807ab77b1764c726e_68192033.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/db4fad126788704807ab77b1764c726e_13748819.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/6811d60a8c3ee2ef864efe72357f09e0_66291211.png change filename to text .imagette259141181755001017/ imagette259141181755001017/1755000445_4166530_1376613619_5dcfb6428b7d776b073e712b43bcbf1b_rle_crop_3912123018_0.png.png imagette259141181755001017/1755000684_4173054_1376615248_681139c6d3e199b685ccdddb9006b118_rle_crop_3912124093_0.png.png imagette259141181755001017/1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114713_0.png.png imagette259141181755001017/1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124610_0.png.png imagette259141181755001017/1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118985_0.png.png imagette259141181755001017/1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114674_0.png.png imagette259141181755001017/1755000445_4166530_1376614026_09e19af17879a2f0ab76d3344aaa17fd_rle_crop_3912122898_0.png.png imagette259141191755001017/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/594881c28f17eb4448762fed5a75fdf2_78605742.png imagette259141181755001017 25914119 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259141191755001017 25914120 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376615567: '1755000566_4169466_1376614131_04cfbebb7ba39ba53f1d747fb0532bd3_rle_crop_3912123607_0.png', 1376615569: '1755000566_4169466_1376613623_578b5f937d55c59cad2c693a1fd982c9_rle_crop_3912123619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/7fc59094fb8616c47da7e61a6f7a82bf_79528766.png change filename to text .imagette259141201755001017/ imagette259141201755001017/1755000566_4169466_1376614131_04cfbebb7ba39ba53f1d747fb0532bd3_rle_crop_3912123607_0.png.png imagette259141201755001017/1755000566_4169466_1376613623_578b5f937d55c59cad2c693a1fd982c9_rle_crop_3912123619_0.png.png imagette259141231755001018/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/7fc59094fb8616c47da7e61a6f7a82bf_45632783.png imagette259141201755001017 25914123 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259141231755001018 25914112 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376613604: '1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114682_0.png', 1376613605: '1755000206_4159428_1376613471_7922946dcd21ad3cef252db500556916_rle_crop_3912114703_0.png', 1376615110: '1755000445_4166530_1376613949_5c5825d8ab2dbacace1c57f8de60769b_rle_crop_3912122932_0.png', 1376615112: '1755000445_4166530_1376613611_81b046005a1ead6bda29492d010a207f_rle_crop_3912123052_0.png', 1376615545: '1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123641_0.png', 1376615547: '1755000566_4169466_1376613553_2e7f65c885d910a3636afc43b8f019f2_rle_crop_3912123652_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/82a1e7fb5583f0688d0aea737a206250_69192583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/8a84acbe75f5d83d141f5050c78515dc_52134062.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/04a74c992e2ef79f85a20d0c7c6ff21a_55183759.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/04a74c992e2ef79f85a20d0c7c6ff21a_81431755.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/45657748eb392b16427437343ccec2be_16175257.png change filename to text .imagette259141121755001018/ imagette259141121755001018/1755000445_4166530_1376613611_81b046005a1ead6bda29492d010a207f_rle_crop_3912123052_0.png.png imagette259141121755001018/1755000206_4159428_1376613471_7922946dcd21ad3cef252db500556916_rle_crop_3912114703_0.png.png imagette259141121755001018/1755000206_4159428_1376613474_ca5e1a0bac8f20faad1eff2dd218226b_rle_crop_3912114682_0.png.png imagette259141121755001018/1755000445_4166530_1376613949_5c5825d8ab2dbacace1c57f8de60769b_rle_crop_3912122932_0.png.png imagette259141121755001018/1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123641_0.png.png imagette259141121755001018/1755000566_4169466_1376613553_2e7f65c885d910a3636afc43b8f019f2_rle_crop_3912123652_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/4c02189f9730e478a30c3830466ba392_3522610.png imagette259141121755001018 25914121 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376613598: '1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114711_0.png', 1376613599: '1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114716_0.png', 1376614166: '1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118989_0.png', 1376614168: '1755000325_4162622_1376613509_c7bebd53895571fda039069c6e18fe2c_rle_crop_3912119007_0.png', 1376615513: '1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123638_0.png', 1376615515: '1755000566_4169466_1376613545_25faf95f60cf2f6ffe2dfe214c183728_rle_crop_3912123732_0.png', 1376616267: '1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/0786fe8533079a4b90c0d6d351b21b9e_25198462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/917bf5207c9324b00017c30b48de39bc_52456188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/860f88d7f84548cd001b09b5c71463a8_11788451.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/79ad303c4323e183f76a99d363fea26f_24634619.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/135a516453e48a13abd4094e03a5f134_61666622.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/cbee644248e730fd22625f5cfe088215_47432688.png change filename to text .imagette259141211755001018/ imagette259141211755001018/1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114716_0.png.png imagette259141211755001018/1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124613_0.png.png imagette259141211755001018/1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114711_0.png.png imagette259141211755001018/1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118989_0.png.png imagette259141211755001018/1755000325_4162622_1376613509_c7bebd53895571fda039069c6e18fe2c_rle_crop_3912119007_0.png.png imagette259141211755001018/1755000566_4169466_1376613545_25faf95f60cf2f6ffe2dfe214c183728_rle_crop_3912123732_0.png.png imagette259141211755001018/1755000566_4169466_1376613555_2bd14653b28d8e1b117df42fe28d7554_rle_crop_3912123638_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/9014f179bde1c68bab1300905f727ca1_89764272.png imagette259141211755001018 25914122 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376613600: '1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114712_0.png', 1376613601: '1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114710_0.png', 1376614180: '1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118983_0.png', 1376614182: '1755000325_4162622_1376613515_fb4e46effc817c460188d6571035351a_rle_crop_3912118991_0.png', 1376615087: '1755000445_4166530_1376613949_5c5825d8ab2dbacace1c57f8de60769b_rle_crop_3912122931_0.png', 1376615089: '1755000445_4166530_1376613611_81b046005a1ead6bda29492d010a207f_rle_crop_3912123051_0.png', 1376615532: '1755000566_4169466_1376613549_281b2e0639d08d204349adcc308fa883_rle_crop_3912123660_0.png', 1376615534: '1755000566_4169466_1376613549_281b2e0639d08d204349adcc308fa883_rle_crop_3912123661_0.png', 1376615536: '1755000566_4169466_1376613545_25faf95f60cf2f6ffe2dfe214c183728_rle_crop_3912123727_0.png', 1376615903: '1755000684_4173054_1376615248_681139c6d3e199b685ccdddb9006b118_rle_crop_3912124094_0.png', 1376616271: '1755000806_4176682_1376615823_f11ab036f208a83028237d1aa951f2c1_rle_crop_3912124594_0.png', 1376616272: '1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124609_0.png', 1376616385: '1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124730_0.png', 1376616386: '1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124737_0.png', 1376616387: '1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124731_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/e8da3b8a53ef7316c6d17d6687991410_89451142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/cf08128127ac711c24094eedd77ce53c_6395407.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/de35c5ac21938e6e3c9cf4cee139d64b_907706.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/fd0e792135b5791b290af04fac590644_4217828.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/d9fe1340d83748aa99816098fe26aacc_26704339.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/d9fe1340d83748aa99816098fe26aacc_22605176.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/29ef0f1474b8b048d3d580c73eb06060_12594226.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/9589dcd7bd30b5683638bb6f03974ec6_13457882.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/88b1669ad40556bbe016eaace8c1c71a_90047596.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/04687147b5b313055288d1d985f855c1_40542449.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/fa1e49141e25ce6141be6adb3d29fa8e_42923462.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/95defb3264ad7ef056f1e9d5724ee8f6_89316512.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/8caaa74cc31e3db033a145ec7a0c8e6e_96339367.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/bb6b4669345483f8af3ff5d5eb5bd390_29370654.png change filename to text .imagette259141221755001018/ imagette259141221755001018/1755000445_4166530_1376613611_81b046005a1ead6bda29492d010a207f_rle_crop_3912123051_0.png.png imagette259141221755001018/1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114710_0.png.png imagette259141221755001018/1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124731_0.png.png imagette259141221755001018/1755000325_4162622_1376613515_fb4e46effc817c460188d6571035351a_rle_crop_3912118991_0.png.png imagette259141221755001018/1755000684_4173054_1376615248_681139c6d3e199b685ccdddb9006b118_rle_crop_3912124094_0.png.png imagette259141221755001018/1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124737_0.png.png imagette259141221755001018/1755000325_4162622_1376613560_c54be9fd9fb15a211cbd322c80b78656_rle_crop_3912118983_0.png.png imagette259141221755001018/1755000566_4169466_1376613545_25faf95f60cf2f6ffe2dfe214c183728_rle_crop_3912123727_0.png.png imagette259141221755001018/1755000566_4169466_1376613549_281b2e0639d08d204349adcc308fa883_rle_crop_3912123660_0.png.png imagette259141221755001018/1755000926_4179325_1376616088_67c69871a2d3c2f600833fe1bae6d277_rle_crop_3912124730_0.png.png imagette259141221755001018/1755000206_4159428_1376613467_6e8116a3b4ea1c70f21401cf9067c4a0_rle_crop_3912114712_0.png.png imagette259141221755001018/1755000806_4176682_1376615807_d1eefd0decb3986e9852e69c4ee14d54_rle_crop_3912124609_0.png.png imagette259141221755001018/1755000566_4169466_1376613549_281b2e0639d08d204349adcc308fa883_rle_crop_3912123661_0.png.png imagette259141221755001018/1755000445_4166530_1376613949_5c5825d8ab2dbacace1c57f8de60769b_rle_crop_3912122931_0.png.png imagette259141221755001018/1755000806_4176682_1376615823_f11ab036f208a83028237d1aa951f2c1_rle_crop_3912124594_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/e87a96568cb844a841ae227a871917e0_58711789.png imagette259141221755001018 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25914094 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25914125,25914126,25914127,25914128,25914129,25914130,25914131,25914132,25914133,25914134,25914135,25914136?tags=Carton_brun,papier,flou,autre_refus,plastique,environnement,cartonnette,metal,kraft,Teint_Dans_La_Masse,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1376616399] : ('0.04456258357942308',) no score found for photo 1376616399 We are sending mail with results at report@fotonower.com args[1376616383] : ('0.04456258357942308',) no score found for photo 1376616383 We are sending mail with results at report@fotonower.com args[1376616380] : ('0.04456258357942308',) no score found for photo 1376616380 We are sending mail with results at report@fotonower.com args[1376616375] : ('0.04456258357942308',) no score found for photo 1376616375 We are sending mail with results at report@fotonower.com args[1376616364] : ('0.04456258357942308',) no score found for photo 1376616364 We are sending mail with results at report@fotonower.com args[1376616359] : ('0.04456258357942308',) no score found for photo 1376616359 We are sending mail with results at report@fotonower.com args[1376616354] : ('0.04456258357942308',) no score found for photo 1376616354 We are sending mail with results at report@fotonower.com args[1376616353] : ('0.04456258357942308',) no score found for photo 1376616353 We are sending mail with results at report@fotonower.com args[1376616348] : ('0.04456258357942308',) no score found for photo 1376616348 We are sending mail with results at report@fotonower.com args[1376616346] : ('0.04456258357942308',) no score found for photo 1376616346 We are sending mail with results at report@fotonower.com args[1376616327] : ('0.04456258357942308',) no score found for photo 1376616327 We are sending mail with results at report@fotonower.com args[1376616315] : ('0.04456258357942308',) no score found for photo 1376616315 We are sending mail with results at report@fotonower.com args[1376616308] : ('0.04456258357942308',) no score found for photo 1376616308 We are sending mail with results at report@fotonower.com args[1376616302] : ('0.04456258357942308',) no score found for photo 1376616302 We are sending mail with results at report@fotonower.com args[1376616293] : ('0.04456258357942308',) no score found for photo 1376616293 We are sending mail with results at report@fotonower.com refus_total : 0.04456258357942308 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914094 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_P25914094_12-08-2025_14_16_57.pdf results_Auto_P25914094_12-08-2025_14_16_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914094_12-08-2025_14_16_57.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25914094','results_Auto_P25914094_12-08-2025_14_16_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914094_12-08-2025_14_16_57.pdf','pdf','','0.23','0.04456258357942308') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25914094]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] map_info['map_portfolio_photo'] : {25914094: [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293, 1376616135, 1376616111, 1376616088, 1376616063, 1376616038, 1376615911, 1376615908, 1376615850, 1376615825, 1376615823, 1376615807, 1376615671, 1376615667, 1376615641, 1376615617, 1376615589, 1376615562, 1376615256, 1376615254, 1376615251, 1376615248, 1376614235, 1376614131, 1376614026, 1376614000, 1376613974, 1376613949, 1376613921, 1376613897, 1376613623, 1376613619, 1376613616, 1376613613, 1376613611, 1376613609, 1376613560, 1376613558, 1376613555, 1376613553, 1376613549, 1376613545, 1376613517, 1376613515, 1376613512, 1376613509, 1376613476, 1376613474, 1376613471, 1376613467]} final : False mtd_id 4302 list_pids : [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] 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, '3512632') ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632') 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', '25914094', '1376616399', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632')] time used for this insertion : 0.014899015426635742 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.463805913925171 time spend to save output : 0.015215873718261719 total time spend for step 4 : 4.479021787643433 step5:split_time_score Tue Aug 12 14:17:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25914094'] 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 : [('25914094',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25914094) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376616293: {'path': 'temp/1755001016_981553_1376616293_77a857da5d5da065c444cc285da99cea.jpg', 'extension': 'jpg'}, 1376616302: {'path': 'temp/1755001016_981553_1376616302_551ff7e7c6e8cdf0ac43dcd9a34b01b7.jpg', 'extension': 'jpg'}, 1376616308: {'path': 'temp/1755001016_981553_1376616308_6fc133c9105c02196453aa049dd2d071.jpg', 'extension': 'jpg'}, 1376616315: {'path': 'temp/1755001016_981553_1376616315_f70152b331b4d9d311bcdf2d1ff8f7e6.jpg', 'extension': 'jpg'}, 1376616380: {'path': 'temp/1755001016_981553_1376616380_e3778531e9665bffef1259c0337a8352.jpg', 'extension': 'jpg'}, 1376616383: {'path': 'temp/1755001016_981553_1376616383_7bde759fb00792c1c6e0328dca77e439.jpg', 'extension': 'jpg'}, 1376616399: {'path': 'temp/1755001016_981553_1376616399_3249b2a2935d1a589193770a38d4a6d6.jpg', 'extension': 'jpg'}, 1376616327: {'path': 'temp/1755001016_981553_1376616327_469d699f7a8141837a466b2fe436bb8f.jpg', 'extension': 'jpg'}, 1376616346: {'path': 'temp/1755001016_981553_1376616346_231cfa27d4d38f376a26d8511cd4f96f.jpg', 'extension': 'jpg'}, 1376616348: {'path': 'temp/1755001016_981553_1376616348_7186966c1506559ae9fc8da3101e0f38.jpg', 'extension': 'jpg'}, 1376616353: {'path': 'temp/1755001016_981553_1376616353_56c842c6d528308f950358135dd94c9b.jpg', 'extension': 'jpg'}, 1376616354: {'path': 'temp/1755001016_981553_1376616354_199c83eadb778f4cc6d1b93555ea1349.jpg', 'extension': 'jpg'}, 1376616359: {'path': 'temp/1755001016_981553_1376616359_b81f8c9b74b99c0437fae6574a8be3ba.jpg', 'extension': 'jpg'}, 1376616364: {'path': 'temp/1755001016_981553_1376616364_b701a2a75c9efb5e5d52ec67dabeb1d4.jpg', 'extension': 'jpg'}, 1376616375: {'path': 'temp/1755001016_981553_1376616375_248b82e646345cfa8d47dc8cec0b992d.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 = 25914094; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25914094 group by h (('14', 64),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25914094 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 (25914094) 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 (25914094) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12082025 25914094 Nombre de photos uploadées : 64 / 23040 (0%) 12082025 25914094 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 12082025 25914094 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1376613476, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/dd1797ec6d7f213e496d8096bcf65b22.jpg', 'username': None, 'uploaded_at': 1755000067, 'text': 'image_12082025_14_00_04_010149m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1376613474, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/ca5e1a0bac8f20faad1eff2dd218226b.jpg', 'username': None, 'uploaded_at': 1755000067, 'text': 'image_12082025_14_00_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1376613471, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/7922946dcd21ad3cef252db500556916.jpg', 'username': None, 'uploaded_at': 1755000067, 'text': 'image_12082025_14_00_33_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1376613467, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/12/6e8116a3b4ea1c70f21401cf9067c4a0.jpg', 'username': None, 'uploaded_at': 1755000067, 'text': 'image_12082025_14_00_43_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028655529022216797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25914094, '2025-08-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2104719,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20006346702575684 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= 2104719 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25895867, 'dashboard_result_id': 13909134, '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_P25895867_12-08-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25895868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25895869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25895870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25895871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25895872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25895873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25895874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25895875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25895876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25895877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25895878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25895879, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25896197, 'dashboard_result_id': 13909135, '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_P25896197_12-08-2025_06_13_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896207, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896209, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25896261, 'dashboard_result_id': 13909136, '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_P25896261_12-08-2025_06_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25896262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896273, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25896436, 'dashboard_result_id': 13909137, '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_P25896436_12-08-2025_06_15_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896448, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25896871, 'dashboard_result_id': 13909138, '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_P25896871_12-08-2025_06_15_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896887, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25897219, 'dashboard_result_id': 13909139, '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_P25897219_12-08-2025_06_15_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897231, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25897705, 'dashboard_result_id': 13909140, '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_P25897705_12-08-2025_06_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897723, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25897901, 'dashboard_result_id': 13909141, '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_P25897901_12-08-2025_06_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897917, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25898104, 'dashboard_result_id': 13909142, '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_P25898104_12-08-2025_05_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898119, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25898373, 'dashboard_result_id': 13909143, '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_P25898373_12-08-2025_06_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898395, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25898660, 'dashboard_result_id': 13909144, '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_P25898660_12-08-2025_06_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898679, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25899270, 'dashboard_result_id': 13909145, '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_P25899270_12-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25899279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899289, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25899643, 'dashboard_result_id': 13909146, '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_P25899643_12-08-2025_06_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25899656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899667, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25900002, 'dashboard_result_id': 13909147, '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_P25900002_12-08-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900028, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25900452, 'dashboard_result_id': 13909148, '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_P25900452_12-08-2025_07_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900496, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25901307, 'dashboard_result_id': 13909149, '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_P25901307_12-08-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901339, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25901859, 'dashboard_result_id': 13909150, '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_P25901859_12-08-2025_07_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901903, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25902347, 'dashboard_result_id': 13909151, '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_P25902347_12-08-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902390, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25902893, 'dashboard_result_id': 13909152, '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_P25902893_12-08-2025_08_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902956, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25903634, 'dashboard_result_id': 13909153, '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_P25903634_12-08-2025_10_02_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25903677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25903678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25903679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25903680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25903681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25903682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25903683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25903684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25903685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25903686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25903687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25903688, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904075, 'dashboard_result_id': 13909154, '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_P25904075_12-08-2025_10_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904265, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904080, 'dashboard_result_id': 13909155, '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_P25904080_12-08-2025_10_01_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904194, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904106, 'dashboard_result_id': 13909156, '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_P25904106_12-08-2025_10_01_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904149, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904021, 'dashboard_result_id': 13909157, '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_P25904021_12-08-2025_10_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904041, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904280, 'dashboard_result_id': 13909158, '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_P25904280_12-08-2025_10_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25904292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904303, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25904828, 'dashboard_result_id': 13909159, '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_P25904828_12-08-2025_10_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904894, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25905506, 'dashboard_result_id': 13909160, '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_P25905506_12-08-2025_10_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25905591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25905592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25905593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25905594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25905595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25905596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25905597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25905599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25905602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25905604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25905606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25905609, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25906507, 'dashboard_result_id': 13909161, '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_P25906507_12-08-2025_11_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25906556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25906557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25906559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25906560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25906561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25906562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25906564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25906565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25906566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25906568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25906569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25906570, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25907163, 'dashboard_result_id': 13909162, '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_P25907163_12-08-2025_11_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25907202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907213, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25907859, 'dashboard_result_id': 13909163, '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_P25907859_12-08-2025_11_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25907897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907900, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25908651, 'dashboard_result_id': 13909164, '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_P25908651_12-08-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25908710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25908712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25908713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25908714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25908715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25908716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25908717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25908718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25908719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25908720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25908721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25908722, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25909449, 'dashboard_result_id': 13909165, '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_P25909449_12-08-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25909502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25909503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25909504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25909505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25909506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25909507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25909508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25909509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25909510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25909511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25909512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25909513, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25910136, 'dashboard_result_id': 13909166, '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_P25910136_12-08-2025_12_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25910183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25910191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910194, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25910856, 'dashboard_result_id': 13909167, '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_P25910856_12-08-2025_12_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25910864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25910869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910875, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25911391, 'dashboard_result_id': 13909168, '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_P25911391_12-08-2025_12_40_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25911411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25911412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25911413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25911414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25911415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25911416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25911417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25911418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25911419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25911420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25911421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25911422, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25913077, 'dashboard_result_id': 13909169, '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_P25913077_12-08-2025_13_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913115, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25913623, 'dashboard_result_id': 13909170, '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_P25913623_12-08-2025_13_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913648, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25914029, 'dashboard_result_id': 13909171, '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_P25914029_12-08-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914043, 'pht': 3726}}"}, {'dashboat_entry_day': 2104719, 'dashboard_run_id': 2115853, 'mtr_portfolio_id': 25914094, 'dashboard_result_id': 13909172, '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_P25914094_12-08-2025_14_14_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914123, '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 = 25895867 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': 3507480, 'mtr_portfolio_id': 25895867, 'created_at': datetime.datetime(2025, 8, 12, 6, 13, 29), 'result': '0.049272118412852874', 'result_long': None, 'result_double': None}] Qualite : 0.049272118412852874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25895867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25895867_12-08-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25895867 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_P25895867_12-08-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25895868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25895869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25895870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25895871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25895872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25895873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25895874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25895875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25895876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25895877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25895878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25895879, 'pht': 3726}}" where mtr_portfolio_id = 25895867 and dashboard_run_id = 2115853 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`=25895867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909134, 0.049272118412852874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25895867_12-08-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25895868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25895869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25895870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25895871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25895872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25895873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25895874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25895875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25895876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25895877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25895878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25895879, '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 = 25896197 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 = 25896197 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 = 25896197 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25896197 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 = 25896197 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3507481, 'mtr_portfolio_id': 25896197, 'created_at': datetime.datetime(2025, 8, 12, 6, 13, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25896197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896197_12-08-2025_06_13_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25896197 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_P25896197_12-08-2025_06_13_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896207, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896209, 'pht': 3726}}" where mtr_portfolio_id = 25896197 and dashboard_run_id = 2115853 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`=25896197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909135, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896197_12-08-2025_06_13_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896207, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896209, '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 = 25896261 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': 3507482, 'mtr_portfolio_id': 25896261, 'created_at': datetime.datetime(2025, 8, 12, 6, 14, 31), 'result': '0.012017190257155207', 'result_long': None, 'result_double': None}] Qualite : 0.012017190257155207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25896261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896261_12-08-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25896261 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_P25896261_12-08-2025_06_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25896262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896273, 'pht': 3726}}" where mtr_portfolio_id = 25896261 and dashboard_run_id = 2115853 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`=25896261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909136, 0.012017190257155207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896261_12-08-2025_06_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25896262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896273, '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 = 25896436 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': 3507483, 'mtr_portfolio_id': 25896436, 'created_at': datetime.datetime(2025, 8, 12, 6, 15, 30), 'result': '0.012710744318666202', 'result_long': None, 'result_double': None}] Qualite : 0.012710744318666202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25896436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896436_12-08-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25896436 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_P25896436_12-08-2025_06_15_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896448, 'pht': 3726}}" where mtr_portfolio_id = 25896436 and dashboard_run_id = 2115853 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`=25896436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909137, 0.012710744318666202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896436_12-08-2025_06_15_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896448, '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 = 25896871 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': 3507484, 'mtr_portfolio_id': 25896871, 'created_at': datetime.datetime(2025, 8, 12, 6, 15, 40), 'result': '0.030395758319542426', 'result_long': None, 'result_double': None}] Qualite : 0.030395758319542426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25896871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896871_12-08-2025_06_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25896871 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_P25896871_12-08-2025_06_15_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896887, 'pht': 3726}}" where mtr_portfolio_id = 25896871 and dashboard_run_id = 2115853 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`=25896871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909138, 0.030395758319542426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25896871_12-08-2025_06_15_41.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25896876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25896877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25896878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25896879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25896880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25896881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25896882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25896883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25896884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25896885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25896886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25896887, '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 = 25897219 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': 3507485, 'mtr_portfolio_id': 25897219, 'created_at': datetime.datetime(2025, 8, 12, 6, 15, 57), 'result': '0.02445817433192703', 'result_long': None, 'result_double': None}] Qualite : 0.02445817433192703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25897219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897219_12-08-2025_06_15_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25897219 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_P25897219_12-08-2025_06_15_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897231, 'pht': 3726}}" where mtr_portfolio_id = 25897219 and dashboard_run_id = 2115853 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`=25897219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909139, 0.02445817433192703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897219_12-08-2025_06_15_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897231, '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 = 25897705 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': 3507487, 'mtr_portfolio_id': 25897705, 'created_at': datetime.datetime(2025, 8, 12, 6, 16, 58), 'result': '0.02009732912368027', 'result_long': None, 'result_double': None}] Qualite : 0.02009732912368027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25897705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897705_12-08-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25897705 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_P25897705_12-08-2025_06_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897723, 'pht': 3726}}" where mtr_portfolio_id = 25897705 and dashboard_run_id = 2115853 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`=25897705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909140, 0.02009732912368027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897705_12-08-2025_06_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897723, '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 = 25897901 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': 3507488, 'mtr_portfolio_id': 25897901, 'created_at': datetime.datetime(2025, 8, 12, 6, 17, 31), 'result': '0.04946866804117232', 'result_long': None, 'result_double': None}] Qualite : 0.04946866804117232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25897901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897901_12-08-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25897901 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_P25897901_12-08-2025_06_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897917, 'pht': 3726}}" where mtr_portfolio_id = 25897901 and dashboard_run_id = 2115853 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`=25897901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909141, 0.04946866804117232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25897901_12-08-2025_06_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25897906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25897907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25897908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25897909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25897910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25897911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25897912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25897913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25897914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25897915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25897916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25897917, '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 = 25898104 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': 3507409, 'mtr_portfolio_id': 25898104, 'created_at': datetime.datetime(2025, 8, 12, 5, 46, 58), 'result': '0.038864547318779134', 'result_long': None, 'result_double': None}] Qualite : 0.038864547318779134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25898104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898104_12-08-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25898104 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_P25898104_12-08-2025_05_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898119, 'pht': 3726}}" where mtr_portfolio_id = 25898104 and dashboard_run_id = 2115853 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`=25898104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909142, 0.038864547318779134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898104_12-08-2025_05_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898119, '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 = 25898373 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': 3507623, 'mtr_portfolio_id': 25898373, 'created_at': datetime.datetime(2025, 8, 12, 6, 3, 29), 'result': '0.04119517580773433', 'result_long': None, 'result_double': None}] Qualite : 0.04119517580773433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25898373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898373_12-08-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25898373 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_P25898373_12-08-2025_06_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898395, 'pht': 3726}}" where mtr_portfolio_id = 25898373 and dashboard_run_id = 2115853 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`=25898373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909143, 0.04119517580773433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898373_12-08-2025_06_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898395, '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 = 25898660 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': 3507727, 'mtr_portfolio_id': 25898660, 'created_at': datetime.datetime(2025, 8, 12, 6, 19, 29), 'result': '0.07986127153558077', 'result_long': None, 'result_double': None}] Qualite : 0.07986127153558077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25898660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898660_12-08-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25898660 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_P25898660_12-08-2025_06_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898679, 'pht': 3726}}" where mtr_portfolio_id = 25898660 and dashboard_run_id = 2115853 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`=25898660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909144, 0.07986127153558077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25898660_12-08-2025_06_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25898668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25898669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25898670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25898671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25898672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25898673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25898674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25898675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25898676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25898677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25898678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25898679, '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 = 25899270 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': 3507902, 'mtr_portfolio_id': 25899270, 'created_at': datetime.datetime(2025, 8, 12, 6, 33), 'result': '0.0389980329602642', 'result_long': None, 'result_double': None}] Qualite : 0.0389980329602642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25899270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25899270_12-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25899270 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_P25899270_12-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25899279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899289, 'pht': 3726}}" where mtr_portfolio_id = 25899270 and dashboard_run_id = 2115853 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`=25899270 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909145, 0.0389980329602642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25899270_12-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25899279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899289, '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 = 25899643 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': 3508093, 'mtr_portfolio_id': 25899643, 'created_at': datetime.datetime(2025, 8, 12, 6, 46, 59), 'result': '0.08817677466296753', 'result_long': None, 'result_double': None}] Qualite : 0.08817677466296753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25899643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25899643_12-08-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25899643 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_P25899643_12-08-2025_06_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25899656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899667, 'pht': 3726}}" where mtr_portfolio_id = 25899643 and dashboard_run_id = 2115853 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`=25899643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909146, 0.08817677466296753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25899643_12-08-2025_06_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25899656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25899657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25899658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25899659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25899660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25899661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25899662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25899663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25899664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25899665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25899666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25899667, '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 = 25900002 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': 3508269, 'mtr_portfolio_id': 25900002, 'created_at': datetime.datetime(2025, 8, 12, 7, 2, 58), 'result': '0.08172981193523134', 'result_long': None, 'result_double': None}] Qualite : 0.08172981193523134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25900002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25900002_12-08-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25900002 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_P25900002_12-08-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900028, 'pht': 3726}}" where mtr_portfolio_id = 25900002 and dashboard_run_id = 2115853 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`=25900002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909147, 0.08172981193523134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25900002_12-08-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900028, '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 = 25900452 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': 3508511, 'mtr_portfolio_id': 25900452, 'created_at': datetime.datetime(2025, 8, 12, 7, 20, 59), 'result': '0.04062297625509912', 'result_long': None, 'result_double': None}] Qualite : 0.04062297625509912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25900452 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25900452_12-08-2025_07_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25900452 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_P25900452_12-08-2025_07_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900496, 'pht': 3726}}" where mtr_portfolio_id = 25900452 and dashboard_run_id = 2115853 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`=25900452 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909148, 0.04062297625509912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25900452_12-08-2025_07_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25900484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25900485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25900486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25900487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25900489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25900490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25900491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25900492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25900493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25900494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25900495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25900496, '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 = 25901307 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': 3508793, 'mtr_portfolio_id': 25901307, 'created_at': datetime.datetime(2025, 8, 12, 7, 32, 58), 'result': '0.07658116203786297', 'result_long': None, 'result_double': None}] Qualite : 0.07658116203786297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25901307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25901307_12-08-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25901307 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_P25901307_12-08-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901339, 'pht': 3726}}" where mtr_portfolio_id = 25901307 and dashboard_run_id = 2115853 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`=25901307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909149, 0.07658116203786297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25901307_12-08-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901339, '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 = 25901859 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': 3508951, 'mtr_portfolio_id': 25901859, 'created_at': datetime.datetime(2025, 8, 12, 7, 47), 'result': '0.11561044520249761', 'result_long': None, 'result_double': None}] Qualite : 0.11561044520249761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25901859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25901859_12-08-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25901859 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_P25901859_12-08-2025_07_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901903, 'pht': 3726}}" where mtr_portfolio_id = 25901859 and dashboard_run_id = 2115853 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`=25901859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909150, 0.11561044520249761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25901859_12-08-2025_07_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25901892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25901893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25901894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25901895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25901896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25901897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25901898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25901899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25901900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25901901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25901902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25901903, '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 = 25902347 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': 3509130, 'mtr_portfolio_id': 25902347, 'created_at': datetime.datetime(2025, 8, 12, 8, 2, 57), 'result': '0.007396132846901628', 'result_long': None, 'result_double': None}] Qualite : 0.007396132846901628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25902347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25902347_12-08-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25902347 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_P25902347_12-08-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902390, 'pht': 3726}}" where mtr_portfolio_id = 25902347 and dashboard_run_id = 2115853 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`=25902347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909151, 0.007396132846901628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25902347_12-08-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902390, '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 = 25902893 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': 3509364, 'mtr_portfolio_id': 25902893, 'created_at': datetime.datetime(2025, 8, 12, 8, 17), 'result': '0.04033312440078381', 'result_long': None, 'result_double': None}] Qualite : 0.04033312440078381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25902893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25902893_12-08-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25902893 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_P25902893_12-08-2025_08_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902956, 'pht': 3726}}" where mtr_portfolio_id = 25902893 and dashboard_run_id = 2115853 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`=25902893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909152, 0.04033312440078381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25902893_12-08-2025_08_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25902944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25902945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25902946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25902947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25902948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25902949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25902950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25902951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25902952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25902953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25902955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25902956, '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 = 25903634 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 = 25903634 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 = 25903634 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25903634 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 = 25903634 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 = 25903634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25903634_12-08-2025_10_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25903634 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_P25903634_12-08-2025_10_02_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25903677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25903678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25903679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25903680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25903681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25903682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25903683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25903684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25903685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25903686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25903687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25903688, 'pht': 3726}}" where mtr_portfolio_id = 25903634 and dashboard_run_id = 2115853 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 = 25904075 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 = 25904075 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 = 25904075 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25904075 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 = 25904075 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 = 25904075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904075_12-08-2025_10_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904075 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_P25904075_12-08-2025_10_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904265, 'pht': 3726}}" where mtr_portfolio_id = 25904075 and dashboard_run_id = 2115853 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 = 25904080 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 = 25904080 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 = 25904080 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25904080 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 = 25904080 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 = 25904080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904080_12-08-2025_10_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904080 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_P25904080_12-08-2025_10_01_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904194, 'pht': 3726}}" where mtr_portfolio_id = 25904080 and dashboard_run_id = 2115853 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 = 25904106 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 = 25904106 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 = 25904106 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25904106 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 = 25904106 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 = 25904106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904106_12-08-2025_10_01_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904106 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_P25904106_12-08-2025_10_01_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904149, 'pht': 3726}}" where mtr_portfolio_id = 25904106 and dashboard_run_id = 2115853 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 = 25904021 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': 3509623, 'mtr_portfolio_id': 25904021, 'created_at': datetime.datetime(2025, 8, 12, 10, 2, 59), 'result': '0.00618025681737554', 'result_long': None, 'result_double': None}] Qualite : 0.00618025681737554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25904021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904021_12-08-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904021 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_P25904021_12-08-2025_10_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904041, 'pht': 3726}}" where mtr_portfolio_id = 25904021 and dashboard_run_id = 2115853 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`=25904021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909157, 0.00618025681737554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904021_12-08-2025_10_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904041, '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 = 25904280 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': 3509689, 'mtr_portfolio_id': 25904280, 'created_at': datetime.datetime(2025, 8, 12, 10, 21), 'result': '0.042058071074601126', 'result_long': None, 'result_double': None}] Qualite : 0.042058071074601126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25904280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904280_12-08-2025_10_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904280 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_P25904280_12-08-2025_10_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25904292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904303, 'pht': 3726}}" where mtr_portfolio_id = 25904280 and dashboard_run_id = 2115853 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`=25904280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909158, 0.042058071074601126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904280_12-08-2025_10_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25904292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904300, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904303, '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 = 25904828 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': 3509898, 'mtr_portfolio_id': 25904828, 'created_at': datetime.datetime(2025, 8, 12, 10, 33), 'result': '0.0613739173117314', 'result_long': None, 'result_double': None}] Qualite : 0.0613739173117314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25904828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904828_12-08-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25904828 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_P25904828_12-08-2025_10_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904894, 'pht': 3726}}" where mtr_portfolio_id = 25904828 and dashboard_run_id = 2115853 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`=25904828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909159, 0.0613739173117314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25904828_12-08-2025_10_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25904882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25904883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25904884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25904885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25904886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25904888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25904889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25904890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25904891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25904892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25904893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25904894, '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 = 25905506 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': 3510144, 'mtr_portfolio_id': 25905506, 'created_at': datetime.datetime(2025, 8, 12, 10, 46, 57), 'result': '0.03437193705274695', 'result_long': None, 'result_double': None}] Qualite : 0.03437193705274695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25905506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25905506_12-08-2025_10_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25905506 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_P25905506_12-08-2025_10_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25905591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25905592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25905593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25905594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25905595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25905596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25905597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25905599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25905602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25905604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25905606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25905609, 'pht': 3726}}" where mtr_portfolio_id = 25905506 and dashboard_run_id = 2115853 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`=25905506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909160, 0.03437193705274695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25905506_12-08-2025_10_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25905591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25905592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25905593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25905594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25905595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25905596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25905597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25905599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25905602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25905604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25905606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25905609, '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 = 25906507 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 = 25906507 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 = 25906507 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25906507 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 = 25906507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3510425, 'mtr_portfolio_id': 25906507, 'created_at': datetime.datetime(2025, 8, 12, 11, 2, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25906507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25906507_12-08-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25906507 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_P25906507_12-08-2025_11_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25906556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25906557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25906559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25906560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25906561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25906562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25906564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25906565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25906566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25906568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25906569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25906570, 'pht': 3726}}" where mtr_portfolio_id = 25906507 and dashboard_run_id = 2115853 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`=25906507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909161, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25906507_12-08-2025_11_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25906556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25906557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25906559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25906560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25906561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25906562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25906564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25906565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25906566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25906568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25906569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25906570, '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 = 25907163 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': 3510648, 'mtr_portfolio_id': 25907163, 'created_at': datetime.datetime(2025, 8, 12, 11, 16, 57), 'result': '0.05319148667848246', 'result_long': None, 'result_double': None}] Qualite : 0.05319148667848246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25907163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25907163_12-08-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25907163 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_P25907163_12-08-2025_11_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25907202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907213, 'pht': 3726}}" where mtr_portfolio_id = 25907163 and dashboard_run_id = 2115853 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`=25907163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909162, 0.05319148667848246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25907163_12-08-2025_11_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25907202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907213, '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 = 25907859 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': 3510862, 'mtr_portfolio_id': 25907859, 'created_at': datetime.datetime(2025, 8, 12, 11, 32, 59), 'result': '0.02993305973944783', 'result_long': None, 'result_double': None}] Qualite : 0.02993305973944783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25907859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25907859_12-08-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25907859 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_P25907859_12-08-2025_11_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25907897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907900, 'pht': 3726}}" where mtr_portfolio_id = 25907859 and dashboard_run_id = 2115853 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`=25907859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909163, 0.02993305973944783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25907859_12-08-2025_11_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25907888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25907890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25907891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25907892, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25907893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25907894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25907895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25907896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25907897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25907898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25907899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25907900, '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 = 25908651 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': 3511093, 'mtr_portfolio_id': 25908651, 'created_at': datetime.datetime(2025, 8, 12, 11, 49), 'result': '0.08764033450497485', 'result_long': None, 'result_double': None}] Qualite : 0.08764033450497485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25908651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25908651_12-08-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25908651 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_P25908651_12-08-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25908710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25908712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25908713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25908714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25908715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25908716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25908717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25908718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25908719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25908720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25908721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25908722, 'pht': 3726}}" where mtr_portfolio_id = 25908651 and dashboard_run_id = 2115853 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`=25908651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909164, 0.08764033450497485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25908651_12-08-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25908710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25908712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25908713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25908714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25908715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25908716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25908717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25908718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25908719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25908720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25908721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25908722, '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 = 25909449 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': 3511372, 'mtr_portfolio_id': 25909449, 'created_at': datetime.datetime(2025, 8, 12, 12, 2, 58), 'result': '0.03752904274807667', 'result_long': None, 'result_double': None}] Qualite : 0.03752904274807667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25909449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25909449_12-08-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25909449 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_P25909449_12-08-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25909502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25909503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25909504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25909505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25909506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25909507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25909508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25909509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25909510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25909511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25909512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25909513, 'pht': 3726}}" where mtr_portfolio_id = 25909449 and dashboard_run_id = 2115853 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`=25909449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909165, 0.03752904274807667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25909449_12-08-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25909502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25909503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25909504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25909505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25909506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25909507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25909508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25909509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25909510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25909511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25909512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25909513, '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 = 25910136 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': 3511593, 'mtr_portfolio_id': 25910136, 'created_at': datetime.datetime(2025, 8, 12, 12, 16, 58), 'result': '0.033336435834516884', 'result_long': None, 'result_double': None}] Qualite : 0.033336435834516884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25910136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25910136_12-08-2025_12_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25910136 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_P25910136_12-08-2025_12_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25910183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25910191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910194, 'pht': 3726}}" where mtr_portfolio_id = 25910136 and dashboard_run_id = 2115853 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`=25910136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909166, 0.033336435834516884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25910136_12-08-2025_12_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25910183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25910191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910194, '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 = 25910856 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': 3511826, 'mtr_portfolio_id': 25910856, 'created_at': datetime.datetime(2025, 8, 12, 12, 33), 'result': '0.04160758708016406', 'result_long': None, 'result_double': None}] Qualite : 0.04160758708016406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25910856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25910856_12-08-2025_12_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25910856 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_P25910856_12-08-2025_12_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25910864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25910869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910875, 'pht': 3726}}" where mtr_portfolio_id = 25910856 and dashboard_run_id = 2115853 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`=25910856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909167, 0.04160758708016406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25910856_12-08-2025_12_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25910864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25910865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25910866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25910867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25910868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25910869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25910870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25910871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25910872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25910873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25910874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25910875, '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 = 25911391 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': 3512051, 'mtr_portfolio_id': 25911391, 'created_at': datetime.datetime(2025, 8, 12, 13, 6, 57), 'result': '0.03770231300777206', 'result_long': None, 'result_double': None}] Qualite : 0.03770231300777206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25911391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25911391_12-08-2025_13_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25911391 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_P25911391_12-08-2025_13_06_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25911411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25911412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25911413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25911414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25911415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25911416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25911417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25911418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25911419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25911420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25911421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25911422, 'pht': 3726}}" where mtr_portfolio_id = 25911391 and dashboard_run_id = 2115853 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`=25911391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909168, 0.03770231300777206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25911391_12-08-2025_13_06_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25911411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25911412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25911413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25911414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25911415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25911416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25911417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25911418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25911419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25911420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25911421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25911422, '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 = 25913077 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': 3512509, 'mtr_portfolio_id': 25913077, 'created_at': datetime.datetime(2025, 8, 12, 13, 41, 1), 'result': '0.04430300925788412', 'result_long': None, 'result_double': None}] Qualite : 0.04430300925788412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25913077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25913077_12-08-2025_13_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25913077 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_P25913077_12-08-2025_13_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913115, 'pht': 3726}}" where mtr_portfolio_id = 25913077 and dashboard_run_id = 2115855 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`=25913077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909169, 0.04430300925788412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25913077_12-08-2025_13_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913115, '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 = 25913623 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': 3512572, 'mtr_portfolio_id': 25913623, 'created_at': datetime.datetime(2025, 8, 12, 13, 59), 'result': '0.06420793993103745', 'result_long': None, 'result_double': None}] Qualite : 0.06420793993103745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25913623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25913623_12-08-2025_13_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25913623 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_P25913623_12-08-2025_13_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913648, 'pht': 3726}}" where mtr_portfolio_id = 25913623 and dashboard_run_id = 2115855 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`=25913623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909170, 0.06420793993103745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25913623_12-08-2025_13_59_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25913637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25913638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25913639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25913640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25913641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25913642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25913643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25913644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25913645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25913646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25913647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25913648, '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 = 25914029 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': 3512627, 'mtr_portfolio_id': 25914029, 'created_at': datetime.datetime(2025, 8, 12, 14, 3, 1), 'result': '0.02467930081209881', 'result_long': None, 'result_double': None}] Qualite : 0.02467930081209881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25914029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914029_12-08-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25914029 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_P25914029_12-08-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914043, 'pht': 3726}}" where mtr_portfolio_id = 25914029 and dashboard_run_id = 2115855 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`=25914029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909171, 0.02467930081209881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914029_12-08-2025_14_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914043, '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 = 25914094 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': 3512632, 'mtr_portfolio_id': 25914094, 'created_at': datetime.datetime(2025, 8, 12, 14, 16, 56), 'result': '0.04456258357942308', 'result_long': None, 'result_double': None}] Qualite : 0.04456258357942308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25914094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914094_12-08-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25914094 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_P25914094_12-08-2025_14_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914123, 'pht': 3726}}" where mtr_portfolio_id = 25914094 and dashboard_run_id = 2115855 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`=25914094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13909172, 0.04456258357942308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25914094_12-08-2025_14_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25914112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25914113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25914114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25914115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25914116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25914117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25914118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25914119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25914120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25914121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25914122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25914123, '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 (25895867,25896197,25896261,25896436,25896871,25897219,25897705,25897901,25898104,25898373,25898660,25899270,25899643,25900002,25900452,25901307,25901859,25902347,25902893,25903634,25904075,25904080,25904106,25904021,25904280,25904828,25905506,25906507,25907163,25907859,25908651,25909449,25910136,25910856,25911391,25913077,25913623,25914029,25914094) result : ((1376531258,), (1376531301,), (1376531355,), (1376531357,), (1376531600,), (1376531633,), (1376531656,), (1376531680,), (1376531726,), (1376535450,), (1376535498,), (1376535520,), (1376535588,), (1376535613,), (1376535664,), (1376535744,), (1376535813,), (1376535836,), (1376535924,), (1376535926,), (1376535972,), (1376535983,), (1376535984,), (1376536024,), (1376536064,), (1376536066,), (1376536069,), (1376536526,), (1376538224,), (1376538998,), (1376539337,), (1376540014,), (1376540054,), (1376540105,), (1376540241,), (1376540296,), (1376541744,), (1376541769,), (1376542025,), (1376543034,), (1376543429,), (1376543430,), (1376543512,), (1376543515,), (1376543615,), (1376543975,), (1376543977,), (1376544032,), (1376544043,), (1376544063,), (1376544082,), (1376544113,), (1376546179,), (1376550015,), (1376550127,), (1376550179,), (1376550187,), (1376550190,), (1376550193,), (1376550257,), (1376550261,), (1376550265,), (1376550266,), (1376550285,), (1376550294,), (1376550298,), (1376550300,), (1376550320,), (1376550438,), (1376550468,), (1376550469,), (1376550610,), (1376550603,), (1376550608,), (1376550642,), (1376550646,), (1376550647,), (1376550668,), (1376550670,), (1376550672,), (1376550675,), (1376550768,), (1376550770,), (1376550774,), (1376550776,), (1376550810,), (1376550872,), (1376550903,), (1376550905,), (1376550935,), (1376550937,), (1376550938,), (1376550958,), (1376550961,), (1376550963,), (1376550964,), (1376550966,), (1376550983,), (1376550986,), (1376550989,), (1376551048,), (1376551052,), (1376551056,), (1376551061,), (1376551066,), (1376551071,), (1376551092,), (1376551094,), (1376551098,), (1376551101,), (1376551187,), (1376551176,), (1376551179,), (1376551181,), (1376551183,), (1376551186,), (1376551216,), (1376551223,), (1376551236,), (1376551240,), (1376551242,), (1376551243,), (1376551245,), (1376551269,), (1376551274,), (1376551279,), (1376551280,), (1376551300,), (1376551302,), (1376551306,), (1376551311,), (1376551338,), (1376551340,), (1376551343,), (1376551344,), (1376551347,), (1376551349,), (1376551365,), (1376551368,), (1376551370,), (1376551372,), (1376551375,), (1376551378,), (1376551394,), (1376551396,), (1376551429,), (1376551462,), (1376551464,), (1376551468,), (1376551471,), (1376551548,), (1376551558,), (1376551560,), (1376551561,), (1376551563,), (1376551565,), (1376551588,), (1376551592,), (1376551593,), (1376551595,), (1376551598,), (1376551601,), (1376551615,), (1376551618,), (1376551620,), (1376551650,), (1376551653,), (1376551655,), (1376551658,), (1376551661,), (1376551664,), (1376551678,), (1376551679,), (1376551681,), (1376551683,), (1376551712,), (1376551705,), (1376551707,), (1376551709,), (1376551741,), (1376551743,), (1376551746,), (1376551750,), (1376551751,), (1376551766,), (1376551769,), (1376551772,), (1376551777,), (1376551782,), (1376551803,), (1376551810,), (1376551813,), (1376551816,), (1376551818,), (1376551840,), (1376551843,), (1376551844,), (1376551846,), (1376551929,), (1376552000,), (1376552004,), (1376552006,), (1376552007,), (1376552009,), (1376552011,), (1376552042,), (1376552045,), (1376552047,), (1376552048,), (1376552050,), (1376552051,), (1376552065,), (1376552067,), (1376552070,), (1376552073,), (1376552092,), (1376552095,), (1376552098,), (1376552103,), (1376552107,), (1376552135,), (1376552136,), (1376552138,), (1376552140,), (1376552143,), (1376552146,), (1376552154,), (1376552158,), (1376552162,), (1376552177,), (1376552198,), (1376552297,), (1376552324,), (1376552346,), (1376552767,), (1376552770,), (1376552777,), (1376552780,), (1376552784,), (1376552787,), (1376552837,), (1376552861,), (1376552887,), (1376553055,), (1376553010,), (1376553024,), (1376553333,), (1376553423,), (1376553446,), (1376553468,), (1376553494,), (1376553518,), (1376553661,), (1376553664,), (1376553667,), (1376553671,), (1376553674,), (1376553870,), (1376553891,), (1376553915,), (1376553934,), (1376554224,), (1376554251,), (1376554274,), (1376554295,), (1376554322,), (1376554344,), (1376554593,), (1376554612,), (1376554614,), (1376554617,), (1376554618,), (1376554776,), (1376554799,), (1376554813,), (1376554815,), (1376554827,), (1376554829,), (1376554841,), (1376554847,), (1376554872,), (1376554875,), (1376554877,), (1376554879,), (1376554901,), (1376554903,), (1376554905,), (1376554906,), (1376554952,), (1376554954,), (1376554957,), (1376554961,), (1376554963,), (1376554966,), (1376554989,), (1376554991,), (1376554992,), (1376554994,), (1376554996,), (1376554999,), (1376555021,), (1376555024,), (1376555026,), (1376555028,), (1376555050,), (1376555053,), (1376555054,), (1376555057,), (1376555061,), (1376555064,), (1376555076,), (1376555122,), (1376555118,), (1376555119,), (1376555120,), (1376555135,), (1376555138,), (1376555168,), (1376555171,), (1376555174,), (1376555177,), (1376555179,), (1376555192,), (1376555200,), (1376555204,), (1376555206,), (1376555247,), (1376555251,), (1376555252,), (1376555254,), (1376555257,), (1376555281,), (1376555309,), (1376555325,), (1376555327,), (1376555344,), (1376555347,), (1376555348,), (1376555526,), (1376555513,), (1376555515,), (1376555518,), (1376555523,), (1376555545,), (1376555548,), (1376555549,), (1376555565,), (1376555570,), (1376555571,), (1376555573,), (1376555584,), (1376555586,), (1376555587,), (1376555589,), (1376555593,), (1376555597,), (1376555614,), (1376555616,), (1376555619,), (1376555621,), (1376555648,), (1376555650,), (1376555653,), (1376555657,), (1376555661,), (1376555676,), (1376555678,), (1376555681,), (1376555683,), (1376555685,), (1376555689,), (1376555699,), (1376555701,), (1376555702,), (1376555705,), (1376555711,), (1376555715,), (1376555718,), (1376555722,), (1376555733,), (1376555736,), (1376555739,), (1376555743,), (1376555745,), (1376555748,), (1376555766,), (1376555768,), (1376555770,), (1376555773,), (1376555805,), (1376555809,), (1376555810,), (1376555812,), (1376555813,), (1376555843,), (1376555846,), (1376555847,), (1376555849,), (1376555850,), (1376555853,), (1376555864,), (1376555866,), (1376555869,), (1376555873,), (1376555877,), (1376555882,), (1376555903,), (1376555911,), (1376555912,), (1376555914,), (1376555936,), (1376555940,), (1376555941,), (1376555944,), (1376555948,), (1376555952,), (1376555974,), (1376555970,), (1376555971,), (1376555972,), (1376555996,), (1376555998,), (1376556001,), (1376556004,), (1376556019,), (1376556020,), (1376556022,), (1376556025,), (1376556028,), (1376556031,), (1376556049,), (1376556053,), (1376556055,), (1376556057,), (1376556085,), (1376556088,), (1376556124,), (1376556125,), (1376556179,), (1376556196,), (1376556198,), (1376556199,), (1376556200,), (1376556203,), (1376556244,), (1376556246,), (1376556249,), (1376556253,), (1376556257,), (1376556260,), (1376556284,), (1376556287,), (1376556290,), (1376556294,), (1376556299,), (1376556319,), (1376556321,), (1376556325,), (1376556328,), (1376556329,), (1376556331,), (1376556339,), (1376556341,), (1376556345,), (1376556356,), (1376556359,), (1376556362,), (1376556366,), (1376556370,), (1376556372,), (1376556644,), (1376556671,), (1376556702,), (1376556729,), (1376556758,), (1376556839,), (1376556840,), (1376556863,), (1376556866,), (1376556889,), (1376556891,), (1376557087,), (1376557021,), (1376557026,), (1376557030,), (1376557034,), (1376557062,), (1376557440,), (1376557487,), (1376557535,), (1376557577,), (1376557600,), (1376557628,), (1376557915,), (1376557919,), (1376557921,), (1376557923,), (1376558081,), (1376558092,), (1376558109,), (1376558125,), (1376558149,), (1376558180,), (1376558452,), (1376558482,), (1376558506,), (1376558532,), (1376558555,), (1376558757,), (1376558761,), (1376558764,), (1376558769,), (1376558934,), (1376558950,), (1376558956,), (1376558958,), (1376558975,), (1376558979,), (1376558982,), (1376558985,), (1376558987,), (1376559014,), (1376559016,), (1376559021,), (1376559025,), (1376559075,), (1376559084,), (1376559090,), (1376559095,), (1376559100,), (1376559105,), (1376559121,), (1376559127,), (1376559163,), (1376559405,), (1376559425,), (1376559557,), (1376559586,), (1376559608,), (1376559610,), (1376559801,), (1376560066,), (1376560064,), (1376560096,), (1376560100,), (1376560104,), (1376560106,), (1376560110,), (1376560131,), (1376560135,), (1376560137,), (1376560170,), (1376560197,), (1376560221,), (1376560252,), (1376560286,), (1376560532,), (1376560544,), (1376560548,), (1376560550,), (1376560644,), (1376560651,), (1376560669,), (1376560673,), (1376560675,), (1376560676,), (1376560921,), (1376560968,), (1376560991,), (1376561001,), (1376561062,), (1376561066,), (1376561083,), (1376561087,), (1376561091,), (1376561214,), (1376561230,), (1376561236,), (1376561240,), (1376561242,), (1376561245,), (1376561249,), (1376561253,), (1376561255,), (1376561262,), (1376561286,), (1376561354,), (1376561379,), (1376561402,), (1376561404,), (1376561468,), (1376561473,), (1376561481,), (1376561483,), (1376561796,), (1376561839,), (1376561868,), (1376561908,), (1376561937,), (1376562076,), (1376562072,), (1376562074,), (1376562098,), (1376562101,), (1376562102,), (1376562104,), (1376562107,), (1376562138,), (1376562140,), (1376562142,), (1376562143,), (1376562146,), (1376562149,), (1376562169,), (1376562174,), (1376562176,), (1376562178,), (1376562194,), (1376562196,), (1376562199,), (1376562203,), (1376562206,), (1376562227,), (1376562231,), (1376562232,), (1376562235,), (1376562237,), (1376562257,), (1376562260,), (1376562262,), (1376562264,), (1376562265,), (1376562285,), (1376562294,), (1376562296,), (1376562304,), (1376562329,), (1376562513,), (1376562524,), (1376562528,), (1376562543,), (1376562567,), (1376562619,), (1376562624,), (1376562625,), (1376562664,), (1376562667,), (1376562669,), (1376562672,), (1376562677,), (1376562679,), (1376562711,), (1376562713,), (1376562716,), (1376562719,), (1376562720,), (1376562723,), (1376562728,), (1376562730,), (1376562731,), (1376562735,), (1376562738,), (1376562739,), (1376562753,), (1376562758,), (1376562762,), (1376562768,), (1376562798,), (1376562824,), (1376562979,), (1376562918,), (1376562948,), (1376563144,), (1376563169,), (1376563195,), (1376563220,), (1376563247,), (1376563274,), (1376563366,), (1376563368,), (1376563370,), (1376563372,), (1376563373,), (1376563386,), (1376563484,), (1376563508,), (1376563511,), (1376563514,), (1376563515,), (1376563523,), (1376563658,), (1376563683,), (1376563699,), (1376563702,), (1376563715,), (1376563723,), (1376563745,), (1376563749,), (1376563751,), (1376563754,), (1376563757,), (1376563760,), (1376563768,), (1376563771,), (1376563774,), (1376563777,), (1376563778,), (1376563781,), (1376563789,), (1376563804,), (1376563805,), (1376563807,), (1376563809,), (1376563811,), (1376563813,), (1376563831,), (1376563835,), (1376563836,), (1376563838,), (1376563840,), (1376563866,), (1376563875,), (1376563876,), (1376563878,), (1376563880,), (1376563890,), (1376563892,), (1376563894,), (1376563895,), (1376563897,), (1376563900,), (1376563919,), (1376563923,), (1376563924,), (1376563944,), (1376563946,), (1376563948,), (1376563967,), (1376563971,), (1376563973,), (1376563975,), (1376564632,), (1376564684,), (1376564746,), (1376564795,), (1376564853,), (1376564899,), (1376565072,), (1376565124,), (1376565196,), (1376565648,), (1376565490,), (1376565538,), (1376565569,), (1376565623,), (1376566277,), (1376566316,), (1376566349,), (1376566409,), (1376566844,), (1376566896,), (1376566941,), (1376566989,), (1376567459,), (1376567487,), (1376567656,), (1376567660,), (1376567661,), (1376567844,), (1376567869,), (1376567898,), (1376567922,), (1376568231,), (1376568261,), (1376568276,), (1376568449,), (1376568757,), (1376568759,), (1376568760,), (1376568762,), (1376568776,), (1376568777,), (1376568798,), (1376568801,), (1376568802,), (1376568804,), (1376568845,), (1376568869,), (1376568873,), (1376568882,), (1376568890,), (1376569046,), (1376569064,), (1376569068,), (1376569070,), (1376569073,), (1376569094,), (1376569096,), (1376569098,), (1376569129,), (1376569124,), (1376569126,), (1376569127,), (1376569171,), (1376569176,), (1376569181,), (1376569184,), (1376569185,), (1376569234,), (1376569237,), (1376569260,), (1376569380,), (1376569384,), (1376569386,), (1376569420,), (1376569425,), (1376569473,), (1376569476,), (1376569478,), (1376569499,), (1376569502,), (1376569503,), (1376569505,), (1376569506,), (1376569526,), (1376569531,), (1376569533,), (1376569534,), (1376569536,), (1376569575,), (1376569719,), (1376569720,), (1376569724,), (1376569747,), (1376569749,), (1376569775,), (1376569778,), (1376569779,), (1376569792,), (1376569795,), (1376569796,), (1376569798,), (1376569821,), (1376569824,), (1376569827,), (1376569831,), (1376569836,), (1376569838,), (1376569861,), (1376569865,), (1376569866,), (1376569867,), (1376569873,), (1376569905,), (1376572096,), (1376572100,), (1376572102,), (1376572103,), (1376572133,), (1376572136,), (1376572139,), (1376572143,), (1376572147,), (1376572168,), (1376572172,), (1376572174,), (1376572179,), (1376572183,), (1376572186,), (1376572204,), (1376572207,), (1376572211,), (1376572214,), (1376572216,), (1376572219,), (1376572233,), (1376572270,), (1376572273,), (1376572274,), (1376572300,), (1376572305,), (1376572307,), (1376572330,), (1376572331,), (1376572333,), (1376572335,), (1376572336,), (1376572340,), (1376572358,), (1376572359,), (1376572361,), (1376572365,), (1376572366,), (1376572370,), (1376572381,), (1376572384,), (1376572386,), (1376572391,), (1376572392,), (1376572422,), (1376572426,), (1376572427,), (1376572429,), (1376572430,), (1376572452,), (1376572455,), (1376572483,), (1376572486,), (1376572488,), (1376572489,), (1376572527,), (1376572532,), (1376572537,), (1376572543,), (1376572546,), (1376572551,), (1376572561,), (1376572564,), (1376572566,), (1376572641,), (1376569892,), (1376569896,), (1376569899,), (1376569901,), (1376569903,), (1376569923,), (1376569927,), (1376569929,), (1376569930,), (1376569932,), (1376569961,), (1376569963,), (1376569990,), (1376569992,), (1376569995,), (1376569998,), (1376570000,), (1376570011,), (1376570013,), (1376570014,), (1376570016,), (1376570017,), (1376570034,), (1376570036,), (1376570037,), (1376570038,), (1376570069,), (1376570071,), (1376570074,), (1376570079,), (1376570080,), (1376570101,), (1376570108,), (1376570111,), (1376570116,), (1376570119,), (1376570121,), (1376570128,), (1376570132,), (1376570135,), (1376570140,), (1376570143,), (1376570145,), (1376570155,), (1376570158,), (1376570162,), (1376570164,), (1376570167,), (1376570169,), (1376570177,), (1376570181,), (1376570185,), (1376570190,), (1376570193,), (1376570196,), (1376570206,), (1376570209,), (1376570213,), (1376570217,), (1376570219,), (1376570224,), (1376570242,), (1376570247,), (1376570249,), (1376570251,), (1376570272,), (1376570274,), (1376570278,), (1376570281,), (1376570285,), (1376570288,), (1376570310,), (1376570312,), (1376570314,), (1376570316,), (1376570317,), (1376570321,), (1376570346,), (1376570350,), (1376570354,), (1376570359,), (1376570391,), (1376570445,), (1376570379,), (1376570380,), (1376570383,), (1376570388,), (1376570414,), (1376570416,), (1376570420,), (1376570424,), (1376570426,), (1376570428,), (1376570434,), (1376570437,), (1376570440,), (1376570444,), (1376570449,), (1376570452,), (1376570454,), (1376570469,), (1376570472,), (1376570474,), (1376570477,), (1376570480,), (1376570483,), (1376570505,), (1376570508,), (1376570509,), (1376570510,), (1376570537,), (1376570541,), (1376570542,), (1376570543,), (1376570547,), (1376570551,), (1376570565,), (1376570567,), (1376570568,), (1376570589,), (1376570591,), (1376570595,), (1376570599,), (1376570603,), (1376570607,), (1376570625,), (1376570627,), (1376570630,), (1376570634,), (1376570636,), (1376570651,), (1376570656,), (1376570661,), (1376570665,), (1376570668,), (1376570673,), (1376570686,), (1376570688,), (1376570689,), (1376570692,), (1376570695,), (1376570724,), (1376570725,), (1376570727,), (1376570728,), (1376570730,), (1376570733,), (1376570744,), (1376570747,), (1376570749,), (1376570750,), (1376570752,), (1376570758,), (1376570761,), (1376570796,), (1376570799,), (1376570805,), (1376570809,), (1376570812,), (1376570815,), (1376570838,), (1376571598,), (1376571602,), (1376571631,), (1376571638,), (1376571640,), (1376571667,), (1376571671,), (1376571673,), (1376571674,), (1376571695,), (1376571701,), (1376571704,), (1376571706,), (1376571708,), (1376571730,), (1376571733,), (1376571736,), (1376571765,), (1376571769,), (1376571772,), (1376571801,), (1376571803,), (1376571805,), (1376571806,), (1376571808,), (1376571825,), (1376571829,), (1376571831,), (1376571834,), (1376571863,), (1376571865,), (1376571868,), (1376571871,), (1376571874,), (1376571905,), (1376571909,), (1376571910,), (1376571912,), (1376571913,), (1376571937,), (1376571965,), (1376571970,), (1376571972,), (1376571973,), (1376571976,), (1376571981,), (1376571995,), (1376571997,), (1376571999,), (1376572005,), (1376572009,), (1376572012,), (1376572016,), (1376572020,), (1376572024,), (1376572031,), (1376572035,), (1376572037,), (1376572056,), (1376572058,), (1376572060,), (1376572062,), (1376572068,), (1376572074,), (1376572106,), (1376572624,), (1376572629,), (1376572632,), (1376572635,), (1376572639,), (1376572665,), (1376572670,), (1376572674,), (1376572678,), (1376572730,), (1376572749,), (1376572755,), (1376572768,), (1376572774,), (1376572778,), (1376572804,), (1376572810,), (1376572813,), (1376572815,), (1376572817,), (1376572820,), (1376572836,), (1376572839,), (1376572849,), (1376572882,), (1376572885,), (1376572888,), (1376572891,), (1376572893,), (1376572899,), (1376572927,), (1376572929,), (1376572932,), (1376572956,), (1376572961,), (1376572971,), (1376573009,), (1376573033,), (1376573056,), (1376573081,), (1376573085,), (1376573108,), (1376573138,), (1376573163,), (1376573198,), (1376573249,), (1376573254,), (1376573256,), (1376573258,), (1376573281,), (1376573285,), (1376573286,), (1376573289,), (1376573292,), (1376573295,), (1376573307,), (1376573312,), (1376573313,), (1376573316,), (1376573318,), (1376573332,), (1376573336,), (1376573338,), (1376573339,), (1376573352,), (1376573357,), (1376573360,), (1376573364,), (1376573369,), (1376573386,), (1376573389,), (1376573391,), (1376573392,), (1376573398,), (1376573407,), (1376573465,), (1376573470,), (1376573472,), (1376573474,), (1376573476,), (1376573596,), (1376573640,), (1376573577,), (1376573589,), (1376573618,), (1376573620,), (1376573623,), (1376573626,), (1376573630,), (1376573633,), (1376573639,), (1376573643,), (1376573646,), (1376573648,), (1376573652,), (1376573655,), (1376573659,), (1376573689,), (1376573694,), (1376573697,), (1376573720,), (1376573724,), (1376573726,), (1376573730,), (1376573738,), (1376573742,), (1376573762,), (1376573767,), (1376573769,), (1376573771,), (1376573792,), (1376573797,), (1376573814,), (1376573858,), (1376573902,), (1376574420,), (1376574425,), (1376574429,), (1376574432,), (1376574451,), (1376574460,), (1376574486,), (1376574490,), (1376574491,), (1376574496,), (1376574558,), (1376574561,), (1376574567,), (1376574572,), (1376574647,), (1376574649,), (1376574651,), (1376574654,), (1376574669,), (1376574689,), (1376574709,), (1376574722,), (1376574728,), (1376574733,), (1376574737,), (1376574780,), (1376574784,), (1376574788,), (1376574842,), (1376574845,), (1376574872,), (1376574876,), (1376574879,), (1376574882,), (1376574886,), (1376574889,), (1376575082,), (1376575135,), (1376575161,), (1376575170,), (1376575175,), (1376575242,), (1376575271,), (1376575296,), (1376575684,), (1376575652,), (1376575658,), (1376575660,), (1376575673,), (1376575740,), (1376575767,), (1376575793,), (1376575819,), (1376575829,), (1376575881,), (1376576005,), (1376576011,), (1376576013,), (1376576081,), (1376576084,), (1376576086,), (1376576088,), (1376576474,), (1376576509,), (1376576516,), (1376576547,), (1376576590,), (1376576861,), (1376576875,), (1376576894,), (1376576931,), (1376576936,), (1376576938,), (1376576955,), (1376577048,), (1376577058,), (1376577084,), (1376577089,), (1376577094,), (1376577095,), (1376577115,), (1376577120,), (1376577123,), (1376577126,), (1376577269,), (1376577335,), (1376577359,), (1376577362,), (1376577416,), (1376577604,), (1376577631,), (1376577954,), (1376578223,), (1376578228,), (1376578236,), (1376578300,), (1376578509,), (1376578560,), (1376578599,), (1376578612,), (1376578826,), (1376578853,), (1376578883,), (1376578927,), (1376578976,), (1376579000,), (1376579105,), (1376579125,), (1376579129,), (1376579132,), (1376579133,), (1376579137,), (1376579227,), (1376579231,), (1376579233,), (1376579234,), (1376579237,), (1376579339,), (1376579357,), (1376579378,), (1376579387,), (1376579393,), (1376579398,), (1376579454,), (1376579473,), (1376579494,), (1376579496,), (1376579579,), (1376579582,), (1376579587,), (1376579591,), (1376579597,), (1376579602,), (1376579610,), (1376579613,), (1376579615,), (1376579617,), (1376579630,), (1376579632,), (1376579635,), (1376579811,), (1376579839,), (1376579864,), (1376580165,), (1376580176,), (1376580238,), (1376580243,), (1376580278,), (1376580281,), (1376580753,), (1376580759,), (1376580793,), (1376580823,), (1376580849,), (1376581000,), (1376580961,), (1376580968,), (1376580990,), (1376581173,), (1376581771,), (1376581916,), (1376581961,), (1376582014,), (1376582384,), (1376582413,), (1376582523,), (1376582525,), (1376582527,), (1376582531,), (1376582770,), (1376582795,), (1376582818,), (1376582845,), (1376582870,), (1376583045,), (1376583096,), (1376583134,), (1376583161,), (1376583188,), (1376583216,), (1376583536,), (1376583561,), (1376583586,), (1376583904,), (1376583907,), (1376583909,), (1376583912,), (1376583923,), (1376583925,), (1376584216,), (1376584223,), (1376584224,), (1376584227,), (1376584229,), (1376584232,), (1376584234,), (1376584237,), (1376584240,), (1376584243,), (1376584246,), (1376584270,), (1376584378,), (1376584406,), (1376584431,), (1376584466,), (1376584515,), (1376584752,), (1376584851,), (1376584876,), (1376584904,), (1376584934,), (1376584958,), (1376585208,), (1376585237,), (1376585268,), (1376585308,), (1376585332,), (1376585358,), (1376585728,), (1376585756,), (1376586563,), (1376586589,), (1376586647,), (1376586678,), (1376586720,), (1376586745,), (1376587006,), (1376586975,), (1376586977,), (1376586978,), (1376586980,), (1376587024,), (1376587028,), (1376587030,), (1376587031,), (1376587268,), (1376587297,), (1376587323,), (1376587347,), (1376587398,), (1376587452,), (1376587640,), (1376587989,), (1376588055,), (1376588102,), (1376588153,), (1376588510,), (1376588535,), (1376588548,), (1376588560,), (1376588563,), (1376588572,), (1376588709,), (1376588771,), (1376588811,), (1376588839,), (1376588881,), (1376588909,), (1376589168,), (1376589195,), (1376589595,), (1376589624,), (1376589648,), (1376590006,), (1376590036,), (1376590063,), (1376590099,), (1376590131,), (1376590162,), (1376590452,), (1376590477,), (1376590505,), (1376590531,), (1376590563,), (1376590590,), (1376590625,), (1376590652,), (1376590658,), (1376590659,), (1376590663,), (1376590676,), (1376590812,), (1376590865,), (1376590919,), (1376590961,), (1376591179,), (1376591223,), (1376591245,), (1376591271,), (1376591565,), (1376591595,), (1376591620,), (1376591646,), (1376591672,), (1376591699,), (1376591759,), (1376591789,), (1376591813,), (1376591837,), (1376591866,), (1376591908,), (1376592005,), (1376592022,), (1376592023,), (1376592026,), (1376592028,), (1376592054,), (1376592051,), (1376592053,), (1376592080,), (1376592083,), (1376592103,), (1376592106,), (1376592107,), (1376592108,), (1376592292,), (1376592302,), (1376592314,), (1376592324,), (1376592331,), (1376592339,), (1376592340,), (1376592341,), (1376592344,), (1376592346,), (1376592349,), (1376592358,), (1376592362,), (1376592364,), (1376592366,), (1376592367,), (1376592368,), (1376592626,), (1376592772,), (1376592777,), (1376592778,), (1376592780,), (1376592884,), (1376592911,), (1376592916,), (1376593062,), (1376593065,), (1376593066,), (1376593067,), (1376593069,), (1376593072,), (1376593201,), (1376593236,), (1376593238,), (1376593239,), (1376593297,), (1376593299,), (1376593300,), (1376593301,), (1376593339,), (1376593345,), (1376593348,), (1376593353,), (1376593383,), (1376593386,), (1376593387,), (1376593389,), (1376593746,), (1376593771,), (1376593793,), (1376593854,), (1376593892,), (1376593919,), (1376593978,), (1376593982,), (1376594245,), (1376594091,), (1376594138,), (1376594187,), (1376594411,), (1376594471,), (1376594550,), (1376594580,), (1376594611,), (1376594844,), (1376594845,), (1376594846,), (1376594849,), (1376594853,), (1376594878,), (1376594935,), (1376594944,), (1376594947,), (1376594950,), (1376594951,), (1376594954,), (1376594958,), (1376594966,), (1376594967,), (1376594977,), (1376594980,), (1376594981,), (1376594987,), (1376594991,), (1376594993,), (1376595018,), (1376595128,), (1376595176,), (1376595178,), (1376595180,), (1376595185,), (1376595189,), (1376595192,), (1376595267,), (1376595276,), (1376595277,), (1376595278,), (1376595281,), (1376595377,), (1376595391,), (1376595413,), (1376595435,), (1376595446,), (1376595449,), (1376595514,), (1376595516,), (1376595523,), (1376595525,), (1376595581,), (1376595582,), (1376595626,), (1376595638,), (1376595642,), (1376595645,), (1376595676,), (1376595685,), (1376595691,), (1376595695,), (1376595697,), (1376595707,), (1376595711,), (1376595712,), (1376595713,), (1376595714,), (1376595897,), (1376595924,), (1376595950,), (1376595978,), (1376596003,), (1376596033,), (1376596078,), (1376596082,), (1376596088,), (1376596089,), (1376596090,), (1376596394,), (1376596399,), (1376596414,), (1376596461,), (1376597087,), (1376597022,), (1376597052,), (1376597511,), (1376597539,), (1376597563,), (1376597564,), (1376597568,), (1376597688,), (1376597720,), (1376597754,), (1376597777,), (1376598372,), (1376598405,), (1376598431,), (1376598464,), (1376598935,), (1376598961,), (1376598967,), (1376598969,), (1376598971,), (1376598973,), (1376598981,), (1376598984,), (1376598991,), (1376598992,), (1376599056,), (1376599084,), (1376599111,), (1376599137,), (1376599165,), (1376599192,), (1376599278,), (1376599395,), (1376599398,), (1376599400,), (1376599454,), (1376599456,), (1376599620,), (1376599626,), (1376599662,), (1376599659,), (1376599682,), (1376599688,), (1376599692,), (1376599705,), (1376599801,), (1376599825,), (1376599851,), (1376599875,), (1376599899,), (1376599923,), (1376600108,), (1376600114,), (1376600118,), (1376600149,), (1376600154,), (1376600159,), (1376600163,), (1376600201,), (1376600205,), (1376600224,), (1376600229,), (1376600234,), (1376600237,), (1376600257,), (1376600261,), (1376600264,), (1376600266,), (1376600271,), (1376600275,), (1376600336,), (1376600342,), (1376600345,), (1376600368,), (1376600372,), (1376600375,), (1376600377,), (1376600395,), (1376600428,), (1376600453,), (1376600456,), (1376600459,), (1376600463,), (1376600465,), (1376600468,), (1376600553,), (1376600560,), (1376600572,), (1376600582,), (1376600609,), (1376600633,), (1376600642,), (1376600646,), (1376600652,), (1376600683,), (1376600724,), (1376600731,), (1376600733,), (1376600741,), (1376600771,), (1376600803,), (1376600824,), (1376600828,), (1376600830,), (1376600833,), (1376600834,), (1376600836,), (1376600861,), (1376600901,), (1376601108,), (1376601154,), (1376601202,), (1376601281,), (1376601330,), (1376601370,), (1376601527,), (1376601532,), (1376601536,), (1376601636,), (1376601631,), (1376601635,), (1376601651,), (1376601654,), (1376601656,), (1376601660,), (1376601703,), (1376601708,), (1376601712,), (1376601714,), (1376601716,), (1376601843,), (1376601848,), (1376601865,), (1376601867,), (1376601870,), (1376601873,), (1376601876,), (1376601900,), (1376601903,), (1376601955,), (1376601958,), (1376601960,), (1376601975,), (1376601986,), (1376601988,), (1376602133,), (1376602138,), (1376602140,), (1376602142,), (1376602143,), (1376602168,), (1376602173,), (1376602175,), (1376602176,), (1376602196,), (1376606628,), (1376607991,), (1376607998,), (1376608001,), (1376608182,), (1376608215,), (1376608241,), (1376608268,), (1376609244,), (1376609274,), (1376609277,), (1376609281,), (1376609288,), (1376609291,), (1376609321,), (1376609327,), (1376609331,), (1376609335,), (1376609384,), (1376609388,), (1376609390,), (1376609392,), (1376609425,), (1376609496,), (1376609501,), (1376609503,), (1376609633,), (1376609704,), (1376609706,), (1376609708,), (1376609711,), (1376609740,), (1376610771,), (1376610822,), (1376610826,), (1376610828,), (1376610829,), (1376610876,), (1376610879,), (1376610882,), (1376611213,), (1376611612,), (1376611654,), (1376611683,), (1376611710,), (1376613380,), (1376613374,), (1376613409,), (1376613414,), (1376613422,), (1376613427,), (1376613431,), (1376613443,), (1376613479,), (1376613467,), (1376613471,), (1376613474,), (1376613476,), (1376613509,), (1376613512,), (1376613515,), (1376613517,), (1376613545,), (1376613549,), (1376613553,), (1376613555,), (1376613558,), (1376613560,), (1376613609,), (1376613611,), (1376613613,), (1376613616,), (1376613619,), (1376613623,), (1376613897,), (1376613921,), (1376613949,), (1376613974,), (1376614000,), (1376614026,), (1376614131,), (1376614235,), (1376615248,), (1376615251,), (1376615254,), (1376615256,), (1376615562,), (1376615589,), (1376615617,), (1376615641,), (1376615667,), (1376615671,), (1376615807,), (1376615823,), (1376615825,), (1376615850,), (1376615908,), (1376615911,), (1376616038,), (1376616063,), (1376616088,), (1376616111,), (1376616135,), (1376616293,), (1376616302,), (1376616308,), (1376616315,), (1376616327,), (1376616346,), (1376616348,), (1376616353,), (1376616354,), (1376616359,), (1376616364,), (1376616375,), (1376616380,), (1376616383,), (1376616399,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12082025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25914094]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] map_info['map_portfolio_photo'] : {25914094: [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293, 1376616135, 1376616111, 1376616088, 1376616063, 1376616038, 1376615911, 1376615908, 1376615850, 1376615825, 1376615823, 1376615807, 1376615671, 1376615667, 1376615641, 1376615617, 1376615589, 1376615562, 1376615256, 1376615254, 1376615251, 1376615248, 1376614235, 1376614131, 1376614026, 1376614000, 1376613974, 1376613949, 1376613921, 1376613897, 1376613623, 1376613619, 1376613616, 1376613613, 1376613611, 1376613609, 1376613560, 1376613558, 1376613555, 1376613553, 1376613549, 1376613545, 1376613517, 1376613515, 1376613512, 1376613509, 1376613476, 1376613474, 1376613471, 1376613467]} final : True mtd_id 4302 list_pids : [1376616399, 1376616383, 1376616380, 1376616375, 1376616364, 1376616359, 1376616354, 1376616353, 1376616348, 1376616346, 1376616327, 1376616315, 1376616308, 1376616302, 1376616293] Looping around the photos to save general results len do output : 1 /25914094Didn'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, '3512632') ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632') ('4302', None, None, None, None, None, None, None, '3512632') ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25914094', 'None', None, None, None, None, '3512632'), ('4302', '25914094', '1376616399', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616383', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616380', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616375', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616364', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616359', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616354', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616353', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616348', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616346', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616327', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616315', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616308', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616302', None, None, None, None, None, '3512632'), ('4302', '25914094', '1376616293', None, None, None, None, None, '3512632')] time used for this insertion : 0.01394796371459961 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.437758445739746 time spend to save output : 0.014214277267456055 total time spend for step 5 : 2.451972723007202 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 (3512632) 2.33user 2.43system 0:09.25elapsed 51%CPU (0avgtext+0avgdata 162056maxresident)k 3496inputs+14576outputs (106major+74954minor)pagefaults 0swaps