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 : 1333367 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 (3734459) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3734459) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940069 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3734459'] with mtr_portfolio_ids : ['26940069'] and first list_photo_ids : [] new path : /proc/1333367/ Name: python3 Umask: 0002 State: R (running) Tgid: 1333367 Ngid: 0 Pid: 1333367 PPid: 1333365 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1333367 NSpid: 1333367 NSpgid: 1331563 NSsid: 1331563 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98300 kB VmRSS: 98300 kB RssAnon: 60172 kB RssFile: 38128 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 121 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1333367', 'Ngid': '0', 'Pid': '1333367', 'PPid': '1333365', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1333367', 'NSpid': '1333367', 'NSpgid': '1331563', 'NSsid': '1331563', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98300 kB', 'VmRSS': '98300 kB', 'RssAnon': '60172 kB', 'RssFile': '38128 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '121'} ('datou_batch_current', '1333367', '1107252', '0', '1107252', '866004', '98300', b'', 'marlene', '3734459') 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 (26940069) 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 (3734459 ) ) 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 (26940069) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1384133881, 'portfolio_id': 26940069}, {'photo_id': 1384133830, 'portfolio_id': 26940069}, {'photo_id': 1384133827, 'portfolio_id': 26940069}, {'photo_id': 1384133825, 'portfolio_id': 26940069}, {'photo_id': 1384133814, 'portfolio_id': 26940069}, {'photo_id': 1384133806, 'portfolio_id': 26940069}, {'photo_id': 1384133803, 'portfolio_id': 26940069}, {'photo_id': 1384133798, 'portfolio_id': 26940069}, {'photo_id': 1384133794, 'portfolio_id': 26940069}, {'photo_id': 1384133792, 'portfolio_id': 26940069}, {'photo_id': 1384133770, 'portfolio_id': 26940069}, {'photo_id': 1384133766, 'portfolio_id': 26940069}, {'photo_id': 1384133763, 'portfolio_id': 26940069}, {'photo_id': 1384133762, 'portfolio_id': 26940069}, {'photo_id': 1384133761, 'portfolio_id': 26940069}, {'photo_id': 1384133733, 'portfolio_id': 26940069}, {'photo_id': 1384133731, 'portfolio_id': 26940069}, {'photo_id': 1384133725, 'portfolio_id': 26940069}, {'photo_id': 1384133650, 'portfolio_id': 26940069}, {'photo_id': 1384133634, 'portfolio_id': 26940069}, {'photo_id': 1384133608, 'portfolio_id': 26940069}, {'photo_id': 1384133578, 'portfolio_id': 26940069}, {'photo_id': 1384133551, 'portfolio_id': 26940069}, {'photo_id': 1384133231, 'portfolio_id': 26940069}, {'photo_id': 1384133207, 'portfolio_id': 26940069}, {'photo_id': 1384133183, 'portfolio_id': 26940069}, {'photo_id': 1384133158, 'portfolio_id': 26940069}, {'photo_id': 1384132634, 'portfolio_id': 26940069}, {'photo_id': 1384132587, 'portfolio_id': 26940069}, {'photo_id': 1384132563, 'portfolio_id': 26940069}, {'photo_id': 1384131849, 'portfolio_id': 26940069}, {'photo_id': 1384131781, 'portfolio_id': 26940069}, {'photo_id': 1384131656, 'portfolio_id': 26940069}, {'photo_id': 1384131157, 'portfolio_id': 26940069}, {'photo_id': 1384131022, 'portfolio_id': 26940069}, {'photo_id': 1384130977, 'portfolio_id': 26940069}, {'photo_id': 1384130492, 'portfolio_id': 26940069}, {'photo_id': 1384130467, 'portfolio_id': 26940069}, {'photo_id': 1384130450, 'portfolio_id': 26940069}, {'photo_id': 1384130448, 'portfolio_id': 26940069}, {'photo_id': 1384130337, 'portfolio_id': 26940069}, {'photo_id': 1384130317, 'portfolio_id': 26940069}, {'photo_id': 1384130315, 'portfolio_id': 26940069}, {'photo_id': 1384130232, 'portfolio_id': 26940069}, {'photo_id': 1384130230, 'portfolio_id': 26940069}, {'photo_id': 1384130229, 'portfolio_id': 26940069}, {'photo_id': 1384130223, 'portfolio_id': 26940069}, {'photo_id': 1384130079, 'portfolio_id': 26940069}, {'photo_id': 1384130076, 'portfolio_id': 26940069}, {'photo_id': 1384129967, 'portfolio_id': 26940069}, {'photo_id': 1384129940, 'portfolio_id': 26940069}, {'photo_id': 1384129916, 'portfolio_id': 26940069}, {'photo_id': 1384129914, 'portfolio_id': 26940069}, {'photo_id': 1384129911, 'portfolio_id': 26940069}] map_portfolio_id_photo_id: {26940069: [1384133881, 1384133830, 1384133827, 1384133825, 1384133814, 1384133806, 1384133803, 1384133798, 1384133794, 1384133792, 1384133770, 1384133766, 1384133763, 1384133762, 1384133761, 1384133733, 1384133731, 1384133725, 1384133650, 1384133634, 1384133608, 1384133578, 1384133551, 1384133231, 1384133207, 1384133183, 1384133158, 1384132634, 1384132587, 1384132563, 1384131849, 1384131781, 1384131656, 1384131157, 1384131022, 1384130977, 1384130492, 1384130467, 1384130450, 1384130448, 1384130337, 1384130317, 1384130315, 1384130232, 1384130230, 1384130229, 1384130223, 1384130079, 1384130076, 1384129967, 1384129940, 1384129916, 1384129914, 1384129911]} ##### 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.016004562377929688 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Sep 17 11:32:57 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 (26940069) 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 : 26940069 get user id for portfolio 26940069 get sub ptf for main ptf 26940069, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'cartonnette', 'kraft', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'environnement', 'papier', 'metal', 'flou'] 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`=26940069 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','kraft','plastique','Carton_brun','Teint_Dans_La_Masse','mal_croppe','environnement','papier','metal','flou')) 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`=26940069 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','kraft','plastique','Carton_brun','Teint_Dans_La_Masse','mal_croppe','environnement','papier','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26940069, 'sub_port_id': 26940075, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169746, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'Carton_brun': {'main_port_id': 26940069, 'sub_port_id': 26940076, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169747, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'Carton_gris': {'main_port_id': 26940069, 'sub_port_id': 26940077, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169748, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'flou': {'main_port_id': 26940069, 'sub_port_id': 26940078, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169749, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'papier': {'main_port_id': 26940069, 'sub_port_id': 26940079, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169750, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'cartonnette': {'main_port_id': 26940069, 'sub_port_id': 26940080, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169751, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 26940069, 'sub_port_id': 26940081, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169752, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'plastique': {'main_port_id': 26940069, 'sub_port_id': 26940082, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169753, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'environnement': {'main_port_id': 26940069, 'sub_port_id': 26940083, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169754, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'metal': {'main_port_id': 26940069, 'sub_port_id': 26940084, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169755, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'kraft': {'main_port_id': 26940069, 'sub_port_id': 26940085, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169756, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}, 'mal_croppe': {'main_port_id': 26940069, 'sub_port_id': 26940086, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169757, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940075 , 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=26940069 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 (26940075) result : ((1384133431,), (1384133432,), (1384133433,), (1384133809,), (1384133891,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940076 , 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=26940069 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 (26940076) result : ((1384132122,), (1384133444,), (1384133446,), (1384133759,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940077 , 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=26940069 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 (26940077) result : ((1384132075,), (1384132080,), (1384132084,), (1384132430,), (1384133436,), (1384133437,), (1384133757,), (1384133811,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940078 , 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=26940069 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 (26940078) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940079 , 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=26940069 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 (26940079) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940080 , 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=26940069 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 (26940080) result : ((1384132104,), (1384133438,), (1384133758,), (1384133812,), (1384133813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940081 , 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=26940069 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 (26940081) result : ((1384132413,), (1384132416,), (1384133426,), (1384133427,), (1384133428,), (1384133429,), (1384133753,), (1384133754,), (1384133755,), (1384133756,), (1384133807,), (1384133890,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940082 , 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=26940069 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 (26940082) result : ((1384132152,), (1384132156,), (1384132160,), (1384133462,), (1384133464,), (1384133466,), (1384133468,), (1384133470,), (1384133472,), (1384133474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940083 , 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=26940069 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 (26940083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940084 , 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=26940069 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 (26940084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940085 , 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=26940069 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 (26940085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26940086 , 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=26940069 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 (26940086) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26940069) result : ((1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26940069 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','kraft','plastique','Carton_brun','Teint_Dans_La_Masse','mal_croppe','environnement','papier','metal','flou')) 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`=26940069 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','kraft','plastique','Carton_brun','Teint_Dans_La_Masse','mal_croppe','environnement','papier','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26940069, 'sub_port_id': 26940087, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169758, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'Carton_brun': {'main_port_id': 26940069, 'sub_port_id': 26940088, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169759, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'Carton_gris': {'main_port_id': 26940069, 'sub_port_id': 26940089, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169760, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'flou': {'main_port_id': 26940069, 'sub_port_id': 26940090, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169761, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'papier': {'main_port_id': 26940069, 'sub_port_id': 26940091, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169762, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'cartonnette': {'main_port_id': 26940069, 'sub_port_id': 26940092, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169763, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 26940069, 'sub_port_id': 26940093, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169764, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'plastique': {'main_port_id': 26940069, 'sub_port_id': 26940094, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169765, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'environnement': {'main_port_id': 26940069, 'sub_port_id': 26940095, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169766, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'metal': {'main_port_id': 26940069, 'sub_port_id': 26940096, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169767, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'kraft': {'main_port_id': 26940069, 'sub_port_id': 26940097, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169768, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}, 'mal_croppe': {'main_port_id': 26940069, 'sub_port_id': 26940098, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18169769, 'last_updated_at': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 17, 11, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 17, 11, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26940098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26940086 lien utilise dans velours : https://marlene.fotonower.com/velours/26940087,26940088,26940089,26940090,26940091,26940092,26940093,26940094,26940095,26940096,26940097,26940098?tags=autre_refus,Carton_brun,Carton_gris,flou,papier,cartonnette,Teint_Dans_La_Masse,plastique,environnement,metal,kraft,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26940069]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1384133881] map_info['map_portfolio_photo'] : {26940069: [1384133881, 1384133830, 1384133827, 1384133825, 1384133814, 1384133806, 1384133803, 1384133798, 1384133794, 1384133792, 1384133770, 1384133766, 1384133763, 1384133762, 1384133761, 1384133733, 1384133731, 1384133725, 1384133650, 1384133634, 1384133608, 1384133578, 1384133551, 1384133231, 1384133207, 1384133183, 1384133158, 1384132634, 1384132587, 1384132563, 1384131849, 1384131781, 1384131656, 1384131157, 1384131022, 1384130977, 1384130492, 1384130467, 1384130450, 1384130448, 1384130337, 1384130317, 1384130315, 1384130232, 1384130230, 1384130229, 1384130223, 1384130079, 1384130076, 1384129967, 1384129940, 1384129916, 1384129914, 1384129911]} final : False mtd_id 4302 list_pids : [1384133881] Looping around the photos to save general results len do output : 1 /26940069. 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, '3734459') ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26940069', "{'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086}", None, None, None, None, '3734459'), ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459')] time used for this insertion : 0.014749526977539062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.631256341934204 time spend to save output : 0.014995098114013672 total time spend for step 1 : 1.6462514400482178 step2:final Wed Sep 17 11:32:59 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 (26940069) 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 26940069 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1384129967,1384129911,1384129940,1384129916,1384129914,1384130079,1384130076,1384130232,1384130230,1384130229,1384130223,1384130337,1384130317,1384130315,1384130492,1384130467,1384130450,1384130448,1384131157,1384131022,1384130977,1384131849,1384131781,1384131656,1384132634,1384132587,1384132563,1384133231,1384133207,1384133183,1384133158,1384133650,1384133634,1384133608,1384133578,1384133551,1384133733,1384133731,1384133725,1384133770,1384133766,1384133763,1384133762,1384133761,1384133814,1384133806,1384133803,1384133798,1384133794,1384133792,1384133830,1384133827,1384133825,1384133881); 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([26940069]) Inside saveOutput : final : False verbose : True original output for save of step final : {1384133881: ('0.11228860929590834',)} new output for save of step final : {1384133881: ('0.11228860929590834',)} [1384133881] map_info['map_portfolio_photo'] : {26940069: [1384133881, 1384133830, 1384133827, 1384133825, 1384133814, 1384133806, 1384133803, 1384133798, 1384133794, 1384133792, 1384133770, 1384133766, 1384133763, 1384133762, 1384133761, 1384133733, 1384133731, 1384133725, 1384133650, 1384133634, 1384133608, 1384133578, 1384133551, 1384133231, 1384133207, 1384133183, 1384133158, 1384132634, 1384132587, 1384132563, 1384131849, 1384131781, 1384131656, 1384131157, 1384131022, 1384130977, 1384130492, 1384130467, 1384130450, 1384130448, 1384130337, 1384130317, 1384130315, 1384130232, 1384130230, 1384130229, 1384130223, 1384130079, 1384130076, 1384129967, 1384129940, 1384129916, 1384129914, 1384129911]} final : False mtd_id 4302 list_pids : [1384133881] Looping around the photos to save general results len do output : 1 /1384133881.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, '3734459') ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '26940069', '1384133881', '0.11228860929590834', None, None, None, None, '3734459')] time used for this insertion : 0.013897180557250977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06888604164123535 time spend to save output : 0.014102458953857422 total time spend for step 2 : 0.08298850059509277 step3:velours_tree Wed Sep 17 11:32:59 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 : {26940069: [{'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086}]} input_args_next_step : {26940069: ()} output_args : {26940069: [{'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086}]} args : 26940069 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 : ({'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26940069) 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([26940069]) 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.3286113739013672 time spend to save output : 5.745887756347656e-05 total time spend for step 3 : 0.32866883277893066 step4:send_mail_cod Wed Sep 17 11:32:59 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 : {1384133881: ('0.11228860929590834',)} input_args_next_step : {1384133881: ()} output_args : {1384133881: ('0.11228860929590834',)} args : 1384133881 depend.output_id : 0 complete output_args for input 3 : {26940069: [{'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086}]} input_args_next_step : {1384133881: ('0.11228860929590834',), 26940069: ()} output_args : {26940069: [{'autre_refus': 26940075, 'Carton_brun': 26940076, 'Carton_gris': 26940077, 'flou': 26940078, 'papier': 26940079, 'cartonnette': 26940080, 'Teint_Dans_La_Masse': 26940081, 'plastique': 26940082, 'environnement': 26940083, 'metal': 26940084, 'kraft': 26940085, 'mal_croppe': 26940086}]} args : 26940069 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 :2, first value : ('0.11228860929590834',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26940069) 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 (1384133881) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1384133881 download finish for photo 1384133881 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P26940069_17-09-2025_11_32_59.pdf 26940075 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=26940075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384133431: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951037_0.png', 1384133432: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951039_0.png', 1384133433: '1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951057_0.png', 1384133809: '1758101346_4010975_1384133183_a6cf33ec3a73d642f3611e0340f7d573_rle_crop_3960970443_0.png', 1384133891: '1758101467_4014096_1384133725_cd52597502e63ac7f19a3c0111731caf_rle_crop_3960971401_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c76b0020dd221c540fc4d0cd219f06af_2561266.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/1c2f5f565febfa8dcd406b02d7cce186_84974765.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/25d10b0aeaa5953da559cdb17b3bb7ea_97322136.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b1b3466db68dc83bc8644e628532f804_69151345.png change filename to text .imagette269400751758101579/ imagette269400751758101579/1758101467_4014096_1384133725_cd52597502e63ac7f19a3c0111731caf_rle_crop_3960971401_0.png.png imagette269400751758101579/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951039_0.png.png imagette269400751758101579/1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951057_0.png.png imagette269400751758101579/1758101346_4010975_1384133183_a6cf33ec3a73d642f3611e0340f7d573_rle_crop_3960970443_0.png.png imagette269400751758101579/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951037_0.png.png imagette269400781758101580/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/cee61ab3bc9329c883985b37ca4fa949_2577582.png imagette269400751758101579 26940078 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=26940078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269400781758101580 26940080 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=26940080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384132104: '1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945056_0.png', 1384133438: '1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951056_0.png', 1384133758: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964112_0.png', 1384133812: '1758101346_4010975_1384133183_a6cf33ec3a73d642f3611e0340f7d573_rle_crop_3960970440_0.png', 1384133813: '1758101346_4010975_1384133158_8d366b810bea3dffb243708dcd34410e_rle_crop_3960970451_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/7157dff44d74b6260d80f30d7e63f598_63741935.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9690f8d12d34757de3d8ec6b51ddd783_42724927.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0f3e2e4a603dc9e74325385294b26cf0_71649136.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/25453effbb17084a516912ccbd446c33_93200975.png change filename to text .imagette269400801758101580/ imagette269400801758101580/1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951056_0.png.png imagette269400801758101580/1758101346_4010975_1384133183_a6cf33ec3a73d642f3611e0340f7d573_rle_crop_3960970440_0.png.png imagette269400801758101580/1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945056_0.png.png imagette269400801758101580/1758101346_4010975_1384133158_8d366b810bea3dffb243708dcd34410e_rle_crop_3960970451_0.png.png imagette269400801758101580/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964112_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e723e59fe4cb175ff1e17c0d74ebbb22_1101800.png imagette269400801758101580 26940082 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=26940082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384132152: '1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945047_0.png', 1384132156: '1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945049_0.png', 1384132160: '1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945066_0.png', 1384133462: '1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951024_0.png', 1384133464: '1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951026_0.png', 1384133466: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951038_0.png', 1384133468: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951046_0.png', 1384133470: '1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951053_0.png', 1384133472: '1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951067_0.png', 1384133474: '1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/b4ba4623b7316a9df2f71092d0624225_14722338.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e0532a6d6bb90a5101cb95a373b09cca_44703804.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a120635c6ad2317f5de754542d0173e1_53976251.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/eb706b272a57d97b848a1de3f1b7332e_61731825.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/770dfe8959285ac937e85f4d9b763dbb_91077395.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/736e39ebdd07e1b3613f05f051b4992b_16289858.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d8fae45ef0c833a37f28179e61b7ab9b_30315830.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/20f1bd47d1a0f89319eade630f16eb5e_16508618.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/dd94d6df0975651ca3fa86f19f2d449d_32194562.png change filename to text .imagette269400821758101580/ imagette269400821758101580/1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951053_0.png.png imagette269400821758101580/1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945047_0.png.png imagette269400821758101580/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951038_0.png.png imagette269400821758101580/1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951067_0.png.png imagette269400821758101580/1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951075_0.png.png imagette269400821758101580/1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945049_0.png.png imagette269400821758101580/1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951026_0.png.png imagette269400821758101580/1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951024_0.png.png imagette269400821758101580/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951046_0.png.png imagette269400821758101580/1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945066_0.png.png imagette269400841758101582/ imagette269400851758101582/ imagette269400861758101582/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/76ec2483b4865fd129bd1ba8442a4f72_28418846.png imagette269400821758101580 26940084 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=26940084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269400841758101582 26940085 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=26940085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269400851758101582 26940086 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=26940086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette269400861758101582 26940076 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=26940076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384132122: '1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945041_0.png', 1384133444: '1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951018_0.png', 1384133446: '1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951020_0.png', 1384133759: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964116_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/fb6741ee78b2219e6d0d4bffa14e337a_9735832.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5f8136754214caade2ce5b5ec48c8fac_11495773.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/22bc2ffac13e9b91d7f9990efd692b65_79255260.png change filename to text .imagette269400761758101582/ imagette269400761758101582/1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945041_0.png.png imagette269400761758101582/1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951018_0.png.png imagette269400761758101582/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964116_0.png.png imagette269400761758101582/1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951020_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/52e4aa7ecabdd58732b9297106f18133_54597904.png imagette269400761758101582 26940077 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=26940077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384132075: '1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945037_0.png', 1384132080: '1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945044_0.png', 1384132084: '1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945062_0.png', 1384132430: '1758101005_3996466_1384130450_0c76b2d9d1b0a129bc3aa62cd096a8d6_rle_crop_3960945182_0.png', 1384133436: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951041_0.png', 1384133437: '1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951055_0.png', 1384133757: '1758101225_4007005_1384132563_156266a31a570e93679fb2cc5ff363c4_rle_crop_3960964124_0.png', 1384133811: '1758101346_4010975_1384133207_88fac65ed2f30d456dccf3a2ae908e5d_rle_crop_3960970432_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e19e139d69776c978a960a81554d78c1_23945403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/8798f37f99b9395da8a47f1e1e74a169_60372111.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/db48d359a911e624c85471119f68f292_24449433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d77f58bd2bbd78b3e532a3a4ad56554b_61895052.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/86d6a1d8ea1ef706238a68a63d404cef_47695795.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/cb53794ef42f7086d8780bfd15afc6af_88197508.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9bf5d6b0aa85e59f179ed034097682db_42534004.png change filename to text .imagette269400771758101582/ imagette269400771758101582/1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945044_0.png.png imagette269400771758101582/1758100987_3996114_1384130317_5d04d8517837fe8b1a09d65b52d1d598_rle_crop_3960945037_0.png.png imagette269400771758101582/1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951055_0.png.png imagette269400771758101582/1758101005_3996466_1384130450_0c76b2d9d1b0a129bc3aa62cd096a8d6_rle_crop_3960945182_0.png.png imagette269400771758101582/1758101225_4007005_1384132563_156266a31a570e93679fb2cc5ff363c4_rle_crop_3960964124_0.png.png imagette269400771758101582/1758100987_3996114_1384130315_552b514d1e9a4def86fb5d120b062f73_rle_crop_3960945062_0.png.png imagette269400771758101582/1758101346_4010975_1384133207_88fac65ed2f30d456dccf3a2ae908e5d_rle_crop_3960970432_0.png.png imagette269400771758101582/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951041_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/e4630c9ae00dc0987f48e61888344dd8_50498407.png imagette269400771758101582 26940081 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=26940081 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1384132413: '1758101005_3996466_1384130467_4056be7bf211f7c91315f391e3c1e3e9_rle_crop_3960945172_0.png', 1384132416: '1758101005_3996466_1384130450_0c76b2d9d1b0a129bc3aa62cd096a8d6_rle_crop_3960945186_0.png', 1384133426: '1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951019_0.png', 1384133427: '1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951042_0.png', 1384133428: '1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951061_0.png', 1384133429: '1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951074_0.png', 1384133753: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964118_0.png', 1384133754: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964119_0.png', 1384133755: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964120_0.png', 1384133756: '1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964122_0.png', 1384133807: '1758101346_4010975_1384133158_8d366b810bea3dffb243708dcd34410e_rle_crop_3960970456_0.png', 1384133890: '1758101467_4014096_1384133725_cd52597502e63ac7f19a3c0111731caf_rle_crop_3960971405_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/ac0a915eb6b92f57e8fc5848140c47d6_64766573.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0954bca00168d327abf61eed4beb6201_13856742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/9ad11ff7c6229482e51b4817d153eadb_11997812.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c114d4ae37b02abbbb631a618c7547c7_74771541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/0aafcb4815ddb24d7fd51f1c662dab41_72821025.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/cb8e0415747e192cde52b8c073e8de8d_37499799.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a55c8ab75b3a49510745aae1bc3158d3_35392231.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2b2d30b7aad5e6d8975586da362d7412_60491061.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/5e8534bb6b2c4619c05bfdcb88a5ea61_31809004.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/c75e4a1d0e3920e78940273864cf6eb5_67023883.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/8c6f4cd11c43d18766c4314fa5f7167d_23874225.png change filename to text .imagette269400811758101582/ imagette269400811758101582/1758101104_4001870_1384130229_5f1c414044ab51b4ba23512877f918a4_rle_crop_3960951061_0.png.png imagette269400811758101582/1758101005_3996466_1384130467_4056be7bf211f7c91315f391e3c1e3e9_rle_crop_3960945172_0.png.png imagette269400811758101582/1758101005_3996466_1384130450_0c76b2d9d1b0a129bc3aa62cd096a8d6_rle_crop_3960945186_0.png.png imagette269400811758101582/1758101346_4010975_1384133158_8d366b810bea3dffb243708dcd34410e_rle_crop_3960970456_0.png.png imagette269400811758101582/1758101104_4001870_1384130230_8a3dc17607d9ebe7d3bb1e2f21c511c5_rle_crop_3960951042_0.png.png imagette269400811758101582/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964119_0.png.png imagette269400811758101582/1758101104_4001870_1384130223_c8662e481537ec69607bafceaf1d311d_rle_crop_3960951074_0.png.png imagette269400811758101582/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964122_0.png.png imagette269400811758101582/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964120_0.png.png imagette269400811758101582/1758101104_4001870_1384130337_1a61e3b78e9087fab388e82c51c84f76_rle_crop_3960951019_0.png.png imagette269400811758101582/1758101225_4007005_1384132587_782c7a39474af22da166c723c6e785f4_rle_crop_3960964118_0.png.png imagette269400811758101582/1758101467_4014096_1384133725_cd52597502e63ac7f19a3c0111731caf_rle_crop_3960971405_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/f54f18b4b49cf2af3416dd0dc6032c16_1001482.png imagette269400811758101582 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26940069 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26940087,26940088,26940089,26940090,26940091,26940092,26940093,26940094,26940095,26940096,26940097,26940098?tags=autre_refus,Carton_brun,Carton_gris,flou,papier,cartonnette,Teint_Dans_La_Masse,plastique,environnement,metal,kraft,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1384133881] : ('0.11228860929590834',) no score found for photo 1384133881 We are sending mail with results at report@fotonower.com refus_total : 0.11228860929590834 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=26940069 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_P26940069_17-09-2025_11_32_59.pdf results_Auto_P26940069_17-09-2025_11_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26940069_17-09-2025_11_32_59.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','26940069','results_Auto_P26940069_17-09-2025_11_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26940069_17-09-2025_11_32_59.pdf','pdf','','0.2','0.11228860929590834') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26940069]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1384133881] map_info['map_portfolio_photo'] : {26940069: [1384133881, 1384133830, 1384133827, 1384133825, 1384133814, 1384133806, 1384133803, 1384133798, 1384133794, 1384133792, 1384133770, 1384133766, 1384133763, 1384133762, 1384133761, 1384133733, 1384133731, 1384133725, 1384133650, 1384133634, 1384133608, 1384133578, 1384133551, 1384133231, 1384133207, 1384133183, 1384133158, 1384132634, 1384132587, 1384132563, 1384131849, 1384131781, 1384131656, 1384131157, 1384131022, 1384130977, 1384130492, 1384130467, 1384130450, 1384130448, 1384130337, 1384130317, 1384130315, 1384130232, 1384130230, 1384130229, 1384130223, 1384130079, 1384130076, 1384129967, 1384129940, 1384129916, 1384129914, 1384129911]} final : False mtd_id 4302 list_pids : [1384133881] 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, '3734459') ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '26940069', '1384133881', None, None, None, None, None, '3734459')] time used for this insertion : 0.014487266540527344 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.794167518615723 time spend to save output : 0.014640331268310547 total time spend for step 4 : 4.808807849884033 step5:split_time_score Wed Sep 17 11:33:04 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 : ['26940069'] 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 : [('26940069',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26940069) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1384133881: {'path': 'temp/1758101579_1333367_1384133881_f96fc119619dc56085ce44e74456d081.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 = 26940069; (('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 = 26940069 group by h (('11', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26940069 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 (26940069) 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 (26940069) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17092025 26940069 Nombre de photos uploadées : 54 / 23040 (0%) 17092025 26940069 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 17092025 26940069 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1384129967, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/def4e28aa9ab16b3987939ec4e268bca.jpg', 'username': None, 'uploaded_at': 1758100637, 'text': 'image_17092025_11_15_44_10138.jpg'}, {'photo_id': 1384129911, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/a1c62d031cb49340d55e3c3eb0f42982.jpg', 'username': None, 'uploaded_at': 1758100623, 'text': 'image_17092025_11_16_04_10160.jpg'}, {'photo_id': 1384129940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/2be6e9f04920fd6b5e521cb9f62ab709.jpg', 'username': None, 'uploaded_at': 1758100637, 'text': 'image_17092025_11_16_15_10137.jpg'}, {'photo_id': 1384129916, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/17/d2942237e543e0c19c9c06db9125a6f8.jpg', 'username': None, 'uploaded_at': 1758100637, 'text': 'image_17092025_11_16_25_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023360252380371094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26940069, '2025-09-17' ) 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-09-17' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2300667,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2352914810180664 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= 2300667 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26918428, 'dashboard_result_id': 15303054, '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_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26918876, 'dashboard_result_id': 15303055, '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_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26919228, 'dashboard_result_id': 15303056, '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_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26919628, 'dashboard_result_id': 15303057, '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_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26920486, 'dashboard_result_id': 15303058, '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_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26920775, 'dashboard_result_id': 15303059, '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_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26921240, 'dashboard_result_id': 15303060, '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_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26921882, 'dashboard_result_id': 15303061, '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_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26922389, 'dashboard_result_id': 15303062, '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_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26922797, 'dashboard_result_id': 15303063, '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_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26923194, 'dashboard_result_id': 15303064, '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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26924102, 'dashboard_result_id': 15303065, '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_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26924391, 'dashboard_result_id': 15303066, '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_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26924797, 'dashboard_result_id': 15303067, '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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26925081, 'dashboard_result_id': 15303068, '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_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26925514, 'dashboard_result_id': 15303069, '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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26926119, 'dashboard_result_id': 15303070, '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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26926538, 'dashboard_result_id': 15303071, '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_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26926964, 'dashboard_result_id': 15303072, '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_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26927400, 'dashboard_result_id': 15303073, '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_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26928251, 'dashboard_result_id': 15303074, '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_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26928992, 'dashboard_result_id': 15303075, '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_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26929662, 'dashboard_result_id': 15303076, '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_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26930241, 'dashboard_result_id': 15303077, '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_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26931078, 'dashboard_result_id': 15303078, '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_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26931666, 'dashboard_result_id': 15303079, '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_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26932425, 'dashboard_result_id': 15303080, '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_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26934491, 'dashboard_result_id': 15303081, '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_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26935129, 'dashboard_result_id': 15303082, '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_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26935836, 'dashboard_result_id': 15303083, '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_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26936651, 'dashboard_result_id': 15303084, '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_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26937443, 'dashboard_result_id': 15303085, '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_P26937443_17-09-2025_10_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26938400, 'dashboard_result_id': 15303086, '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_P26938400_17-09-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26938410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26938411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26938412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26938413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26938414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26938415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26938416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26938417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26938418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26938419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26938420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26938421, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26939139, 'dashboard_result_id': 15303087, '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_P26939139_17-09-2025_11_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26939180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26939181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26939182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26939183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26939184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26939185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26939186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26939187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26939188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26939190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26939191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26939192, 'pht': 3726}}"}, {'dashboat_entry_day': 2300667, 'dashboard_run_id': 2311781, 'mtr_portfolio_id': 26940069, 'dashboard_result_id': 15303088, '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_P26940069_17-09-2025_11_31_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26940075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26940076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26940077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26940078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26940079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26940081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26940083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26940085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26940086, '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 = 26918428 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': 3732548, 'mtr_portfolio_id': 26918428, 'created_at': datetime.datetime(2025, 9, 17, 6, 17, 28), 'result': '0.034418347298541714', 'result_long': None, 'result_double': None}] Qualite : 0.034418347298541714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918428 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_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, 'pht': 3726}}" where mtr_portfolio_id = 26918428 and dashboard_run_id = 2311781 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`=26918428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303054, 0.034418347298541714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_06_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, '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 = 26918876 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': 3732549, 'mtr_portfolio_id': 26918876, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 2), 'result': '0.043610718126215635', 'result_long': None, 'result_double': None}] Qualite : 0.043610718126215635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26918876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26918876 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_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, 'pht': 3726}}" where mtr_portfolio_id = 26918876 and dashboard_run_id = 2311781 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`=26918876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303055, 0.043610718126215635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_06_18_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, '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 = 26919228 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': 3732550, 'mtr_portfolio_id': 26919228, 'created_at': datetime.datetime(2025, 9, 17, 6, 18, 32), 'result': '0.054799998150664726', 'result_long': None, 'result_double': None}] Qualite : 0.054799998150664726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919228 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_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, 'pht': 3726}}" where mtr_portfolio_id = 26919228 and dashboard_run_id = 2311781 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`=26919228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303056, 0.054799998150664726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, '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 = 26919628 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': 3732551, 'mtr_portfolio_id': 26919628, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 30), 'result': '0.06563328552521043', 'result_long': None, 'result_double': None}] Qualite : 0.06563328552521043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26919628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26919628 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_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, 'pht': 3726}}" where mtr_portfolio_id = 26919628 and dashboard_run_id = 2311781 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`=26919628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303057, 0.06563328552521043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, '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 = 26920486 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': 3732552, 'mtr_portfolio_id': 26920486, 'created_at': datetime.datetime(2025, 9, 17, 6, 20), 'result': '0.03136853702815561', 'result_long': None, 'result_double': None}] Qualite : 0.03136853702815561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920486 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_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, 'pht': 3726}}" where mtr_portfolio_id = 26920486 and dashboard_run_id = 2311781 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`=26920486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303058, 0.03136853702815561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_06_20_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, '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 = 26920775 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': 3732553, 'mtr_portfolio_id': 26920775, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 28), 'result': '0.038637870793443135', 'result_long': None, 'result_double': None}] Qualite : 0.038637870793443135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26920775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26920775 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_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, 'pht': 3726}}" where mtr_portfolio_id = 26920775 and dashboard_run_id = 2311781 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`=26920775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303059, 0.038637870793443135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_06_20_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, '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 = 26921240 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': 3732554, 'mtr_portfolio_id': 26921240, 'created_at': datetime.datetime(2025, 9, 17, 6, 20, 37), 'result': '0.04476262593749069', 'result_long': None, 'result_double': None}] Qualite : 0.04476262593749069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921240 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_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, 'pht': 3726}}" where mtr_portfolio_id = 26921240 and dashboard_run_id = 2311781 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`=26921240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303060, 0.04476262593749069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, '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 = 26921882 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': 3732555, 'mtr_portfolio_id': 26921882, 'created_at': datetime.datetime(2025, 9, 17, 6, 21, 29), 'result': '0.07154484052750976', 'result_long': None, 'result_double': None}] Qualite : 0.07154484052750976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26921882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26921882 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_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, 'pht': 3726}}" where mtr_portfolio_id = 26921882 and dashboard_run_id = 2311781 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`=26921882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303061, 0.07154484052750976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_06_21_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, '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 = 26922389 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': 3732556, 'mtr_portfolio_id': 26922389, 'created_at': datetime.datetime(2025, 9, 17, 6, 22), 'result': '0.03665288194111033', 'result_long': None, 'result_double': None}] Qualite : 0.03665288194111033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922389 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_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, 'pht': 3726}}" where mtr_portfolio_id = 26922389 and dashboard_run_id = 2311781 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`=26922389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303062, 0.03665288194111033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922389_17-09-2025_06_22_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26922398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922409, '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 = 26922797 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': 3732557, 'mtr_portfolio_id': 26922797, 'created_at': datetime.datetime(2025, 9, 17, 6, 22, 30), 'result': '0.053258111009566775', 'result_long': None, 'result_double': None}] Qualite : 0.053258111009566775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26922797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26922797 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_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, 'pht': 3726}}" where mtr_portfolio_id = 26922797 and dashboard_run_id = 2311781 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`=26922797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303063, 0.053258111009566775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26922797_17-09-2025_06_22_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26922823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26922824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26922825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26922826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26922827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26922828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26922829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26922830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26922831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26922832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26922833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26922834, '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 = 26923194 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': 3732142, 'mtr_portfolio_id': 26923194, 'created_at': datetime.datetime(2025, 9, 17, 6, 1, 1), 'result': '0.03187562283868707', 'result_long': None, 'result_double': None}] Qualite : 0.03187562283868707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26923194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26923194 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_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, 'pht': 3726}}" where mtr_portfolio_id = 26923194 and dashboard_run_id = 2311781 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`=26923194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303064, 0.03187562283868707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26923194_17-09-2025_06_01_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26923221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26923222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26923223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26923224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26923225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26923226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26923227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26923228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26923229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26923230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26923231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26923232, '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 = 26924102 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': 3732558, 'mtr_portfolio_id': 26924102, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 2), 'result': '0.043806340379132926', 'result_long': None, 'result_double': None}] Qualite : 0.043806340379132926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924102 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_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, 'pht': 3726}}" where mtr_portfolio_id = 26924102 and dashboard_run_id = 2311781 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`=26924102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303065, 0.043806340379132926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924102_17-09-2025_06_23_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924115, '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 = 26924391 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': 3732559, 'mtr_portfolio_id': 26924391, 'created_at': datetime.datetime(2025, 9, 17, 6, 23, 30), 'result': '0.038854450436580125', 'result_long': None, 'result_double': None}] Qualite : 0.038854450436580125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924391 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_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, 'pht': 3726}}" where mtr_portfolio_id = 26924391 and dashboard_run_id = 2311781 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`=26924391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303066, 0.038854450436580125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924391_17-09-2025_06_23_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924407, '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 = 26924797 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': 3732605, 'mtr_portfolio_id': 26924797, 'created_at': datetime.datetime(2025, 9, 17, 5, 47, 30), 'result': '0.0555519198114147', 'result_long': None, 'result_double': None}] Qualite : 0.0555519198114147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26924797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26924797 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_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, 'pht': 3726}}" where mtr_portfolio_id = 26924797 and dashboard_run_id = 2311781 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`=26924797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303067, 0.0555519198114147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26924797_17-09-2025_05_47_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26924800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26924801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26924802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26924803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26924804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26924805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26924806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26924807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26924808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26924809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26924810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26924811, '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 = 26925081 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': 3732641, 'mtr_portfolio_id': 26925081, 'created_at': datetime.datetime(2025, 9, 17, 6, 5, 28), 'result': '0.03614144143676788', 'result_long': None, 'result_double': None}] Qualite : 0.03614144143676788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925081 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_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, 'pht': 3726}}" where mtr_portfolio_id = 26925081 and dashboard_run_id = 2311781 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`=26925081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303068, 0.03614144143676788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925081_17-09-2025_06_05_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925097, '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 = 26925514 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': 3732710, 'mtr_portfolio_id': 26925514, 'created_at': datetime.datetime(2025, 9, 17, 6, 19, 28), 'result': '0.05163043017052247', 'result_long': None, 'result_double': None}] Qualite : 0.05163043017052247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26925514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26925514 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_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, 'pht': 3726}}" where mtr_portfolio_id = 26925514 and dashboard_run_id = 2311781 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`=26925514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303069, 0.05163043017052247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26925514_17-09-2025_06_19_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26925525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26925526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26925527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26925528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26925529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26925530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26925531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26925532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26925533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26925534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26925536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26925537, '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 = 26926119 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': 3732790, 'mtr_portfolio_id': 26926119, 'created_at': datetime.datetime(2025, 9, 17, 6, 33), 'result': '0.05237131561620687', 'result_long': None, 'result_double': None}] Qualite : 0.05237131561620687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926119 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_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, 'pht': 3726}}" where mtr_portfolio_id = 26926119 and dashboard_run_id = 2311781 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`=26926119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303070, 0.05237131561620687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926119_17-09-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926136, '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 = 26926538 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': 3732864, 'mtr_portfolio_id': 26926538, 'created_at': datetime.datetime(2025, 9, 17, 6, 49), 'result': '0.058544981737487484', 'result_long': None, 'result_double': None}] Qualite : 0.058544981737487484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926538 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_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, 'pht': 3726}}" where mtr_portfolio_id = 26926538 and dashboard_run_id = 2311781 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`=26926538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303071, 0.058544981737487484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926538_17-09-2025_06_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26926548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26926549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26926550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26926558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926559, '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 = 26926964 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': 3732946, 'mtr_portfolio_id': 26926964, 'created_at': datetime.datetime(2025, 9, 17, 7, 5), 'result': '0.04457282082067911', 'result_long': None, 'result_double': None}] Qualite : 0.04457282082067911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26926964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926964_17-09-2025_07_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26926964 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_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, 'pht': 3726}}" where mtr_portfolio_id = 26926964 and dashboard_run_id = 2311781 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`=26926964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303072, 0.04457282082067911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26926964_17-09-2025_07_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26926990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26926991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26926992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26926993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26926994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26926995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26926996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26926997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26926998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26926999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927001, '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 = 26927400 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': 3733031, 'mtr_portfolio_id': 26927400, 'created_at': datetime.datetime(2025, 9, 17, 7, 16, 59), 'result': '0.057123809389375765', 'result_long': None, 'result_double': None}] Qualite : 0.057123809389375765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26927400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26927400_17-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26927400 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_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, 'pht': 3726}}" where mtr_portfolio_id = 26927400 and dashboard_run_id = 2311781 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`=26927400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303073, 0.057123809389375765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26927400_17-09-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26927418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26927419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26927421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26927422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26927423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26927424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26927425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26927426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26927427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26927428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26927429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26927430, '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 = 26928251 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': 3733125, 'mtr_portfolio_id': 26928251, 'created_at': datetime.datetime(2025, 9, 17, 7, 34, 59), 'result': '0.05454341792867976', 'result_long': None, 'result_double': None}] Qualite : 0.05454341792867976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26928251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928251_17-09-2025_07_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26928251 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_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, 'pht': 3726}}" where mtr_portfolio_id = 26928251 and dashboard_run_id = 2311781 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`=26928251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303074, 0.05454341792867976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928251_17-09-2025_07_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26928262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26928263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26928264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26928265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26928266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26928267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26928268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26928269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26928270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26928271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26928272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26928273, '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 = 26928992 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': 3733209, 'mtr_portfolio_id': 26928992, 'created_at': datetime.datetime(2025, 9, 17, 7, 48, 56), 'result': '0.049792965909687306', 'result_long': None, 'result_double': None}] Qualite : 0.049792965909687306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26928992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928992_17-09-2025_07_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26928992 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_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, 'pht': 3726}}" where mtr_portfolio_id = 26928992 and dashboard_run_id = 2311781 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`=26928992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303075, 0.049792965909687306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26928992_17-09-2025_07_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929022, '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 = 26929662 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': 3733293, 'mtr_portfolio_id': 26929662, 'created_at': datetime.datetime(2025, 9, 17, 8, 4, 59), 'result': '0.05242642667214526', 'result_long': None, 'result_double': None}] Qualite : 0.05242642667214526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26929662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26929662_17-09-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26929662 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_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, 'pht': 3726}}" where mtr_portfolio_id = 26929662 and dashboard_run_id = 2311781 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`=26929662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303076, 0.05242642667214526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26929662_17-09-2025_08_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26929696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26929697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26929698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26929699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26929700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26929701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26929702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26929703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26929704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26929705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26929706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26929707, '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 = 26930241 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': 3733396, 'mtr_portfolio_id': 26930241, 'created_at': datetime.datetime(2025, 9, 17, 8, 18, 57), 'result': '0.04693638715652657', 'result_long': None, 'result_double': None}] Qualite : 0.04693638715652657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26930241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26930241_17-09-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26930241 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_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, 'pht': 3726}}" where mtr_portfolio_id = 26930241 and dashboard_run_id = 2311781 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`=26930241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303077, 0.04693638715652657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26930241_17-09-2025_08_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26930252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26930253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26930254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26930255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26930256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26930257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26930259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26930260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26930261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26930262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26930263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26930264, '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 = 26931078 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': 3733492, 'mtr_portfolio_id': 26931078, 'created_at': datetime.datetime(2025, 9, 17, 8, 34, 31), 'result': '0.058743540181533035', 'result_long': None, 'result_double': None}] Qualite : 0.058743540181533035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26931078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931078_17-09-2025_08_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26931078 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_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, 'pht': 3726}}" where mtr_portfolio_id = 26931078 and dashboard_run_id = 2311781 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`=26931078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303078, 0.058743540181533035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931078_17-09-2025_08_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931121, '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 = 26931666 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': 3733583, 'mtr_portfolio_id': 26931666, 'created_at': datetime.datetime(2025, 9, 17, 8, 46, 58), 'result': '0.04927580768804584', 'result_long': None, 'result_double': None}] Qualite : 0.04927580768804584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26931666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931666_17-09-2025_08_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26931666 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_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, 'pht': 3726}}" where mtr_portfolio_id = 26931666 and dashboard_run_id = 2311781 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`=26931666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303079, 0.04927580768804584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26931666_17-09-2025_08_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26931701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26931702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26931703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26931704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26931705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26931706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26931707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26931708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26931709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26931710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26931711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26931712, '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 = 26932425 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': 3733718, 'mtr_portfolio_id': 26932425, 'created_at': datetime.datetime(2025, 9, 17, 9, 32, 58), 'result': '0.053615047523619584', 'result_long': None, 'result_double': None}] Qualite : 0.053615047523619584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26932425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26932425_17-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26932425 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_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, 'pht': 3726}}" where mtr_portfolio_id = 26932425 and dashboard_run_id = 2311781 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`=26932425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303080, 0.053615047523619584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26932425_17-09-2025_09_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26932435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26932436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26932437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26932438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26932439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26932440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26932441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26932442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26932443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26932444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26932445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26932446, '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 = 26934491 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': 3733931, 'mtr_portfolio_id': 26934491, 'created_at': datetime.datetime(2025, 9, 17, 9, 47), 'result': '0.04594819373243381', 'result_long': None, 'result_double': None}] Qualite : 0.04594819373243381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26934491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26934491_17-09-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26934491 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_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, 'pht': 3726}}" where mtr_portfolio_id = 26934491 and dashboard_run_id = 2311781 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`=26934491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303081, 0.04594819373243381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26934491_17-09-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26934495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26934496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26934497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26934498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26934499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26934500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26934501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26934502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26934503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26934504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26934505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26934506, '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 = 26935129 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': 3733970, 'mtr_portfolio_id': 26935129, 'created_at': datetime.datetime(2025, 9, 17, 10, 2, 59), 'result': '0.06790265040995234', 'result_long': None, 'result_double': None}] Qualite : 0.06790265040995234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26935129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935129_17-09-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26935129 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_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, 'pht': 3726}}" where mtr_portfolio_id = 26935129 and dashboard_run_id = 2311781 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`=26935129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303082, 0.06790265040995234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935129_17-09-2025_10_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935213, '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 = 26935836 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': 3734028, 'mtr_portfolio_id': 26935836, 'created_at': datetime.datetime(2025, 9, 17, 10, 17), 'result': '0.06185133264290253', 'result_long': None, 'result_double': None}] Qualite : 0.06185133264290253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26935836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935836_17-09-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26935836 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_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, 'pht': 3726}}" where mtr_portfolio_id = 26935836 and dashboard_run_id = 2311781 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`=26935836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303083, 0.06185133264290253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26935836_17-09-2025_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26935886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26935887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26935888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26935889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26935890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26935891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26935892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26935893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26935894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26935895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26935896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26935897, '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 = 26936651 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': 3734085, 'mtr_portfolio_id': 26936651, 'created_at': datetime.datetime(2025, 9, 17, 10, 33, 29), 'result': '0.04553345008684183', 'result_long': None, 'result_double': None}] Qualite : 0.04553345008684183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26936651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26936651_17-09-2025_10_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26936651 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_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, 'pht': 3726}}" where mtr_portfolio_id = 26936651 and dashboard_run_id = 2311781 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`=26936651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303084, 0.04553345008684183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26936651_17-09-2025_10_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26936659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26936660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26936661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26936662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26936663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26936664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26936665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26936666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26936667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26936668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26936669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26936670, '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 = 26937443 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': 3734138, 'mtr_portfolio_id': 26937443, 'created_at': datetime.datetime(2025, 9, 17, 10, 46, 59), 'result': '0.05795026396720589', 'result_long': None, 'result_double': None}] Qualite : 0.05795026396720589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26937443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26937443 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_P26937443_17-09-2025_10_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, 'pht': 3726}}" where mtr_portfolio_id = 26937443 and dashboard_run_id = 2311781 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`=26937443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303085, 0.05795026396720589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26937443_17-09-2025_10_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26937454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26937455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26937456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26937457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26937458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26937459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26937460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26937461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26937462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26937463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26937464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26937465, '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 = 26938400 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': 3734232, 'mtr_portfolio_id': 26938400, 'created_at': datetime.datetime(2025, 9, 17, 11, 2, 59), 'result': '0.07274853656947747', 'result_long': None, 'result_double': None}] Qualite : 0.07274853656947747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26938400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26938400_17-09-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26938400 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_P26938400_17-09-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26938410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26938411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26938412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26938413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26938414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26938415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26938416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26938417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26938418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26938419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26938420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26938421, 'pht': 3726}}" where mtr_portfolio_id = 26938400 and dashboard_run_id = 2311783 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`=26938400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303086, 0.07274853656947747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26938400_17-09-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26938410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26938411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26938412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26938413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26938414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26938415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26938416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26938417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26938418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26938419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26938420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26938421, '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 = 26939139 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': 3734316, 'mtr_portfolio_id': 26939139, 'created_at': datetime.datetime(2025, 9, 17, 11, 16, 58), 'result': '0.05426587455884609', 'result_long': None, 'result_double': None}] Qualite : 0.05426587455884609 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26939139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26939139_17-09-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26939139 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_P26939139_17-09-2025_11_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26939180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26939181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26939182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26939183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26939184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26939185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26939186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26939187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26939188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26939190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26939191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26939192, 'pht': 3726}}" where mtr_portfolio_id = 26939139 and dashboard_run_id = 2311783 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`=26939139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303087, 0.05426587455884609, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26939139_17-09-2025_11_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26939180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26939181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26939182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26939183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26939184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26939185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26939186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26939187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26939188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26939190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26939191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26939192, '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 = 26940069 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': 3734459, 'mtr_portfolio_id': 26940069, 'created_at': datetime.datetime(2025, 9, 17, 11, 32, 59), 'result': '0.11228860929590834', 'result_long': None, 'result_double': None}] Qualite : 0.11228860929590834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26940069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26940069_17-09-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26940069 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_P26940069_17-09-2025_11_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26940075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26940076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26940077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26940078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26940079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26940081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26940083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26940085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26940086, 'pht': 3726}}" where mtr_portfolio_id = 26940069 and dashboard_run_id = 2311783 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`=26940069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15303088, 0.11228860929590834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26940069_17-09-2025_11_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26940075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26940076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26940077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26940078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26940079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26940080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26940081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26940082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26940083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26940084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26940085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26940086, '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 (26918428,26918876,26919228,26919628,26920486,26920775,26921240,26921882,26922389,26922797,26923194,26924102,26924391,26924797,26925081,26925514,26926119,26926538,26926964,26927400,26928251,26928992,26929662,26930241,26931078,26931666,26932425,26934491,26935129,26935836,26936651,26937443,26938400,26939139,26940069) result : ((1384027410,), (1384027478,), (1384027543,), (1384027593,), (1384027636,), (1384027876,), (1384027877,), (1384027878,), (1384027890,), (1384027891,), (1384027892,), (1384027894,), (1384027916,), (1384027919,), (1384027922,), (1384027924,), (1384027942,), (1384027943,), (1384027944,), (1384027946,), (1384027958,), (1384027959,), (1384027960,), (1384028042,), (1384028043,), (1384028061,), (1384028098,), (1384028100,), (1384028123,), (1384028125,), (1384028127,), (1384028129,), (1384028143,), (1384028144,), (1384028528,), (1384028524,), (1384028525,), (1384028526,), (1384028572,), (1384028573,), (1384028574,), (1384028588,), (1384028589,), (1384028591,), (1384028614,), (1384028615,), (1384028616,), (1384028638,), (1384028639,), (1384028642,), (1384028644,), (1384028686,), (1384028687,), (1384028688,), (1384028690,), (1384028703,), (1384028706,), (1384028708,), (1384028710,), (1384028713,), (1384028741,), (1384028743,), (1384028745,), (1384028748,), (1384028759,), (1384028761,), (1384028762,), (1384028765,), (1384028769,), (1384028773,), (1384028785,), (1384028786,), (1384028787,), (1384028789,), (1384028791,), (1384028794,), (1384028804,), (1384028805,), (1384028806,), (1384028826,), (1384028827,), (1384028828,), (1384028830,), (1384028833,), (1384028844,), (1384028845,), (1384028847,), (1384028849,), (1384028872,), (1384028876,), (1384028877,), (1384028895,), (1384028893,), (1384028894,), (1384028917,), (1384028918,), (1384028921,), (1384028925,), (1384028935,), (1384028936,), (1384028937,), (1384028939,), (1384028942,), (1384028964,), (1384028965,), (1384028966,), (1384028968,), (1384028984,), (1384028985,), (1384028986,), (1384028988,), (1384029002,), (1384029003,), (1384029005,), (1384029008,), (1384029021,), (1384029022,), (1384029023,), (1384029025,), (1384029071,), (1384029072,), (1384029073,), (1384029091,), (1384029092,), (1384029093,), (1384029095,), (1384029098,), (1384029115,), (1384029116,), (1384029117,), (1384029119,), (1384029135,), (1384029136,), (1384029137,), (1384029158,), (1384029159,), (1384029160,), (1384029163,), (1384029180,), (1384029181,), (1384029182,), (1384029209,), (1384029210,), (1384029230,), (1384029232,), (1384029235,), (1384029238,), (1384029263,), (1384029255,), (1384029256,), (1384029258,), (1384029260,), (1384029274,), (1384029275,), (1384029276,), (1384029312,), (1384029313,), (1384029314,), (1384029332,), (1384029333,), (1384029347,), (1384029348,), (1384029349,), (1384029351,), (1384029371,), (1384029372,), (1384029373,), (1384029375,), (1384029392,), (1384029393,), (1384029394,), (1384029402,), (1384029410,), (1384029442,), (1384029443,), (1384029444,), (1384029468,), (1384029469,), (1384029472,), (1384029475,), (1384029485,), (1384029486,), (1384029487,), (1384029489,), (1384029492,), (1384029494,), (1384029512,), (1384029518,), (1384029522,), (1384029528,), (1384029560,), (1384029561,), (1384029564,), (1384035034,), (1384035022,), (1384035025,), (1384035027,), (1384035031,), (1384035045,), (1384035051,), (1384035052,), (1384035083,), (1384035087,), (1384035123,), (1384035141,), (1384035143,), (1384035145,), (1384035163,), (1384035165,), (1384035191,), (1384035195,), (1384035196,), (1384035198,), (1384035201,), (1384035210,), (1384035211,), (1384035212,), (1384035225,), (1384035226,), (1384035227,), (1384035229,), (1384035242,), (1384035244,), (1384035247,), (1384035251,), (1384035264,), (1384035265,), (1384035266,), (1384035268,), (1384035280,), (1384035281,), (1384035282,), (1384035308,), (1384035313,), (1384035321,), (1384035351,), (1384035352,), (1384035353,), (1384035355,), (1384035358,), (1384035370,), (1384035371,), (1384035372,), (1384035399,), (1384035402,), (1384035416,), (1384035447,), (1384035445,), (1384035446,), (1384035465,), (1384035466,), (1384035467,), (1384035470,), (1384035474,), (1384035496,), (1384035498,), (1384035500,), (1384035519,), (1384035521,), (1384035523,), (1384035526,), (1384035529,), (1384035548,), (1384035549,), (1384035550,), (1384035552,), (1384035555,), (1384035565,), (1384035566,), (1384035567,), (1384035569,), (1384035593,), (1384035594,), (1384035595,), (1384035597,), (1384035608,), (1384035609,), (1384035610,), (1384035612,), (1384035613,), (1384035630,), (1384035631,), (1384035633,), (1384035637,), (1384035641,), (1384035655,), (1384035656,), (1384035675,), (1384035676,), (1384035677,), (1384035679,), (1384035682,), (1384035690,), (1384035692,), (1384035695,), (1384035698,), (1384035699,), (1384035720,), (1384035725,), (1384035738,), (1384035740,), (1384035744,), (1384035754,), (1384035757,), (1384035774,), (1384035777,), (1384035779,), (1384035781,), (1384035783,), (1384035805,), (1384035798,), (1384035799,), (1384035800,), (1384035801,), (1384035803,), (1384036020,), (1384036040,), (1384036065,), (1384036089,), (1384036370,), (1384036391,), (1384036412,), (1384036437,), (1384036459,), (1384036852,), (1384036880,), (1384036905,), (1384036930,), (1384036960,), (1384037299,), (1384037342,), (1384037402,), (1384037450,), (1384038008,), (1384038511,), (1384038630,), (1384038654,), (1384038678,), (1384038702,), (1384038809,), (1384038811,), (1384038829,), (1384038855,), (1384039331,), (1384039372,), (1384039422,), (1384039452,), (1384039478,), (1384039518,), (1384039788,), (1384039789,), (1384039942,), (1384039961,), (1384039973,), (1384039975,), (1384040054,), (1384040055,), (1384040056,), (1384040058,), (1384040061,), (1384040085,), (1384040086,), (1384040087,), (1384040090,), (1384040190,), (1384040191,), (1384040193,), (1384040211,), (1384040212,), (1384040245,), (1384040239,), (1384040244,), (1384040292,), (1384040293,), (1384040318,), (1384040319,), (1384040320,), (1384040329,), (1384040332,), (1384040334,), (1384040337,), (1384040352,), (1384040354,), (1384040356,), (1384040390,), (1384040391,), (1384040392,), (1384040415,), (1384040416,), (1384040417,), (1384040421,), (1384040441,), (1384040442,), (1384040443,), (1384040468,), (1384040469,), (1384040470,), (1384040472,), (1384040483,), (1384040484,), (1384040487,), (1384040492,), (1384040496,), (1384040510,), (1384040511,), (1384040523,), (1384040524,), (1384040525,), (1384040545,), (1384040546,), (1384040547,), (1384040559,), (1384040560,), (1384040561,), (1384040563,), (1384040595,), (1384040599,), (1384040600,), (1384040619,), (1384040617,), (1384040618,), (1384040641,), (1384040643,), (1384040675,), (1384040676,), (1384040698,), (1384040699,), (1384040701,), (1384040721,), (1384040722,), (1384040723,), (1384040726,), (1384040730,), (1384040755,), (1384040756,), (1384040757,), (1384040820,), (1384040821,), (1384040843,), (1384040844,), (1384040866,), (1384040867,), (1384040868,), (1384040870,), (1384040882,), (1384040884,), (1384040886,), (1384040889,), (1384040893,), (1384040897,), (1384040906,), (1384040908,), (1384040910,), (1384040912,), (1384040915,), (1384040970,), (1384040971,), (1384040972,), (1384040974,), (1384040984,), (1384040985,), (1384040986,), (1384040988,), (1384040991,), (1384041014,), (1384041018,), (1384041021,), (1384041039,), (1384041037,), (1384041038,), (1384041054,), (1384041055,), (1384041056,), (1384041059,), (1384041110,), (1384041111,), (1384041131,), (1384041132,), (1384041134,), (1384041137,), (1384041162,), (1384041163,), (1384041175,), (1384041176,), (1384041177,), (1384041195,), (1384041196,), (1384041197,), (1384041200,), (1384041237,), (1384041239,), (1384041263,), (1384041264,), (1384041265,), (1384041267,), (1384041285,), (1384041286,), (1384041287,), (1384041311,), (1384041313,), (1384041315,), (1384041317,), (1384041320,), (1384041324,), (1384041334,), (1384041335,), (1384041336,), (1384041338,), (1384041349,), (1384041386,), (1384041388,), (1384041390,), (1384042203,), (1384042255,), (1384042307,), (1384042491,), (1384042554,), (1384042608,), (1384042656,), (1384043315,), (1384042998,), (1384043089,), (1384043160,), (1384043231,), (1384043947,), (1384043948,), (1384044428,), (1384051246,), (1384051212,), (1384052021,), (1384052040,), (1384052043,), (1384052046,), (1384052049,), (1384052063,), (1384052086,), (1384052088,), (1384052091,), (1384052095,), (1384052144,), (1384052147,), (1384052151,), (1384052154,), (1384052156,), (1384052171,), (1384052173,), (1384052176,), (1384052178,), (1384052183,), (1384052186,), (1384052201,), (1384052203,), (1384052205,), (1384052208,), (1384052212,), (1384052220,), (1384052222,), (1384052224,), (1384052227,), (1384052254,), (1384052257,), (1384052260,), (1384052263,), (1384052266,), (1384052271,), (1384052306,), (1384052308,), (1384052310,), (1384052313,), (1384052319,), (1384052322,), (1384052332,), (1384052334,), (1384052336,), (1384052353,), (1384052356,), (1384052357,), (1384052360,), (1384052365,), (1384052368,), (1384052396,), (1384052383,), (1384052386,), (1384052388,), (1384052391,), (1384052407,), (1384052410,), (1384052413,), (1384052415,), (1384052418,), (1384052496,), (1384052498,), (1384052500,), (1384052503,), (1384052507,), (1384052523,), (1384052524,), (1384052525,), (1384052527,), (1384052539,), (1384052542,), (1384052544,), (1384052546,), (1384052548,), (1384052556,), (1384052557,), (1384052558,), (1384052561,), (1384052585,), (1384052588,), (1384052599,), (1384052621,), (1384052623,), (1384052624,), (1384052643,), (1384052644,), (1384052645,), (1384052647,), (1384052655,), (1384052657,), (1384052658,), (1384052687,), (1384052688,), (1384052689,), (1384052699,), (1384052764,), (1384052765,), (1384052767,), (1384052797,), (1384052798,), (1384052800,), (1384052803,), (1384052806,), (1384052810,), (1384052825,), (1384052851,), (1384052848,), (1384052910,), (1384052929,), (1384052931,), (1384052932,), (1384052953,), (1384052954,), (1384052955,), (1384052957,), (1384052961,), (1384052982,), (1384052985,), (1384052987,), (1384052994,), (1384053001,), (1384053037,), (1384053052,), (1384053054,), (1384053055,), (1384053057,), (1384053070,), (1384053071,), (1384053089,), (1384053091,), (1384053095,), (1384053099,), (1384053117,), (1384053119,), (1384053122,), (1384053125,), (1384053127,), (1384053129,), (1384053135,), (1384053136,), (1384053137,), (1384053139,), (1384053161,), (1384053162,), (1384053163,), (1384053164,), (1384053178,), (1384053180,), (1384053182,), (1384053184,), (1384053211,), (1384053207,), (1384053208,), (1384053209,), (1384053224,), (1384053225,), (1384053226,), (1384053227,), (1384053245,), (1384053246,), (1384053247,), (1384053249,), (1384053258,), (1384053259,), (1384053260,), (1384053262,), (1384053280,), (1384053281,), (1384053282,), (1384053284,), (1384053286,), (1384053288,), (1384053303,), (1384053305,), (1384053309,), (1384053313,), (1384053331,), (1384053333,), (1384053335,), (1384053337,), (1384053339,), (1384053340,), (1384053342,), (1384053343,), (1384053349,), (1384053350,), (1384053352,), (1384053354,), (1384053356,), (1384053366,), (1384053367,), (1384053368,), (1384053385,), (1384053387,), (1384053388,), (1384053390,), (1384053408,), (1384053414,), (1384053417,), (1384053420,), (1384053422,), (1384053425,), (1384053426,), (1384053427,), (1384053430,), (1384053435,), (1384053616,), (1384053639,), (1384053663,), (1384054070,), (1384054095,), (1384054121,), (1384054129,), (1384054132,), (1384054139,), (1384054215,), (1384054417,), (1384054207,), (1384054212,), (1384054213,), (1384054230,), (1384054231,), (1384054233,), (1384054251,), (1384054276,), (1384054301,), (1384054392,), (1384054509,), (1384054531,), (1384054555,), (1384054579,), (1384054873,), (1384054898,), (1384054919,), (1384054944,), (1384054971,), (1384055109,), (1384055139,), (1384055164,), (1384055660,), (1384055701,), (1384055745,), (1384055775,), (1384055807,), (1384056057,), (1384056080,), (1384056108,), (1384056131,), (1384056139,), (1384056202,), (1384056230,), (1384056255,), (1384056280,), (1384056422,), (1384056436,), (1384056437,), (1384056439,), (1384056465,), (1384056468,), (1384056470,), (1384056471,), (1384056474,), (1384056484,), (1384056485,), (1384056486,), (1384056488,), (1384056490,), (1384056512,), (1384056513,), (1384056515,), (1384056518,), (1384056520,), (1384056523,), (1384056529,), (1384056538,), (1384056541,), (1384056542,), (1384056545,), (1384056548,), (1384056550,), (1384056571,), (1384056574,), (1384056576,), (1384056579,), (1384056582,), (1384056595,), (1384056600,), (1384056602,), (1384056604,), (1384056646,), (1384056635,), (1384056640,), (1384056642,), (1384056644,), (1384056653,), (1384056654,), (1384056655,), (1384056656,), (1384056682,), (1384056684,), (1384056685,), (1384056687,), (1384056690,), (1384056691,), (1384056699,), (1384056700,), (1384056701,), (1384056702,), (1384056719,), (1384056721,), (1384056777,), (1384056838,), (1384056848,), (1384056851,), (1384056870,), (1384056871,), (1384056872,), (1384056874,), (1384056876,), (1384056878,), (1384056897,), (1384056900,), (1384056906,), (1384056952,), (1384056953,), (1384056954,), (1384056956,), (1384056958,), (1384057000,), (1384057002,), (1384057003,), (1384057006,), (1384057015,), (1384057016,), (1384057019,), (1384057026,), (1384057029,), (1384057032,), (1384057039,), (1384057040,), (1384057041,), (1384057043,), (1384057049,), (1384057056,), (1384057058,), (1384057076,), (1384057072,), (1384057073,), (1384057074,), (1384057095,), (1384057096,), (1384057097,), (1384057099,), (1384057109,), (1384057110,), (1384057111,), (1384057112,), (1384057114,), (1384057116,), (1384057130,), (1384057132,), (1384057133,), (1384057150,), (1384057152,), (1384057154,), (1384057158,), (1384057163,), (1384057182,), (1384057184,), (1384057185,), (1384057188,), (1384057193,), (1384057195,), (1384057206,), (1384057207,), (1384057211,), (1384057216,), (1384057271,), (1384057273,), (1384057274,), (1384057276,), (1384057292,), (1384057293,), (1384057294,), (1384057295,), (1384057297,), (1384057299,), (1384057313,), (1384057315,), (1384057316,), (1384057318,), (1384057319,), (1384057321,), (1384057337,), (1384057338,), (1384057339,), (1384057366,), (1384057367,), (1384057369,), (1384057371,), (1384057373,), (1384057375,), (1384057379,), (1384057380,), (1384057390,), (1384057396,), (1384057398,), (1384057401,), (1384057404,), (1384057406,), (1384057428,), (1384057430,), (1384057432,), (1384057434,), (1384057447,), (1384057448,), (1384057450,), (1384057452,), (1384057454,), (1384057455,), (1384057466,), (1384057470,), (1384057482,), (1384057473,), (1384057476,), (1384057478,), (1384057479,), (1384057491,), (1384057492,), (1384057493,), (1384057495,), (1384057554,), (1384057560,), (1384057565,), (1384057567,), (1384057569,), (1384057571,), (1384057586,), (1384057587,), (1384057588,), (1384057590,), (1384057591,), (1384057593,), (1384057616,), (1384057618,), (1384057619,), (1384057621,), (1384057624,), (1384057636,), (1384057637,), (1384057638,), (1384057640,), (1384057665,), (1384057673,), (1384057676,), (1384057679,), (1384057684,), (1384057695,), (1384057728,), (1384057730,), (1384057731,), (1384057740,), (1384057741,), (1384057743,), (1384057746,), (1384057749,), (1384057785,), (1384057787,), (1384057801,), (1384057802,), (1384057803,), (1384057805,), (1384057809,), (1384057830,), (1384057833,), (1384057834,), (1384057836,), (1384057839,), (1384057853,), (1384057856,), (1384057859,), (1384057863,), (1384057870,), (1384057887,), (1384057920,), (1384057924,), (1384057928,), (1384058715,), (1384058762,), (1384058812,), (1384058857,), (1384058978,), (1384059004,), (1384059029,), (1384059427,), (1384060178,), (1384059229,), (1384059255,), (1384059282,), (1384059314,), (1384059369,), (1384059700,), (1384059740,), (1384059787,), (1384059846,), (1384059905,), (1384059948,), (1384060133,), (1384060325,), (1384060360,), (1384060394,), (1384060420,), (1384060443,), (1384060711,), (1384060734,), (1384060762,), (1384060798,), (1384060822,), (1384060853,), (1384060859,), (1384060885,), (1384060909,), (1384060935,), (1384061140,), (1384061141,), (1384061162,), (1384061199,), (1384061200,), (1384061201,), (1384061203,), (1384061207,), (1384061209,), (1384061229,), (1384061235,), (1384061237,), (1384061240,), (1384061314,), (1384061322,), (1384061347,), (1384061374,), (1384061399,), (1384061408,), (1384061467,), (1384061484,), (1384061487,), (1384061489,), (1384061491,), (1384061497,), (1384061681,), (1384061711,), (1384061712,), (1384061714,), (1384061718,), (1384061818,), (1384061820,), (1384061821,), (1384061823,), (1384061938,), (1384061966,), (1384062156,), (1384062158,), (1384062161,), (1384062168,), (1384062171,), (1384062240,), (1384062246,), (1384062248,), (1384062251,), (1384062255,), (1384062259,), (1384062282,), (1384062275,), (1384062278,), (1384062280,), (1384062423,), (1384062453,), (1384062476,), (1384062519,), (1384062556,), (1384062581,), (1384062715,), (1384062717,), (1384062718,), (1384062734,), (1384062735,), (1384062737,), (1384062760,), (1384062788,), (1384062812,), (1384062881,), (1384062883,), (1384062885,), (1384062887,), (1384062890,), (1384062894,), (1384062906,), (1384062907,), (1384062912,), (1384062937,), (1384063039,), (1384063048,), (1384063061,), (1384063065,), (1384063068,), (1384063071,), (1384063080,), (1384063082,), (1384063140,), (1384063163,), (1384063176,), (1384063178,), (1384063181,), (1384063210,), (1384063213,), (1384063214,), (1384063363,), (1384063371,), (1384063380,), (1384063386,), (1384063396,), (1384063405,), (1384063408,), (1384063410,), (1384063413,), (1384063417,), (1384063420,), (1384063436,), (1384063437,), (1384063438,), (1384063524,), (1384063549,), (1384063571,), (1384063596,), (1384063647,), (1384063781,), (1384063783,), (1384063785,), (1384063787,), (1384063790,), (1384063834,), (1384063866,), (1384063877,), (1384063887,), (1384063889,), (1384064008,), (1384064060,), (1384064003,), (1384064004,), (1384064039,), (1384064041,), (1384064043,), (1384064046,), (1384064049,), (1384064052,), (1384064058,), (1384064059,), (1384064062,), (1384064063,), (1384064064,), (1384064072,), (1384064075,), (1384064099,), (1384064101,), (1384064102,), (1384064104,), (1384064128,), (1384064130,), (1384064132,), (1384064137,), (1384064271,), (1384064288,), (1384064289,), (1384064292,), (1384064296,), (1384064351,), (1384064353,), (1384064355,), (1384064359,), (1384064363,), (1384064426,), (1384064447,), (1384064451,), (1384064467,), (1384064468,), (1384064470,), (1384064497,), (1384064499,), (1384064500,), (1384064542,), (1384064543,), (1384064544,), (1384064547,), (1384064552,), (1384064582,), (1384064584,), (1384064586,), (1384064590,), (1384064594,), (1384064598,), (1384064645,), (1384064653,), (1384064675,), (1384064683,), (1384064719,), (1384064720,), (1384064723,), (1384064753,), (1384064754,), (1384064755,), (1384064757,), (1384064762,), (1384064818,), (1384064820,), (1384064824,), (1384064828,), (1384064832,), (1384065114,), (1384065068,), (1384065075,), (1384065076,), (1384065078,), (1384065083,), (1384065176,), (1384065177,), (1384065293,), (1384065295,), (1384065296,), (1384065298,), (1384065302,), (1384065394,), (1384065406,), (1384065408,), (1384065429,), (1384065437,), (1384065724,), (1384065750,), (1384065773,), (1384065780,), (1384065789,), (1384065858,), (1384065865,), (1384065868,), (1384065872,), (1384065877,), (1384066028,), (1384066046,), (1384066067,), (1384066071,), (1384066078,), (1384066082,), (1384066094,), (1384066095,), (1384066096,), (1384066115,), (1384066116,), (1384066118,), (1384066121,), (1384066156,), (1384066158,), (1384066160,), (1384066162,), (1384066167,), (1384066187,), (1384066205,), (1384066207,), (1384066211,), (1384066215,), (1384066233,), (1384066237,), (1384066239,), (1384066292,), (1384066309,), (1384066311,), (1384066314,), (1384066603,), (1384066626,), (1384066649,), (1384066675,), (1384067061,), (1384067065,), (1384067068,), (1384067072,), (1384067085,), (1384067096,), (1384067124,), (1384067340,), (1384067871,), (1384067286,), (1384067314,), (1384067708,), (1384067734,), (1384067766,), (1384067793,), (1384067823,), (1384068296,), (1384068346,), (1384068397,), (1384068952,), (1384068977,), (1384069000,), (1384069032,), (1384069058,), (1384069538,), (1384069558,), (1384069561,), (1384069583,), (1384069790,), (1384069822,), (1384069867,), (1384070114,), (1384070137,), (1384070151,), (1384070158,), (1384070233,), (1384070235,), (1384070250,), (1384070252,), (1384070256,), (1384070325,), (1384070334,), (1384070336,), (1384070350,), (1384070354,), (1384070381,), (1384070383,), (1384070400,), (1384070574,), (1384070576,), (1384070577,), (1384070580,), (1384070584,), (1384070588,), (1384070657,), (1384070658,), (1384070660,), (1384070666,), (1384070671,), (1384070675,), (1384070715,), (1384070740,), (1384070745,), (1384070747,), (1384070748,), (1384070810,), (1384070823,), (1384070830,), (1384070846,), (1384070873,), (1384070878,), (1384070879,), (1384070893,), (1384070897,), (1384070922,), (1384070926,), (1384070929,), (1384070933,), (1384070968,), (1384070952,), (1384070954,), (1384070956,), (1384070960,), (1384070964,), (1384070985,), (1384070988,), (1384070991,), (1384071024,), (1384071026,), (1384071027,), (1384071063,), (1384071065,), (1384071067,), (1384071070,), (1384071074,), (1384071079,), (1384071172,), (1384071176,), (1384071178,), (1384071190,), (1384071202,), (1384071269,), (1384071282,), (1384071290,), (1384071561,), (1384071585,), (1384071611,), (1384071640,), (1384071646,), (1384071652,), (1384071664,), (1384071673,), (1384071674,), (1384071675,), (1384071681,), (1384071729,), (1384071746,), (1384071747,), (1384071749,), (1384071767,), (1384071768,), (1384071790,), (1384071936,), (1384071938,), (1384071939,), (1384071975,), (1384072089,), (1384072091,), (1384072092,), (1384072094,), (1384072099,), (1384072119,), (1384072121,), (1384072122,), (1384072123,), (1384072154,), (1384072166,), (1384072170,), (1384072172,), (1384072205,), (1384072247,), (1384072196,), (1384072197,), (1384072198,), (1384072200,), (1384072202,), (1384072222,), (1384072223,), (1384072225,), (1384072229,), (1384072233,), (1384072236,), (1384072243,), (1384072245,), (1384072257,), (1384072268,), (1384072270,), (1384072274,), (1384072341,), (1384072343,), (1384072344,), (1384072361,), (1384072369,), (1384072406,), (1384072407,), (1384072411,), (1384072470,), (1384072472,), (1384072473,), (1384072761,), (1384072762,), (1384072763,), (1384072924,), (1384072926,), (1384072927,), (1384073009,), (1384073010,), (1384073012,), (1384073017,), (1384073022,), (1384073052,), (1384073054,), (1384073055,), (1384073057,), (1384073148,), (1384073162,), (1384073165,), (1384073171,), (1384073176,), (1384073182,), (1384073194,), (1384073196,), (1384073198,), (1384073200,), (1384073239,), (1384073240,), (1384073242,), (1384073246,), (1384073269,), (1384073280,), (1384073324,), (1384073325,), (1384073326,), (1384073390,), (1384073394,), (1384073417,), (1384073420,), (1384073421,), (1384073464,), (1384073461,), (1384073463,), (1384073671,), (1384073697,), (1384073740,), (1384073766,), (1384073936,), (1384073938,), (1384073941,), (1384073945,), (1384073949,), (1384073951,), (1384073965,), (1384073966,), (1384073976,), (1384073979,), (1384073980,), (1384073982,), (1384073990,), (1384074111,), (1384074139,), (1384074173,), (1384074417,), (1384074419,), (1384074420,), (1384074423,), (1384074427,), (1384074449,), (1384074451,), (1384074454,), (1384074459,), (1384074463,), (1384074465,), (1384074489,), (1384074490,), (1384074515,), (1384074539,), (1384074564,), (1384074868,), (1384074876,), (1384074903,), (1384074906,), (1384074908,), (1384074927,), (1384074929,), (1384075570,), (1384088784,), (1384089617,), (1384089706,), (1384090500,), (1384090501,), (1384091084,), (1384091349,), (1384091353,), (1384091366,), (1384091380,), (1384091587,), (1384091625,), (1384091626,), (1384091836,), (1384091861,), (1384092041,), (1384092042,), (1384092043,), (1384092046,), (1384092147,), (1384092163,), (1384092169,), (1384092198,), (1384092250,), (1384092251,), (1384092252,), (1384092328,), (1384092602,), (1384092607,), (1384092627,), (1384092636,), (1384092728,), (1384092726,), (1384092727,), (1384092761,), (1384092769,), (1384093108,), (1384093186,), (1384093408,), (1384093595,), (1384093598,), (1384093967,), (1384094220,), (1384094607,), (1384094661,), (1384094911,), (1384095560,), (1384095599,), (1384095603,), (1384096058,), (1384096138,), (1384096237,), (1384096326,), (1384096368,), (1384097503,), (1384097531,), (1384097567,), (1384097754,), (1384097791,), (1384097832,), (1384097863,), (1384097905,), (1384098205,), (1384098069,), (1384098098,), (1384098127,), (1384098154,), (1384098182,), (1384098458,), (1384098485,), (1384098509,), (1384098536,), (1384098805,), (1384098851,), (1384098892,), (1384098921,), (1384099812,), (1384099842,), (1384099866,), (1384100443,), (1384100467,), (1384100493,), (1384100518,), (1384100544,), (1384100974,), (1384100998,), (1384101039,), (1384101715,), (1384101719,), (1384102240,), (1384102730,), (1384102811,), (1384102812,), (1384102854,), (1384102881,), (1384102907,), (1384102935,), (1384103002,), (1384103258,), (1384103264,), (1384103355,), (1384103356,), (1384103357,), (1384103390,), (1384103438,), (1384103704,), (1384103703,), (1384103893,), (1384103895,), (1384103896,), (1384103897,), (1384104508,), (1384104809,), (1384104811,), (1384104812,), (1384104880,), (1384104899,), (1384104906,), (1384105124,), (1384105127,), (1384105130,), (1384105132,), (1384105138,), (1384105164,), (1384105207,), (1384105208,), (1384105239,), (1384105280,), (1384105306,), (1384105332,), (1384105487,), (1384105491,), (1384105493,), (1384105517,), (1384105527,), (1384105530,), (1384105635,), (1384105666,), (1384105804,), (1384105828,), (1384105862,), (1384106335,), (1384106377,), (1384106406,), (1384106479,), (1384106547,), (1384106876,), (1384106902,), (1384107267,), (1384107293,), (1384107316,), (1384107341,), (1384107713,), (1384107738,), (1384107765,), (1384107789,), (1384107815,), (1384108408,), (1384108262,), (1384108328,), (1384108406,), (1384108851,), (1384108881,), (1384109599,), (1384109643,), (1384109695,), (1384110022,), (1384110027,), (1384110868,), (1384110960,), (1384111039,), (1384111782,), (1384111895,), (1384111940,), (1384111956,), (1384111960,), (1384112408,), (1384112475,), (1384112532,), (1384112571,), (1384112606,), (1384113051,), (1384113111,), (1384113158,), (1384113187,), (1384113466,), (1384113487,), (1384113493,), (1384113495,), (1384113509,), (1384113749,), (1384113750,), (1384113751,), (1384113753,), (1384113756,), (1384113759,), (1384113957,), (1384113958,), (1384113959,), (1384114090,), (1384114093,), (1384114095,), (1384114098,), (1384114237,), (1384114282,), (1384114583,), (1384114594,), (1384114627,), (1384114722,), (1384114721,), (1384115165,), (1384115218,), (1384115244,), (1384115589,), (1384115614,), (1384116107,), (1384116151,), (1384116196,), (1384116482,), (1384116483,), (1384116484,), (1384116486,), (1384116661,), (1384116685,), (1384116710,), (1384116734,), (1384117176,), (1384117248,), (1384118185,), (1384118271,), (1384118359,), (1384118396,), (1384118423,), (1384118447,), (1384118945,), (1384119072,), (1384119143,), (1384119198,), (1384119249,), (1384119683,), (1384119688,), (1384119690,), (1384120113,), (1384120138,), (1384120161,), (1384120185,), (1384120210,), (1384120642,), (1384120691,), (1384120715,), (1384120739,), (1384121034,), (1384121035,), (1384121036,), (1384121038,), (1384121042,), (1384121504,), (1384121535,), (1384121566,), (1384121594,), (1384121623,), (1384121841,), (1384121831,), (1384121836,), (1384121839,), (1384124079,), (1384124143,), (1384126280,), (1384126368,), (1384126439,), (1384126503,), (1384126903,), (1384126917,), (1384126940,), (1384126974,), (1384129601,), (1384129911,), (1384129914,), (1384129916,), (1384129940,), (1384129967,), (1384130076,), (1384130079,), (1384130223,), (1384130229,), (1384130230,), (1384130232,), (1384130315,), (1384130317,), (1384130337,), (1384130448,), (1384130450,), (1384130467,), (1384130492,), (1384130977,), (1384131022,), (1384131157,), (1384131656,), (1384131781,), (1384131849,), (1384132563,), (1384132587,), (1384132634,), (1384133158,), (1384133183,), (1384133207,), (1384133231,), (1384133551,), (1384133578,), (1384133608,), (1384133634,), (1384133650,), (1384133725,), (1384133731,), (1384133733,), (1384133761,), (1384133762,), (1384133763,), (1384133766,), (1384133770,), (1384133792,), (1384133794,), (1384133798,), (1384133803,), (1384133806,), (1384133814,), (1384133825,), (1384133827,), (1384133830,), (1384133881,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17092025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26940069]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1384133881] map_info['map_portfolio_photo'] : {26940069: [1384133881, 1384133830, 1384133827, 1384133825, 1384133814, 1384133806, 1384133803, 1384133798, 1384133794, 1384133792, 1384133770, 1384133766, 1384133763, 1384133762, 1384133761, 1384133733, 1384133731, 1384133725, 1384133650, 1384133634, 1384133608, 1384133578, 1384133551, 1384133231, 1384133207, 1384133183, 1384133158, 1384132634, 1384132587, 1384132563, 1384131849, 1384131781, 1384131656, 1384131157, 1384131022, 1384130977, 1384130492, 1384130467, 1384130450, 1384130448, 1384130337, 1384130317, 1384130315, 1384130232, 1384130230, 1384130229, 1384130223, 1384130079, 1384130076, 1384129967, 1384129940, 1384129916, 1384129914, 1384129911]} final : True mtd_id 4302 list_pids : [1384133881] Looping around the photos to save general results len do output : 1 /26940069Didn'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, '3734459') ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26940069', 'None', None, None, None, None, '3734459'), ('4302', '26940069', '1384133881', None, None, None, None, None, '3734459')] time used for this insertion : 0.015098333358764648 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3437745571136475 time spend to save output : 0.015271186828613281 total time spend for step 5 : 2.3590457439422607 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 (3734459) 2.06user 2.31system 0:11.97elapsed 36%CPU (0avgtext+0avgdata 155024maxresident)k 136inputs+10272outputs (15major+62009minor)pagefaults 0swaps