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 : 1667641 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 (4206894) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4206894) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300657 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4206894'] with mtr_portfolio_ids : ['29300657'] and first list_photo_ids : [] new path : /proc/1667641/ Name: python3 Umask: 0002 State: R (running) Tgid: 1667641 Ngid: 0 Pid: 1667641 PPid: 1667639 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1667641 NSpid: 1667641 NSpgid: 1667063 NSsid: 1667063 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104268 kB VmRSS: 104268 kB RssAnon: 66292 kB RssFile: 37976 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 580 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: 41 nonvoluntary_ctxt_switches: 153 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1667641', 'Ngid': '0', 'Pid': '1667641', 'PPid': '1667639', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1667641', 'NSpid': '1667641', 'NSpgid': '1667063', 'NSsid': '1667063', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104268 kB', 'VmRSS': '104268 kB', 'RssAnon': '66292 kB', 'RssFile': '37976 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '580 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': '41', 'nonvoluntary_ctxt_switches': '153'} ('datou_batch_current', '1667641', '1113364', '0', '1113364', '872092', '104268', b'', 'marlene', '4206894') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29300657) 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 (4206894 ) ) 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 (29300657) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398688870, 'portfolio_id': 29300657}, {'photo_id': 1398688309, 'portfolio_id': 29300657}, {'photo_id': 1398688281, 'portfolio_id': 29300657}, {'photo_id': 1398688239, 'portfolio_id': 29300657}, {'photo_id': 1398688174, 'portfolio_id': 29300657}, {'photo_id': 1398687589, 'portfolio_id': 29300657}, {'photo_id': 1398687534, 'portfolio_id': 29300657}, {'photo_id': 1398687463, 'portfolio_id': 29300657}, {'photo_id': 1398687398, 'portfolio_id': 29300657}, {'photo_id': 1398687223, 'portfolio_id': 29300657}, {'photo_id': 1398687150, 'portfolio_id': 29300657}, {'photo_id': 1398687147, 'portfolio_id': 29300657}, {'photo_id': 1398687143, 'portfolio_id': 29300657}, {'photo_id': 1398687139, 'portfolio_id': 29300657}, {'photo_id': 1398687136, 'portfolio_id': 29300657}, {'photo_id': 1398687133, 'portfolio_id': 29300657}, {'photo_id': 1398687050, 'portfolio_id': 29300657}, {'photo_id': 1398680744, 'portfolio_id': 29300657}] map_portfolio_id_photo_id: {29300657: [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744]} ##### 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.018249988555908203 #### 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 Thu Dec 11 05:46:28 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 (29300657) 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 : 29300657 get user id for portfolio 29300657 get sub ptf for main ptf 29300657, type 3726 and hashtags ['mal_croppe', 'metal', 'cartonnette', 'Carton_brun', 'environnement', 'plastique', 'autre_refus', 'papier', 'kraft', 'Carton_gris', 'flou', 'Teint_Dans_La_Masse'] 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`=29300657 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','cartonnette','Carton_brun','environnement','plastique','autre_refus','papier','kraft','Carton_gris','flou','Teint_Dans_La_Masse')) 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`=29300657 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','cartonnette','Carton_brun','environnement','plastique','autre_refus','papier','kraft','Carton_gris','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29300657, 'sub_port_id': 29300658, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943394, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'cartonnette': {'main_port_id': 29300657, 'sub_port_id': 29300659, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943395, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'environnement': {'main_port_id': 29300657, 'sub_port_id': 29300660, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943396, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'papier': {'main_port_id': 29300657, 'sub_port_id': 29300661, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943397, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'metal': {'main_port_id': 29300657, 'sub_port_id': 29300662, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943398, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'Carton_brun': {'main_port_id': 29300657, 'sub_port_id': 29300663, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943399, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29300657, 'sub_port_id': 29300664, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943400, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'Carton_gris': {'main_port_id': 29300657, 'sub_port_id': 29300665, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943401, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'flou': {'main_port_id': 29300657, 'sub_port_id': 29300666, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943402, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'plastique': {'main_port_id': 29300657, 'sub_port_id': 29300667, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943403, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'autre_refus': {'main_port_id': 29300657, 'sub_port_id': 29300668, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943404, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}, 'kraft': {'main_port_id': 29300657, 'sub_port_id': 29300669, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943405, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 42, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29300658 , 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=29300657 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 (29300658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300659 , 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=29300657 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 (29300659) result : ((1398691142,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300660 , 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=29300657 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 (29300660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300661 , 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=29300657 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 (29300661) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300662 , 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=29300657 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 (29300662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300663 , 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=29300657 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 (29300663) result : ((1398688521,), (1398688523,), (1398690082,), (1398690084,), (1398691143,), (1398706184,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300664 , 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=29300657 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 (29300664) result : ((1398690060,), (1398690062,), (1398691139,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300665 , 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=29300657 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 (29300665) result : ((1398688512,), (1398688514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300666 , 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=29300657 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 (29300666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300667 , 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=29300657 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 (29300667) result : ((1398688657,), (1398690090,), (1398690091,), (1398690092,), (1398690093,), (1398690094,), (1398690095,), (1398690096,), (1398690097,), (1398690098,), (1398690099,), (1398690100,), (1398690101,), (1398691145,), (1398691146,), (1398691147,), (1398691148,), (1398691149,), (1398706198,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300668 , 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=29300657 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 (29300668) result : ((1398688494,), (1398688496,), (1398688498,), (1398688500,), (1398688648,), (1398690071,), (1398691140,), (1398706176,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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 29300669 , 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=29300657 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 (29300669) result : ((1398690102,), (1398691151,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29300657) result : ((1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,)) 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`=29300657 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','cartonnette','Carton_brun','environnement','plastique','autre_refus','papier','kraft','Carton_gris','flou','Teint_Dans_La_Masse')) 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`=29300657 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','cartonnette','Carton_brun','environnement','plastique','autre_refus','papier','kraft','Carton_gris','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29300657, 'sub_port_id': 29300670, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943406, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'cartonnette': {'main_port_id': 29300657, 'sub_port_id': 29300671, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943407, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'environnement': {'main_port_id': 29300657, 'sub_port_id': 29300672, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943408, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'papier': {'main_port_id': 29300657, 'sub_port_id': 29300673, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943409, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'metal': {'main_port_id': 29300657, 'sub_port_id': 29300674, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943410, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'Carton_brun': {'main_port_id': 29300657, 'sub_port_id': 29300675, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943411, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'Teint_Dans_La_Masse': {'main_port_id': 29300657, 'sub_port_id': 29300676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943412, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'Carton_gris': {'main_port_id': 29300657, 'sub_port_id': 29300677, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943413, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'flou': {'main_port_id': 29300657, 'sub_port_id': 29300678, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943414, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'plastique': {'main_port_id': 29300657, 'sub_port_id': 29300679, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943415, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'autre_refus': {'main_port_id': 29300657, 'sub_port_id': 29300680, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943416, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}, 'kraft': {'main_port_id': 29300657, 'sub_port_id': 29300681, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19943417, 'last_updated_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 13, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 13, 43, 4)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29300681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29300669 lien utilise dans velours : https://marlene.fotonower.com/velours/29300670,29300671,29300672,29300673,29300674,29300675,29300676,29300677,29300678,29300679,29300680,29300681?tags=mal_croppe,cartonnette,environnement,papier,metal,Carton_brun,Teint_Dans_La_Masse,Carton_gris,flou,plastique,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29300657]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] map_info['map_portfolio_photo'] : {29300657: [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744]} final : False mtd_id 4302 list_pids : [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] Looping around the photos to save general results len do output : 1 /29300657. 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, '4206894') ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29300657', "{'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669}", None, None, None, None, '4206894'), ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894')] time used for this insertion : 0.018288135528564453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.825040578842163 time spend to save output : 0.018702983856201172 total time spend for step 1 : 1.8437435626983643 step2:final Thu Dec 11 05:46:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29300657) 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 29300657 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398680744,1398687223,1398687150,1398687050,1398687147,1398687143,1398687139,1398687136,1398687133,1398687589,1398687534,1398687463,1398687398,1398688309,1398688281,1398688239,1398688174,1398688870); 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([29300657]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} new output for save of step final : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] map_info['map_portfolio_photo'] : {29300657: [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744]} final : False mtd_id 4302 list_pids : [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] Looping around the photos to save general results len do output : 18 /1398688870.Didn't retrieve data . /1398688309.Didn't retrieve data . /1398688281.Didn't retrieve data . /1398688239.Didn't retrieve data . /1398688174.Didn't retrieve data . /1398687589.Didn't retrieve data . /1398687534.Didn't retrieve data . /1398687463.Didn't retrieve data . /1398687398.Didn't retrieve data . /1398687223.Didn't retrieve data . /1398687150.Didn't retrieve data . /1398687147.Didn't retrieve data . /1398687143.Didn't retrieve data . /1398687139.Didn't retrieve data . /1398687136.Didn't retrieve data . /1398687133.Didn't retrieve data . /1398687050.Didn't retrieve data . /1398680744.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, '4206894') ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '29300657', '1398688870', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398688309', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398688281', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398688239', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398688174', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687589', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687534', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687463', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687398', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687223', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687150', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687147', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687143', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687139', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687136', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687133', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398687050', '0.07534645631729242', None, None, None, None, '4206894'), ('4302', '29300657', '1398680744', '0.07534645631729242', None, None, None, None, '4206894')] time used for this insertion : 0.017445087432861328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07977843284606934 time spend to save output : 0.018325090408325195 total time spend for step 2 : 0.09810352325439453 step3:velours_tree Thu Dec 11 05:46:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29300657: [{'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669}]} input_args_next_step : {29300657: ()} output_args : {29300657: [{'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669}]} args : 29300657 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 : ({'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29300657) 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([29300657]) 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.27570605278015137 time spend to save output : 7.176399230957031e-05 total time spend for step 3 : 0.27577781677246094 step4:send_mail_cod Thu Dec 11 05:46:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} input_args_next_step : {1398688870: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398688870 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398688309 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398688281 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398688239 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398688174 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687589 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687534 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687463 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687398 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687223 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687150 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687147 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687143 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687139 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687136 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687133 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398687050 depend.output_id : 0 input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ()} output_args : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',)} args : 1398680744 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29300657: [{'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669}]} input_args_next_step : {1398688870: ('0.07534645631729242',), 1398688309: ('0.07534645631729242',), 1398688281: ('0.07534645631729242',), 1398688239: ('0.07534645631729242',), 1398688174: ('0.07534645631729242',), 1398687589: ('0.07534645631729242',), 1398687534: ('0.07534645631729242',), 1398687463: ('0.07534645631729242',), 1398687398: ('0.07534645631729242',), 1398687223: ('0.07534645631729242',), 1398687150: ('0.07534645631729242',), 1398687147: ('0.07534645631729242',), 1398687143: ('0.07534645631729242',), 1398687139: ('0.07534645631729242',), 1398687136: ('0.07534645631729242',), 1398687133: ('0.07534645631729242',), 1398687050: ('0.07534645631729242',), 1398680744: ('0.07534645631729242',), 29300657: ()} output_args : {29300657: [{'mal_croppe': 29300658, 'cartonnette': 29300659, 'environnement': 29300660, 'papier': 29300661, 'metal': 29300662, 'Carton_brun': 29300663, 'Teint_Dans_La_Masse': 29300664, 'Carton_gris': 29300665, 'flou': 29300666, 'plastique': 29300667, 'autre_refus': 29300668, 'kraft': 29300669}]} args : 29300657 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 :19, first value : ('0.07534645631729242',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29300657) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1398688870,1398688309,1398688281,1398688239,1398688174,1398687589,1398687534,1398687463,1398687398,1398687223,1398687150,1398687147,1398687143,1398687139,1398687136,1398687133,1398687050,1398680744) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398680744 begin to download photo : 1398687139 begin to download photo : 1398687223 begin to download photo : 1398687589 begin to download photo : 1398688309 download finish for photo 1398687223 begin to download photo : 1398687398 download finish for photo 1398688309 begin to download photo : 1398688870 download finish for photo 1398687589 begin to download photo : 1398688174 download finish for photo 1398687139 begin to download photo : 1398687143 download finish for photo 1398680744 begin to download photo : 1398687050 download finish for photo 1398688870 download finish for photo 1398687398 begin to download photo : 1398687463 download finish for photo 1398687050 begin to download photo : 1398687133 download finish for photo 1398687143 begin to download photo : 1398687147 download finish for photo 1398688174 begin to download photo : 1398688239 download finish for photo 1398687463 begin to download photo : 1398687534 download finish for photo 1398687133 begin to download photo : 1398687136 download finish for photo 1398688239 begin to download photo : 1398688281 download finish for photo 1398687147 begin to download photo : 1398687150 download finish for photo 1398687136 download finish for photo 1398687534 download finish for photo 1398688281 download finish for photo 1398687150 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293006581765428391/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29300657_11-12-2025_05_46_31.pdf 29300658 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293006581765428391 29300659 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398691142: '1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790780_0.png'} change filename to text .imagette293006591765428391/ imagette293006591765428391/1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790780_0.png.png imagette293006621765428391/ imagette293006661765428392/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6d42a033c4ba033f0beb23b40cf9e9c4_95511008.png imagette293006591765428391 29300662 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293006621765428391 29300666 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293006661765428392 29300667 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398690098: '1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783021_0.png', 1398706198: '1765373727_2613210_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775536_0.png', 1398691149: '1765371087_2457865_1398688174_c14ec1bfb598a789054dfc8223a09630_rle_crop_4064790827_0.png', 1398691148: '1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790813_0.png', 1398691147: '1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790809_0.png', 1398691146: '1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790798_0.png', 1398691145: '1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790799_0.png', 1398690101: '1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783038_0.png', 1398690100: '1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783037_0.png', 1398690099: '1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783016_0.png', 1398688657: '1765370726_2437220_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775536_0.png', 1398690097: '1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783019_0.png', 1398690096: '1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783017_0.png', 1398690095: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783007_0.png', 1398690094: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783000_0.png', 1398690093: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064782992_0.png', 1398690092: '1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782979_0.png', 1398690091: '1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782988_0.png', 1398690090: '1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782976_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ede4c074e37c850f7a4ee36ca64da78e_54317183.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/62120605e70ad17c57c93c688053b015_94471926.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/dc36caca497d1ef8b1e312ee3615f20a_76218087.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a60948f160b0ed39d8bb5cba7c44e129_63221687.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1def609768bb9036fb5ca8c8dfeb495b_142707.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c69c031a1c9264c613c8e0a543ac6a3c_19053748.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e96f8701c6086d4d11b8c27f4c2657be_62797873.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/40072d4891ec51b006fe82137fdc1d80_5849536.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ac9df05bee04a4e8ae7f745540875534_39056207.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a2839856079d404939f676aec5a533b2_82681899.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/62120605e70ad17c57c93c688053b015_1588267.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a14356ee7464b9bd26d336eeaad0d0a5_27861760.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/19bf7d51f9751ef0714ec183632b720f_66961811.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bc7f124cac958b5402f2ee81a4bfc060_30868219.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/8faafc9d351b3dfa398daeadeb1534bc_27528436.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/137776c383e3c834e0c3f60ab8797edc_57832884.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e267fbcff988949df9732c44e0a31827_69325394.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e50d167065d7fbe1ae189e373a7b6669_70869829.png change filename to text .imagette293006671765428392/ imagette293006671765428392/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783000_0.png.png imagette293006671765428392/1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783037_0.png.png imagette293006671765428392/1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790799_0.png.png imagette293006671765428392/1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783021_0.png.png imagette293006671765428392/1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783016_0.png.png imagette293006671765428392/1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782976_0.png.png imagette293006671765428392/1765371087_2457865_1398688174_c14ec1bfb598a789054dfc8223a09630_rle_crop_4064790827_0.png.png imagette293006671765428392/1765373727_2613210_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775536_0.png.png imagette293006671765428392/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783007_0.png.png imagette293006671765428392/1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783019_0.png.png imagette293006671765428392/1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783017_0.png.png imagette293006671765428392/1765370726_2437220_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775536_0.png.png imagette293006671765428392/1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782979_0.png.png imagette293006671765428392/1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790809_0.png.png imagette293006671765428392/1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783038_0.png.png imagette293006671765428392/1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790813_0.png.png imagette293006671765428392/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064782992_0.png.png imagette293006671765428392/1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782988_0.png.png imagette293006671765428392/1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790798_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/844a3c5b9658623421a78e11aa7a4294_69529507.png imagette293006671765428392 29300668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398688494: '1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775398_0.png', 1398688496: '1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775391_0.png', 1398688498: '1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775425_0.png', 1398688500: '1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775418_0.png', 1398688648: '1765370726_2437220_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775537_0.png', 1398690071: '1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782975_0.png', 1398691140: '1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790781_0.png', 1398706176: '1765373727_2613210_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0f871abefcae585858bc99dbeb37f930_70649027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4b67f1c83a9581bf05886bba8a59d2b9_49383657.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0f871abefcae585858bc99dbeb37f930_29579318.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4b67f1c83a9581bf05886bba8a59d2b9_46576830.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6dbd7b462167fee663d0686f5a62a2cc_34424485.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6b7d86e10d7aa043303b3af68e8841aa_17769398.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a5eb4c4f30b80b298fdc751914600fba_30406814.png change filename to text .imagette293006681765428394/ imagette293006681765428394/1765370848_2444479_1398688309_12fabafb05caeb7a6c63c31235c5fcf5_rle_crop_4064782975_0.png.png imagette293006681765428394/1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775418_0.png.png imagette293006681765428394/1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775391_0.png.png imagette293006681765428394/1765373727_2613210_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775537_0.png.png imagette293006681765428394/1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775398_0.png.png imagette293006681765428394/1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775425_0.png.png imagette293006681765428394/1765370726_2437220_1398687133_42d147076a3ba00fbbdcadf4b9b2414a_rle_crop_4064775537_0.png.png imagette293006681765428394/1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790781_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6dbd7b462167fee663d0686f5a62a2cc_32471160.png imagette293006681765428394 29300669 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398690102: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064782998_0.png', 1398691151: '1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790811_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/07876d68936540592aec0a896769c699_16329621.png change filename to text .imagette293006691765428395/ imagette293006691765428395/1765371087_2457865_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e_rle_crop_4064790811_0.png.png imagette293006691765428395/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064782998_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e3804a8b2d9a2f1a1ff4ed6374d55399_75019419.png imagette293006691765428395 29300663 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398688521: '1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775393_0.png', 1398688523: '1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775420_0.png', 1398690082: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783003_0.png', 1398690084: '1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783023_0.png', 1398691143: '1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790800_0.png', 1398706184: '1765373727_2613210_1398687589_b61cc4da310ed0eb980894cc1e12908c_rle_crop_4064913861_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b217568f9badf9984dd4b563cf94f567_85970897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b217568f9badf9984dd4b563cf94f567_45932769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ce16d9eb006c1b9f7a9d86166677f231_55522878.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f76439bde1240baee4f72c859c4c136d_66040980.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cd324ac6085c1013303c746f6486922c_35146549.png change filename to text .imagette293006631765428395/ imagette293006631765428395/1765370848_2444479_1398687463_9b83b6c0f816dc14d79e7cda0890518c_rle_crop_4064783023_0.png.png imagette293006631765428395/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783003_0.png.png imagette293006631765428395/1765371087_2457865_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc_rle_crop_4064790800_0.png.png imagette293006631765428395/1765370706_2436878_1398687147_f0effe84a4bb9c40a2c63411de356c96_rle_crop_4064775393_0.png.png imagette293006631765428395/1765370706_2436878_1398687050_7396b9381f496b7d7c6cf4cecc99904b_rle_crop_4064775420_0.png.png imagette293006631765428395/1765373727_2613210_1398687589_b61cc4da310ed0eb980894cc1e12908c_rle_crop_4064913861_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/13bc2f24b01f793eada2326b1cf88edd_91645329.png imagette293006631765428395 29300664 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398690060: '1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783001_0.png', 1398690062: '1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783030_0.png', 1398691139: '1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790779_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/77277f4451badd8a98a1910fb10b84fb_17204028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fbe35ea0db01713c48bbdc01c35d03d3_90337710.png change filename to text .imagette293006641765428396/ imagette293006641765428396/1765370848_2444479_1398687534_ce0d48e42f2ed288da7e2a11af885333_rle_crop_4064783001_0.png.png imagette293006641765428396/1765371087_2457865_1398688870_91ce65b4c74d86a800be2521d6ca2d18_rle_crop_4064790779_0.png.png imagette293006641765428396/1765370848_2444479_1398687398_547b78a74d269ac9037a42f16b078165_rle_crop_4064783030_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e8875685682e87f38228dbf7747a7ccc_53684090.png imagette293006641765428396 29300665 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398688512: '1765370706_2436878_1398687150_84d72323a986b137fef311c0994a59fb_rle_crop_4064775385_0.png', 1398688514: '1765370706_2436878_1398687143_20c17b12c0a27eabca98dacc90121576_rle_crop_4064775404_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5b1cf13694cd1a6f0706cb42e7ee64b9_28512340.png change filename to text .imagette293006651765428396/ imagette293006651765428396/1765370706_2436878_1398687150_84d72323a986b137fef311c0994a59fb_rle_crop_4064775385_0.png.png imagette293006651765428396/1765370706_2436878_1398687143_20c17b12c0a27eabca98dacc90121576_rle_crop_4064775404_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/05f0f232db05824d4623a2e6305c63ec_37883890.png imagette293006651765428396 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29300657 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29300670,29300671,29300672,29300673,29300674,29300675,29300676,29300677,29300678,29300679,29300680,29300681?tags=mal_croppe,cartonnette,environnement,papier,metal,Carton_brun,Teint_Dans_La_Masse,Carton_gris,flou,plastique,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1398688870] : ('0.07534645631729242',) no score found for photo 1398688870 We are sending mail with results at report@fotonower.com args[1398688309] : ('0.07534645631729242',) no score found for photo 1398688309 We are sending mail with results at report@fotonower.com args[1398688281] : ('0.07534645631729242',) no score found for photo 1398688281 We are sending mail with results at report@fotonower.com args[1398688239] : ('0.07534645631729242',) no score found for photo 1398688239 We are sending mail with results at report@fotonower.com args[1398688174] : ('0.07534645631729242',) no score found for photo 1398688174 We are sending mail with results at report@fotonower.com args[1398687589] : ('0.07534645631729242',) no score found for photo 1398687589 We are sending mail with results at report@fotonower.com args[1398687534] : ('0.07534645631729242',) no score found for photo 1398687534 We are sending mail with results at report@fotonower.com args[1398687463] : ('0.07534645631729242',) no score found for photo 1398687463 We are sending mail with results at report@fotonower.com args[1398687398] : ('0.07534645631729242',) no score found for photo 1398687398 We are sending mail with results at report@fotonower.com args[1398687223] : ('0.07534645631729242',) no score found for photo 1398687223 We are sending mail with results at report@fotonower.com args[1398687150] : ('0.07534645631729242',) no score found for photo 1398687150 We are sending mail with results at report@fotonower.com args[1398687147] : ('0.07534645631729242',) no score found for photo 1398687147 We are sending mail with results at report@fotonower.com args[1398687143] : ('0.07534645631729242',) no score found for photo 1398687143 We are sending mail with results at report@fotonower.com args[1398687139] : ('0.07534645631729242',) no score found for photo 1398687139 We are sending mail with results at report@fotonower.com args[1398687136] : ('0.07534645631729242',) no score found for photo 1398687136 We are sending mail with results at report@fotonower.com args[1398687133] : ('0.07534645631729242',) no score found for photo 1398687133 We are sending mail with results at report@fotonower.com args[1398687050] : ('0.07534645631729242',) no score found for photo 1398687050 We are sending mail with results at report@fotonower.com args[1398680744] : ('0.07534645631729242',) no score found for photo 1398680744 We are sending mail with results at report@fotonower.com refus_total : 0.07534645631729242 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300657 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_P29300657_11-12-2025_05_46_31.pdf results_Auto_P29300657_11-12-2025_05_46_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_11-12-2025_05_46_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29300657','results_Auto_P29300657_11-12-2025_05_46_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_11-12-2025_05_46_31.pdf','pdf','','0.29','0.07534645631729242') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29300657]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] map_info['map_portfolio_photo'] : {29300657: [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744]} final : False mtd_id 4302 list_pids : [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] 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, '4206894') ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29300657', '1398688870', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894')] time used for this insertion : 0.016759395599365234 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.571122169494629 time spend to save output : 0.017021894454956055 total time spend for step 4 : 7.588144063949585 step5:split_time_score Thu Dec 11 05:46:38 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 : ['29300657'] 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 : [('29300657',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29300657) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398688309: {'path': 'temp/1765428391_1667641_1398688309_12fabafb05caeb7a6c63c31235c5fcf5.jpg', 'extension': 'jpg'}, 1398688870: {'path': 'temp/1765428391_1667641_1398688870_91ce65b4c74d86a800be2521d6ca2d18.jpg', 'extension': 'jpg'}, 1398680744: {'path': 'temp/1765428391_1667641_1398680744_3e1cb6273891bd9dd33e7517221a100d.jpg', 'extension': 'jpg'}, 1398687050: {'path': 'temp/1765428391_1667641_1398687050_7396b9381f496b7d7c6cf4cecc99904b.jpg', 'extension': 'jpg'}, 1398687133: {'path': 'temp/1765428391_1667641_1398687133_42d147076a3ba00fbbdcadf4b9b2414a.jpg', 'extension': 'jpg'}, 1398687136: {'path': 'temp/1765428391_1667641_1398687136_f18aa8651d562a33d67f4efb3c3b9ee5.jpg', 'extension': 'jpg'}, 1398687223: {'path': 'temp/1765428391_1667641_1398687223_5fc37c1f8d4f547bdc10c28b4c019a67.jpg', 'extension': 'jpg'}, 1398687398: {'path': 'temp/1765428391_1667641_1398687398_547b78a74d269ac9037a42f16b078165.jpg', 'extension': 'jpg'}, 1398687463: {'path': 'temp/1765428391_1667641_1398687463_9b83b6c0f816dc14d79e7cda0890518c.jpg', 'extension': 'jpg'}, 1398687534: {'path': 'temp/1765428391_1667641_1398687534_ce0d48e42f2ed288da7e2a11af885333.jpg', 'extension': 'jpg'}, 1398687589: {'path': 'temp/1765428391_1667641_1398687589_b61cc4da310ed0eb980894cc1e12908c.jpg', 'extension': 'jpg'}, 1398688174: {'path': 'temp/1765428391_1667641_1398688174_c14ec1bfb598a789054dfc8223a09630.jpg', 'extension': 'jpg'}, 1398688239: {'path': 'temp/1765428391_1667641_1398688239_48b5da1e5af4f55bfe9f9f50ee91628e.jpg', 'extension': 'jpg'}, 1398688281: {'path': 'temp/1765428391_1667641_1398688281_6db7cc56ee946c7dd9ee2227e7a388bc.jpg', 'extension': 'jpg'}, 1398687139: {'path': 'temp/1765428391_1667641_1398687139_a9f7023799ed3fda9a1136ccf593a5c4.jpg', 'extension': 'jpg'}, 1398687143: {'path': 'temp/1765428391_1667641_1398687143_20c17b12c0a27eabca98dacc90121576.jpg', 'extension': 'jpg'}, 1398687147: {'path': 'temp/1765428391_1667641_1398687147_f0effe84a4bb9c40a2c63411de356c96.jpg', 'extension': 'jpg'}, 1398687150: {'path': 'temp/1765428391_1667641_1398687150_84d72323a986b137fef311c0994a59fb.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 = 29300657; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29300657 group by h (('13', 18),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29300657 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 (29300657) 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 (29300657) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10122025 29300657 Nombre de photos uploadées : 18 / 23040 (0%) 10122025 29300657 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 10122025 29300657 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1398680744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3e1cb6273891bd9dd33e7517221a100d.jpg', 'username': None, 'uploaded_at': 1765369987, 'text': 'image_10122025_13_32_34_10147.jpg'}, {'photo_id': 1398687223, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5fc37c1f8d4f547bdc10c28b4c019a67.jpg', 'username': None, 'uploaded_at': 1765370633, 'text': 'image_10122025_13_40_34_10145.jpg'}, {'photo_id': 1398687150, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/84d72323a986b137fef311c0994a59fb.jpg', 'username': None, 'uploaded_at': 1765370593, 'text': 'image_10122025_13_41_24_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398687050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7396b9381f496b7d7c6cf4cecc99904b.jpg', 'username': None, 'uploaded_at': 1765370523, 'text': 'image_10122025_13_41_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008056163787841797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29300657, '2025-12-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2712863,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23295974731445312 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= 2712863 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29283133, 'dashboard_result_id': 18239695, '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_P29283133_11-12-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29283507, 'dashboard_result_id': 18239696, '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_P29283507_11-12-2025_05_34_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29283563, 'dashboard_result_id': 18239697, '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_P29283563_11-12-2025_05_35_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29283646, 'dashboard_result_id': 18239698, '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_P29283646_11-12-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29284551, 'dashboard_result_id': 18239699, '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_P29284551_11-12-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29284712, 'dashboard_result_id': 18239700, '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_P29284712_11-12-2025_05_36_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29285136, 'dashboard_result_id': 18239701, '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_P29285136_11-12-2025_05_36_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29285345, 'dashboard_result_id': 18239702, '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_P29285345_11-12-2025_05_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29285732, 'dashboard_result_id': 18239703, '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_P29285732_11-12-2025_05_37_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29286087, 'dashboard_result_id': 18239704, '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_P29286087_11-12-2025_05_38_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29286524, 'dashboard_result_id': 18239705, '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_P29286524_11-12-2025_05_38_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29287284, 'dashboard_result_id': 18239706, '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_P29287284_11-12-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29287755, 'dashboard_result_id': 18239707, '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_P29287755_11-12-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29288227, 'dashboard_result_id': 18239708, '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_P29288227_11-12-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29288571, 'dashboard_result_id': 18239709, '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_P29288571_11-12-2025_05_40_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29289197, 'dashboard_result_id': 18239710, '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_P29289197_11-12-2025_05_40_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29289576, 'dashboard_result_id': 18239711, '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_P29289576_11-12-2025_05_41_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29290079, 'dashboard_result_id': 18239712, '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_P29290079_11-12-2025_05_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29290505, 'dashboard_result_id': 18239713, '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_P29290505_11-12-2025_05_42_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29291103, 'dashboard_result_id': 18239714, '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_P29291103_11-12-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29291599, 'dashboard_result_id': 18239715, '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_P29291599_11-12-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29292310, 'dashboard_result_id': 18239716, '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_P29292310_11-12-2025_05_43_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29293514, 'dashboard_result_id': 18239717, '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_P29293514_11-12-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29293951, 'dashboard_result_id': 18239718, '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_P29293951_11-12-2025_05_45_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29294363, 'dashboard_result_id': 18239719, '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_P29294363_11-12-2025_05_45_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29294947, 'dashboard_result_id': 18239720, '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_P29294947_11-12-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29295473, 'dashboard_result_id': 18239721, '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_P29295473_11-12-2025_05_45_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29296609, 'dashboard_result_id': 18239722, '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_P29296609_11-12-2025_05_46_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29296820, 'dashboard_result_id': 18239723, '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_P29296820_10-12-2025_11_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29300657, 'dashboard_result_id': 18239724, '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_P29300657_10-12-2025_13_47_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29300882, 'dashboard_result_id': 18239725, '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_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29301495, 'dashboard_result_id': 18239726, '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_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29302203, 'dashboard_result_id': 18239727, '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_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29302853, 'dashboard_result_id': 18239728, '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_P29302853_10-12-2025_14_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29303716, 'dashboard_result_id': 18239729, '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_P29303716_10-12-2025_15_03_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29303733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29303734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29303735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29303736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29303737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29303738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29303739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29303740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29303741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29303742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29303743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29303744, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29304267, 'dashboard_result_id': 18239730, '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_P29304267_10-12-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304282, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29304901, 'dashboard_result_id': 18239731, '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_P29304901_10-12-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304925, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29305325, 'dashboard_result_id': 18239732, '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_P29305325_10-12-2025_15_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305355, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29305808, 'dashboard_result_id': 18239733, '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_P29305808_10-12-2025_16_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305845, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29306527, 'dashboard_result_id': 18239734, '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_P29306527_10-12-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306540, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29306771, 'dashboard_result_id': 18239735, '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_P29306771_10-12-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306803, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29307192, 'dashboard_result_id': 18239736, '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_P29307192_10-12-2025_16_47_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307225, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29307609, 'dashboard_result_id': 18239737, '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_P29307609_10-12-2025_17_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307623, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29308116, 'dashboard_result_id': 18239738, '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_P29308116_10-12-2025_17_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29308120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308131, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29308718, 'dashboard_result_id': 18239739, '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_P29308718_10-12-2025_18_06_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29308748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308751, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29309630, 'dashboard_result_id': 18239740, '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_P29309630_10-12-2025_18_18_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29309635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29309636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29309637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29309638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29309639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29309640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29309641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29309642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29309643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29309644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29309645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29309646, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29310054, 'dashboard_result_id': 18239741, '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_P29310054_10-12-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310072, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29310448, 'dashboard_result_id': 18239742, '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_P29310448_10-12-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310478, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29311016, 'dashboard_result_id': 18239743, '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_P29311016_10-12-2025_19_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311035, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29311412, 'dashboard_result_id': 18239744, '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_P29311412_10-12-2025_19_17_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311467, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29312037, 'dashboard_result_id': 18239745, '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_P29312037_10-12-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312075, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29312562, 'dashboard_result_id': 18239746, '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_P29312562_10-12-2025_19_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312616, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29313105, 'dashboard_result_id': 18239747, '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_P29313105_10-12-2025_21_59_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29313137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29313138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29313139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29313140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29313141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29313142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29313143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29313144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29313145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29313146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29313147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29313148, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29314367, 'dashboard_result_id': 18239748, '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_P29314367_10-12-2025_21_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314373, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314379, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29314603, 'dashboard_result_id': 18239749, '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_P29314603_10-12-2025_21_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29314636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314647, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29314935, 'dashboard_result_id': 18239750, '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_P29314935_10-12-2025_21_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29314950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314962, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29315439, 'dashboard_result_id': 18239751, '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_P29315439_10-12-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315458, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29315910, 'dashboard_result_id': 18239752, '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_P29315910_10-12-2025_22_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315939, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29316642, 'dashboard_result_id': 18239753, '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_P29316642_10-12-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29316650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29316651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29316652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29316653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29316654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29316655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29316656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29316657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29316658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29316659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29316660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29316661, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29317323, 'dashboard_result_id': 18239754, '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_P29317323_10-12-2025_22_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317367, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29317826, 'dashboard_result_id': 18239755, '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_P29317826_10-12-2025_23_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317845, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29318702, 'dashboard_result_id': 18239756, '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_P29318702_10-12-2025_23_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29318723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29318724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29318725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29318726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29318727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29318728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29318729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29318730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29318731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29318732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29318733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29318734, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29319603, 'dashboard_result_id': 18239757, '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_P29319603_10-12-2025_23_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29319647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29319648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29319649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29319650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29319651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29319652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29319653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29319654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29319655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29319656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29319657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29319658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29320173, 'dashboard_result_id': 18239758, '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_P29320173_10-12-2025_23_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29320216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29320217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29320218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29320219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29320220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29320221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29320222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29320223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29320224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29320225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29320226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29320227, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2727313, 'mtr_portfolio_id': 29321029, 'dashboard_result_id': 18239759, '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_P29321029_11-12-2025_01_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321044, '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 = 29283133 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': 4206865, 'mtr_portfolio_id': 29283133, 'created_at': datetime.datetime(2025, 12, 11, 5, 34, 33), 'result': '0.010678362266960811', 'result_long': None, 'result_double': None}] Qualite : 0.010678362266960811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_11-12-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283133 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_P29283133_11-12-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}" where mtr_portfolio_id = 29283133 and dashboard_run_id = 2727313 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`=29283133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239695, 0.010678362266960811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_11-12-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, '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 = 29283507 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': 4206866, 'mtr_portfolio_id': 29283507, 'created_at': datetime.datetime(2025, 12, 11, 5, 34, 29), 'result': '0.060292920952775546', 'result_long': None, 'result_double': None}] Qualite : 0.060292920952775546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_11-12-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283507 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_P29283507_11-12-2025_05_34_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}" where mtr_portfolio_id = 29283507 and dashboard_run_id = 2727313 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`=29283507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239696, 0.060292920952775546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_11-12-2025_05_34_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, '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 = 29283563 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': 4206867, 'mtr_portfolio_id': 29283563, 'created_at': datetime.datetime(2025, 12, 11, 5, 35, 30), 'result': '0.05437533202236932', 'result_long': None, 'result_double': None}] Qualite : 0.05437533202236932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_11-12-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283563 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_P29283563_11-12-2025_05_35_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}" where mtr_portfolio_id = 29283563 and dashboard_run_id = 2727313 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`=29283563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239697, 0.05437533202236932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_11-12-2025_05_35_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, '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 = 29283646 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': 4206868, 'mtr_portfolio_id': 29283646, 'created_at': datetime.datetime(2025, 12, 11, 5, 35, 30), 'result': '0.035229902913867295', 'result_long': None, 'result_double': None}] Qualite : 0.035229902913867295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_11-12-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283646 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_P29283646_11-12-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}" where mtr_portfolio_id = 29283646 and dashboard_run_id = 2727313 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`=29283646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239698, 0.035229902913867295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_11-12-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, '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 = 29284551 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': 4206869, 'mtr_portfolio_id': 29284551, 'created_at': datetime.datetime(2025, 12, 11, 5, 35, 59), 'result': '0.12040949980131724', 'result_long': None, 'result_double': None}] Qualite : 0.12040949980131724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_11-12-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284551 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_P29284551_11-12-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}" where mtr_portfolio_id = 29284551 and dashboard_run_id = 2727313 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`=29284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239699, 0.12040949980131724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_11-12-2025_05_35_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, '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 = 29284712 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': 4206870, 'mtr_portfolio_id': 29284712, 'created_at': datetime.datetime(2025, 12, 11, 5, 36, 11), 'result': '0.08618908751612969', 'result_long': None, 'result_double': None}] Qualite : 0.08618908751612969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_11-12-2025_05_36_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284712 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_P29284712_11-12-2025_05_36_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}" where mtr_portfolio_id = 29284712 and dashboard_run_id = 2727313 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`=29284712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239700, 0.08618908751612969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_11-12-2025_05_36_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, '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 = 29285136 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': 4206871, 'mtr_portfolio_id': 29285136, 'created_at': datetime.datetime(2025, 12, 11, 5, 36, 29), 'result': '0.061449803204952656', 'result_long': None, 'result_double': None}] Qualite : 0.061449803204952656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_11-12-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285136 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_P29285136_11-12-2025_05_36_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}" where mtr_portfolio_id = 29285136 and dashboard_run_id = 2727313 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`=29285136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239701, 0.061449803204952656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_11-12-2025_05_36_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, '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 = 29285345 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': 4206872, 'mtr_portfolio_id': 29285345, 'created_at': datetime.datetime(2025, 12, 11, 5, 37, 2), 'result': '0.0449976319961059', 'result_long': None, 'result_double': None}] Qualite : 0.0449976319961059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_11-12-2025_05_37_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285345 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_P29285345_11-12-2025_05_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}" where mtr_portfolio_id = 29285345 and dashboard_run_id = 2727313 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`=29285345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239702, 0.0449976319961059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_11-12-2025_05_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, '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 = 29285732 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': 4206873, 'mtr_portfolio_id': 29285732, 'created_at': datetime.datetime(2025, 12, 11, 5, 37, 29), 'result': '0.0581994653361423', 'result_long': None, 'result_double': None}] Qualite : 0.0581994653361423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_11-12-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285732 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_P29285732_11-12-2025_05_37_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}" where mtr_portfolio_id = 29285732 and dashboard_run_id = 2727313 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`=29285732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239703, 0.0581994653361423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_11-12-2025_05_37_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, '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 = 29286087 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': 4206874, 'mtr_portfolio_id': 29286087, 'created_at': datetime.datetime(2025, 12, 11, 5, 38), 'result': '0.05536420060936243', 'result_long': None, 'result_double': None}] Qualite : 0.05536420060936243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_11-12-2025_05_38_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286087 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_P29286087_11-12-2025_05_38_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}" where mtr_portfolio_id = 29286087 and dashboard_run_id = 2727313 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`=29286087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239704, 0.05536420060936243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_11-12-2025_05_38_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, '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 = 29286524 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': 4206875, 'mtr_portfolio_id': 29286524, 'created_at': datetime.datetime(2025, 12, 11, 5, 38, 30), 'result': '0.04175723165458732', 'result_long': None, 'result_double': None}] Qualite : 0.04175723165458732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_11-12-2025_05_38_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286524 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_P29286524_11-12-2025_05_38_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}" where mtr_portfolio_id = 29286524 and dashboard_run_id = 2727313 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`=29286524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239705, 0.04175723165458732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_11-12-2025_05_38_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 = 29287284 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': 4206876, 'mtr_portfolio_id': 29287284, 'created_at': datetime.datetime(2025, 12, 11, 5, 38, 59), 'result': '0.05042045029703177', 'result_long': None, 'result_double': None}] Qualite : 0.05042045029703177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_11-12-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287284 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_P29287284_11-12-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}" where mtr_portfolio_id = 29287284 and dashboard_run_id = 2727313 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`=29287284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239706, 0.05042045029703177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_11-12-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, '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 = 29287755 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': 4206877, 'mtr_portfolio_id': 29287755, 'created_at': datetime.datetime(2025, 12, 11, 5, 39, 30), 'result': '0.05141279849019264', 'result_long': None, 'result_double': None}] Qualite : 0.05141279849019264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_11-12-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287755 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_P29287755_11-12-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}" where mtr_portfolio_id = 29287755 and dashboard_run_id = 2727313 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`=29287755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239707, 0.05141279849019264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_11-12-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, '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 = 29288227 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': 4206878, 'mtr_portfolio_id': 29288227, 'created_at': datetime.datetime(2025, 12, 11, 5, 39, 58), 'result': '0.056695112249670436', 'result_long': None, 'result_double': None}] Qualite : 0.056695112249670436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_11-12-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288227 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_P29288227_11-12-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}" where mtr_portfolio_id = 29288227 and dashboard_run_id = 2727313 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`=29288227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239708, 0.056695112249670436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_11-12-2025_05_40_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, '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 = 29288571 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': 4206879, 'mtr_portfolio_id': 29288571, 'created_at': datetime.datetime(2025, 12, 11, 5, 40, 30), 'result': '0.05083138981924052', 'result_long': None, 'result_double': None}] Qualite : 0.05083138981924052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_11-12-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288571 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_P29288571_11-12-2025_05_40_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}" where mtr_portfolio_id = 29288571 and dashboard_run_id = 2727313 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`=29288571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239709, 0.05083138981924052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_11-12-2025_05_40_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, '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 = 29289197 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': 4206880, 'mtr_portfolio_id': 29289197, 'created_at': datetime.datetime(2025, 12, 11, 5, 40, 38), 'result': '0.04466146226119416', 'result_long': None, 'result_double': None}] Qualite : 0.04466146226119416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_11-12-2025_05_40_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289197 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_P29289197_11-12-2025_05_40_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}" where mtr_portfolio_id = 29289197 and dashboard_run_id = 2727313 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`=29289197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239710, 0.04466146226119416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_11-12-2025_05_40_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, '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 = 29289576 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': 4206881, 'mtr_portfolio_id': 29289576, 'created_at': datetime.datetime(2025, 12, 11, 5, 41, 9), 'result': '0.046197057238844284', 'result_long': None, 'result_double': None}] Qualite : 0.046197057238844284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_11-12-2025_05_41_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289576 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_P29289576_11-12-2025_05_41_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}" where mtr_portfolio_id = 29289576 and dashboard_run_id = 2727313 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`=29289576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239711, 0.046197057238844284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_11-12-2025_05_41_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, '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 = 29290079 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': 4206882, 'mtr_portfolio_id': 29290079, 'created_at': datetime.datetime(2025, 12, 11, 5, 41, 31), 'result': '0.04798452559407197', 'result_long': None, 'result_double': None}] Qualite : 0.04798452559407197 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29290079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_11-12-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29290079 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_P29290079_11-12-2025_05_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}" where mtr_portfolio_id = 29290079 and dashboard_run_id = 2727313 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`=29290079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239712, 0.04798452559407197, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_11-12-2025_05_41_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, '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 = 29290505 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': 4206883, 'mtr_portfolio_id': 29290505, 'created_at': datetime.datetime(2025, 12, 11, 5, 42), 'result': '0.04230324050430956', 'result_long': None, 'result_double': None}] Qualite : 0.04230324050430956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29290505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290505_11-12-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29290505 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_P29290505_11-12-2025_05_42_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, 'pht': 3726}}" where mtr_portfolio_id = 29290505 and dashboard_run_id = 2727313 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`=29290505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239713, 0.04230324050430956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290505_11-12-2025_05_42_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, '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 = 29291103 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': 4206884, 'mtr_portfolio_id': 29291103, 'created_at': datetime.datetime(2025, 12, 11, 5, 42, 58), 'result': '0.05440147623558705', 'result_long': None, 'result_double': None}] Qualite : 0.05440147623558705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29291103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291103_11-12-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29291103 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_P29291103_11-12-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, 'pht': 3726}}" where mtr_portfolio_id = 29291103 and dashboard_run_id = 2727313 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`=29291103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239714, 0.05440147623558705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291103_11-12-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, '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 = 29291599 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': 4206885, 'mtr_portfolio_id': 29291599, 'created_at': datetime.datetime(2025, 12, 11, 5, 43, 31), 'result': '0.03725016810500176', 'result_long': None, 'result_double': None}] Qualite : 0.03725016810500176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29291599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291599_11-12-2025_05_43_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29291599 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_P29291599_11-12-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, 'pht': 3726}}" where mtr_portfolio_id = 29291599 and dashboard_run_id = 2727313 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`=29291599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239715, 0.03725016810500176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291599_11-12-2025_05_43_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, '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 = 29292310 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': 4206886, 'mtr_portfolio_id': 29292310, 'created_at': datetime.datetime(2025, 12, 11, 5, 43, 29), 'result': '0.05628165022122019', 'result_long': None, 'result_double': None}] Qualite : 0.05628165022122019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29292310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29292310_11-12-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29292310 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_P29292310_11-12-2025_05_43_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, 'pht': 3726}}" where mtr_portfolio_id = 29292310 and dashboard_run_id = 2727313 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`=29292310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239716, 0.05628165022122019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29292310_11-12-2025_05_43_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, '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 = 29293514 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': 4206887, 'mtr_portfolio_id': 29293514, 'created_at': datetime.datetime(2025, 12, 11, 5, 43, 58), 'result': '0.052010083880434994', 'result_long': None, 'result_double': None}] Qualite : 0.052010083880434994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29293514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293514_11-12-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29293514 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_P29293514_11-12-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, 'pht': 3726}}" where mtr_portfolio_id = 29293514 and dashboard_run_id = 2727313 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`=29293514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239717, 0.052010083880434994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293514_11-12-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, '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 = 29293951 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': 4206888, 'mtr_portfolio_id': 29293951, 'created_at': datetime.datetime(2025, 12, 11, 5, 45), 'result': '0.0381375103770749', 'result_long': None, 'result_double': None}] Qualite : 0.0381375103770749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29293951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293951_11-12-2025_05_45_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29293951 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_P29293951_11-12-2025_05_45_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, 'pht': 3726}}" where mtr_portfolio_id = 29293951 and dashboard_run_id = 2727313 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`=29293951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239718, 0.0381375103770749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293951_11-12-2025_05_45_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, '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 = 29294363 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': 4206889, 'mtr_portfolio_id': 29294363, 'created_at': datetime.datetime(2025, 12, 11, 5, 45, 30), 'result': '0.044399530690132485', 'result_long': None, 'result_double': None}] Qualite : 0.044399530690132485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29294363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294363_11-12-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29294363 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_P29294363_11-12-2025_05_45_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, 'pht': 3726}}" where mtr_portfolio_id = 29294363 and dashboard_run_id = 2727313 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`=29294363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239719, 0.044399530690132485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294363_11-12-2025_05_45_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, '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 = 29294947 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': 4206890, 'mtr_portfolio_id': 29294947, 'created_at': datetime.datetime(2025, 12, 11, 5, 45, 30), 'result': '0.07246011444241271', 'result_long': None, 'result_double': None}] Qualite : 0.07246011444241271 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29294947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294947_11-12-2025_05_45_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29294947 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_P29294947_11-12-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, 'pht': 3726}}" where mtr_portfolio_id = 29294947 and dashboard_run_id = 2727313 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`=29294947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239720, 0.07246011444241271, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294947_11-12-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, '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 = 29295473 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': 4206891, 'mtr_portfolio_id': 29295473, 'created_at': datetime.datetime(2025, 12, 11, 5, 45, 37), 'result': '0.052688012738026715', 'result_long': None, 'result_double': None}] Qualite : 0.052688012738026715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29295473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29295473_11-12-2025_05_45_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29295473 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_P29295473_11-12-2025_05_45_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, 'pht': 3726}}" where mtr_portfolio_id = 29295473 and dashboard_run_id = 2727313 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`=29295473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239721, 0.052688012738026715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29295473_11-12-2025_05_45_41.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, '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 = 29296609 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': 4206892, 'mtr_portfolio_id': 29296609, 'created_at': datetime.datetime(2025, 12, 11, 5, 45, 58), 'result': '0.047668778216017914', 'result_long': None, 'result_double': None}] Qualite : 0.047668778216017914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29296609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296609_11-12-2025_05_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29296609 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_P29296609_11-12-2025_05_46_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, 'pht': 3726}}" where mtr_portfolio_id = 29296609 and dashboard_run_id = 2727313 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`=29296609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239722, 0.047668778216017914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296609_11-12-2025_05_46_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, '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 = 29296820 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': 4206893, 'mtr_portfolio_id': 29296820, 'created_at': datetime.datetime(2025, 12, 11, 5, 46, 8), 'result': '0.05745926940601169', 'result_long': None, 'result_double': None}] Qualite : 0.05745926940601169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29296820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296820_11-12-2025_05_46_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29296820 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_P29296820_11-12-2025_05_46_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, 'pht': 3726}}" where mtr_portfolio_id = 29296820 and dashboard_run_id = 2727313 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`=29296820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239723, 0.05745926940601169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296820_11-12-2025_05_46_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, '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 = 29300657 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': 4206894, 'mtr_portfolio_id': 29300657, 'created_at': datetime.datetime(2025, 12, 11, 5, 46, 30), 'result': '0.07534645631729242', 'result_long': None, 'result_double': None}] Qualite : 0.07534645631729242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29300657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_11-12-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29300657 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_P29300657_11-12-2025_05_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, 'pht': 3726}}" where mtr_portfolio_id = 29300657 and dashboard_run_id = 2727313 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`=29300657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239724, 0.07534645631729242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_11-12-2025_05_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, '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 = 29300882 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': 4203503, 'mtr_portfolio_id': 29300882, 'created_at': datetime.datetime(2025, 12, 10, 14, 5, 3), 'result': '0.0446958989221055', 'result_long': None, 'result_double': None}] Qualite : 0.0446958989221055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29300882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300882_10-12-2025_14_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29300882 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_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, 'pht': 3726}}" where mtr_portfolio_id = 29300882 and dashboard_run_id = 2727313 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`=29300882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239725, 0.0446958989221055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, '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 = 29301495 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': 4203545, 'mtr_portfolio_id': 29301495, 'created_at': datetime.datetime(2025, 12, 10, 14, 17, 2), 'result': '0.07891776061796905', 'result_long': None, 'result_double': None}] Qualite : 0.07891776061796905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29301495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29301495_10-12-2025_14_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29301495 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_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, 'pht': 3726}}" where mtr_portfolio_id = 29301495 and dashboard_run_id = 2727313 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`=29301495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239726, 0.07891776061796905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, '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 = 29302203 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': 4203579, 'mtr_portfolio_id': 29302203, 'created_at': datetime.datetime(2025, 12, 10, 14, 33), 'result': '0.034278343314894745', 'result_long': None, 'result_double': None}] Qualite : 0.034278343314894745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29302203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302203_10-12-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29302203 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_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, 'pht': 3726}}" where mtr_portfolio_id = 29302203 and dashboard_run_id = 2727313 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`=29302203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239727, 0.034278343314894745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, '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 = 29302853 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': 4203623, 'mtr_portfolio_id': 29302853, 'created_at': datetime.datetime(2025, 12, 10, 14, 49, 29), 'result': '0.05451464648080722', 'result_long': None, 'result_double': None}] Qualite : 0.05451464648080722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29302853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29302853 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_P29302853_10-12-2025_14_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, 'pht': 3726}}" where mtr_portfolio_id = 29302853 and dashboard_run_id = 2727313 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`=29302853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239728, 0.05451464648080722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, '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 = 29303716 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': 4203701, 'mtr_portfolio_id': 29303716, 'created_at': datetime.datetime(2025, 12, 10, 15, 3, 3), 'result': '0.05066040285635225', 'result_long': None, 'result_double': None}] Qualite : 0.05066040285635225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29303716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29303716_10-12-2025_15_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29303716 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_P29303716_10-12-2025_15_03_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29303733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29303734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29303735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29303736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29303737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29303738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29303739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29303740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29303741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29303742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29303743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29303744, 'pht': 3726}}" where mtr_portfolio_id = 29303716 and dashboard_run_id = 2727313 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`=29303716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239729, 0.05066040285635225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29303716_10-12-2025_15_03_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29303733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29303734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29303735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29303736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29303737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29303738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29303739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29303740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29303741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29303742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29303743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29303744, '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 = 29304267 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': 4203787, 'mtr_portfolio_id': 29304267, 'created_at': datetime.datetime(2025, 12, 10, 15, 19, 2), 'result': '0.04523200703466679', 'result_long': None, 'result_double': None}] Qualite : 0.04523200703466679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29304267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29304267_10-12-2025_15_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29304267 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_P29304267_10-12-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304282, 'pht': 3726}}" where mtr_portfolio_id = 29304267 and dashboard_run_id = 2727313 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`=29304267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239730, 0.04523200703466679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29304267_10-12-2025_15_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304282, '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 = 29304901 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': 4203849, 'mtr_portfolio_id': 29304901, 'created_at': datetime.datetime(2025, 12, 10, 15, 33), 'result': '0.05675178611027262', 'result_long': None, 'result_double': None}] Qualite : 0.05675178611027262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29304901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29304901_10-12-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29304901 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_P29304901_10-12-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304925, 'pht': 3726}}" where mtr_portfolio_id = 29304901 and dashboard_run_id = 2727313 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`=29304901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239731, 0.05675178611027262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29304901_10-12-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29304914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29304915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29304916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29304917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29304918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29304919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29304920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29304921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29304922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29304923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29304924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29304925, '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 = 29305325 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': 4203890, 'mtr_portfolio_id': 29305325, 'created_at': datetime.datetime(2025, 12, 10, 15, 46, 57), 'result': '0.058370216623646214', 'result_long': None, 'result_double': None}] Qualite : 0.058370216623646214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29305325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29305325_10-12-2025_15_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29305325 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_P29305325_10-12-2025_15_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305355, 'pht': 3726}}" where mtr_portfolio_id = 29305325 and dashboard_run_id = 2727313 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`=29305325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239732, 0.058370216623646214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29305325_10-12-2025_15_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305355, '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 = 29305808 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': 4203967, 'mtr_portfolio_id': 29305808, 'created_at': datetime.datetime(2025, 12, 10, 16, 2, 59), 'result': '0.05555409320974944', 'result_long': None, 'result_double': None}] Qualite : 0.05555409320974944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29305808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29305808_10-12-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29305808 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_P29305808_10-12-2025_16_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305845, 'pht': 3726}}" where mtr_portfolio_id = 29305808 and dashboard_run_id = 2727313 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`=29305808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239733, 0.05555409320974944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29305808_10-12-2025_16_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29305834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29305835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29305836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29305837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29305838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29305839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29305840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29305841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29305842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29305843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29305844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29305845, '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 = 29306527 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': 4204074, 'mtr_portfolio_id': 29306527, 'created_at': datetime.datetime(2025, 12, 10, 16, 18, 58), 'result': '0.053405093167948656', 'result_long': None, 'result_double': None}] Qualite : 0.053405093167948656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29306527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29306527_10-12-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29306527 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_P29306527_10-12-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306540, 'pht': 3726}}" where mtr_portfolio_id = 29306527 and dashboard_run_id = 2727313 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`=29306527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239734, 0.053405093167948656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29306527_10-12-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306540, '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 = 29306771 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': 4204097, 'mtr_portfolio_id': 29306771, 'created_at': datetime.datetime(2025, 12, 10, 16, 32, 59), 'result': '0.04990500369250724', 'result_long': None, 'result_double': None}] Qualite : 0.04990500369250724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29306771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29306771_10-12-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29306771 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_P29306771_10-12-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306803, 'pht': 3726}}" where mtr_portfolio_id = 29306771 and dashboard_run_id = 2727313 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`=29306771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239735, 0.04990500369250724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29306771_10-12-2025_16_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29306792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29306793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29306794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29306795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29306796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29306797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29306798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29306799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29306800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29306801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29306802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29306803, '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 = 29307192 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': 4204159, 'mtr_portfolio_id': 29307192, 'created_at': datetime.datetime(2025, 12, 10, 16, 47, 27), 'result': '0.03669499483574216', 'result_long': None, 'result_double': None}] Qualite : 0.03669499483574216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29307192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29307192_10-12-2025_16_47_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29307192 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_P29307192_10-12-2025_16_47_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307225, 'pht': 3726}}" where mtr_portfolio_id = 29307192 and dashboard_run_id = 2727313 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`=29307192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239736, 0.03669499483574216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29307192_10-12-2025_16_47_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307225, '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 = 29307609 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': 4204216, 'mtr_portfolio_id': 29307609, 'created_at': datetime.datetime(2025, 12, 10, 17, 3, 27), 'result': '0.06107630180157212', 'result_long': None, 'result_double': None}] Qualite : 0.06107630180157212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29307609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29307609_10-12-2025_17_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29307609 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_P29307609_10-12-2025_17_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307623, 'pht': 3726}}" where mtr_portfolio_id = 29307609 and dashboard_run_id = 2727313 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`=29307609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239737, 0.06107630180157212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29307609_10-12-2025_17_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29307612, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29307613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29307614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29307615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29307616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29307617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29307618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29307619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29307620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29307621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29307622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29307623, '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 = 29308116 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': 4204295, 'mtr_portfolio_id': 29308116, 'created_at': datetime.datetime(2025, 12, 10, 17, 19), 'result': '0.06264093654820269', 'result_long': None, 'result_double': None}] Qualite : 0.06264093654820269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29308116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29308116_10-12-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29308116 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_P29308116_10-12-2025_17_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29308120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308131, 'pht': 3726}}" where mtr_portfolio_id = 29308116 and dashboard_run_id = 2727313 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`=29308116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239738, 0.06264093654820269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29308116_10-12-2025_17_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29308120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308131, '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 = 29308718 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': 4204361, 'mtr_portfolio_id': 29308718, 'created_at': datetime.datetime(2025, 12, 10, 18, 6, 31), 'result': '0.03266443465875013', 'result_long': None, 'result_double': None}] Qualite : 0.03266443465875013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29308718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29308718_10-12-2025_18_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29308718 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_P29308718_10-12-2025_18_06_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29308748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308751, 'pht': 3726}}" where mtr_portfolio_id = 29308718 and dashboard_run_id = 2727313 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`=29308718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239739, 0.03266443465875013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29308718_10-12-2025_18_06_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29308740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29308741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29308742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29308743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29308744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29308745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29308746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29308747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29308748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29308749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29308750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29308751, '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 = 29309630 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': 4204513, 'mtr_portfolio_id': 29309630, 'created_at': datetime.datetime(2025, 12, 10, 18, 18, 56), 'result': '0.06035692064777377', 'result_long': None, 'result_double': None}] Qualite : 0.06035692064777377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29309630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29309630_10-12-2025_18_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29309630 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_P29309630_10-12-2025_18_18_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29309635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29309636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29309637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29309638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29309639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29309640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29309641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29309642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29309643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29309644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29309645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29309646, 'pht': 3726}}" where mtr_portfolio_id = 29309630 and dashboard_run_id = 2727313 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`=29309630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239740, 0.06035692064777377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29309630_10-12-2025_18_18_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29309635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29309636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29309637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29309638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29309639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29309640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29309641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29309642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29309643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29309644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29309645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29309646, '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 = 29310054 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': 4204564, 'mtr_portfolio_id': 29310054, 'created_at': datetime.datetime(2025, 12, 10, 18, 32, 59), 'result': '0.05814769065524514', 'result_long': None, 'result_double': None}] Qualite : 0.05814769065524514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29310054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29310054_10-12-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29310054 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_P29310054_10-12-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310072, 'pht': 3726}}" where mtr_portfolio_id = 29310054 and dashboard_run_id = 2727313 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`=29310054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239741, 0.05814769065524514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29310054_10-12-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310072, '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 = 29310448 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': 4204636, 'mtr_portfolio_id': 29310448, 'created_at': datetime.datetime(2025, 12, 10, 18, 48, 59), 'result': '0.047890538584176155', 'result_long': None, 'result_double': None}] Qualite : 0.047890538584176155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29310448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29310448_10-12-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29310448 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_P29310448_10-12-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310478, 'pht': 3726}}" where mtr_portfolio_id = 29310448 and dashboard_run_id = 2727313 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`=29310448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239742, 0.047890538584176155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29310448_10-12-2025_18_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29310466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29310467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29310468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29310469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29310470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29310471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29310472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29310474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29310475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29310476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29310477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29310478, '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 = 29311016 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': 4204724, 'mtr_portfolio_id': 29311016, 'created_at': datetime.datetime(2025, 12, 10, 19, 3), 'result': '0.04276461175852787', 'result_long': None, 'result_double': None}] Qualite : 0.04276461175852787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29311016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29311016_10-12-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29311016 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_P29311016_10-12-2025_19_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311035, 'pht': 3726}}" where mtr_portfolio_id = 29311016 and dashboard_run_id = 2727313 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`=29311016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239743, 0.04276461175852787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29311016_10-12-2025_19_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311035, '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 = 29311412 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': 4204796, 'mtr_portfolio_id': 29311412, 'created_at': datetime.datetime(2025, 12, 10, 19, 17, 2), 'result': '0.03353093849890416', 'result_long': None, 'result_double': None}] Qualite : 0.03353093849890416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29311412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29311412_10-12-2025_19_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29311412 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_P29311412_10-12-2025_19_17_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311467, 'pht': 3726}}" where mtr_portfolio_id = 29311412 and dashboard_run_id = 2727313 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`=29311412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239744, 0.03353093849890416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29311412_10-12-2025_19_17_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29311454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29311455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29311456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29311457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29311458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29311459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29311461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29311462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29311463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29311465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29311466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29311467, '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 = 29312037 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': 4204881, 'mtr_portfolio_id': 29312037, 'created_at': datetime.datetime(2025, 12, 10, 19, 32, 58), 'result': '0.057959753365267166', 'result_long': None, 'result_double': None}] Qualite : 0.057959753365267166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29312037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29312037_10-12-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29312037 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_P29312037_10-12-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312075, 'pht': 3726}}" where mtr_portfolio_id = 29312037 and dashboard_run_id = 2727313 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`=29312037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239745, 0.057959753365267166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29312037_10-12-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312075, '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 = 29312562 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': 4204961, 'mtr_portfolio_id': 29312562, 'created_at': datetime.datetime(2025, 12, 10, 19, 48, 59), 'result': '0.052988327126028294', 'result_long': None, 'result_double': None}] Qualite : 0.052988327126028294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29312562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29312562_10-12-2025_19_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29312562 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_P29312562_10-12-2025_19_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312616, 'pht': 3726}}" where mtr_portfolio_id = 29312562 and dashboard_run_id = 2727313 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`=29312562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239746, 0.052988327126028294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29312562_10-12-2025_19_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29312604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29312605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29312606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29312607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29312608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29312609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29312610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29312611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29312612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29312613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29312615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29312616, '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 = 29313105 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': 4205033, 'mtr_portfolio_id': 29313105, 'created_at': datetime.datetime(2025, 12, 10, 21, 59, 59), 'result': '0.05160867905051122', 'result_long': None, 'result_double': None}] Qualite : 0.05160867905051122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29313105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29313105_10-12-2025_21_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29313105 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_P29313105_10-12-2025_21_59_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29313137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29313138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29313139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29313140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29313141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29313142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29313143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29313144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29313145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29313146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29313147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29313148, 'pht': 3726}}" where mtr_portfolio_id = 29313105 and dashboard_run_id = 2727313 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`=29313105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239747, 0.05160867905051122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29313105_10-12-2025_21_59_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29313137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29313138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29313139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29313140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29313141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29313142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29313143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29313144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29313145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29313146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29313147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29313148, '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 = 29314367 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': 4205263, 'mtr_portfolio_id': 29314367, 'created_at': datetime.datetime(2025, 12, 10, 21, 19), 'result': '0.09409773107982301', 'result_long': None, 'result_double': None}] Qualite : 0.09409773107982301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29314367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314367_10-12-2025_21_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29314367 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_P29314367_10-12-2025_21_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314373, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314379, 'pht': 3726}}" where mtr_portfolio_id = 29314367 and dashboard_run_id = 2727313 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`=29314367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239748, 0.09409773107982301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314367_10-12-2025_21_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314373, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314379, '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 = 29314603 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': 4205295, 'mtr_portfolio_id': 29314603, 'created_at': datetime.datetime(2025, 12, 10, 21, 33, 2), 'result': '0.031358867319201095', 'result_long': None, 'result_double': None}] Qualite : 0.031358867319201095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29314603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314603_10-12-2025_21_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29314603 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_P29314603_10-12-2025_21_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29314636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314647, 'pht': 3726}}" where mtr_portfolio_id = 29314603 and dashboard_run_id = 2727313 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`=29314603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239749, 0.031358867319201095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314603_10-12-2025_21_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29314636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29314638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314647, '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 = 29314935 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': 4205353, 'mtr_portfolio_id': 29314935, 'created_at': datetime.datetime(2025, 12, 10, 21, 48, 58), 'result': '0.04515300373164876', 'result_long': None, 'result_double': None}] Qualite : 0.04515300373164876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29314935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314935_10-12-2025_21_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29314935 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_P29314935_10-12-2025_21_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29314950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314962, 'pht': 3726}}" where mtr_portfolio_id = 29314935 and dashboard_run_id = 2727313 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`=29314935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239750, 0.04515300373164876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29314935_10-12-2025_21_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29314950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29314951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29314952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29314954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29314955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29314956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29314957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29314958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29314959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29314960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29314961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29314962, '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 = 29315439 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': 4205422, 'mtr_portfolio_id': 29315439, 'created_at': datetime.datetime(2025, 12, 10, 22, 3, 1), 'result': '0.03740188839462455', 'result_long': None, 'result_double': None}] Qualite : 0.03740188839462455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29315439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29315439_10-12-2025_22_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29315439 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_P29315439_10-12-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315458, 'pht': 3726}}" where mtr_portfolio_id = 29315439 and dashboard_run_id = 2727313 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`=29315439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239751, 0.03740188839462455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29315439_10-12-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315458, '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 = 29315910 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': 4205570, 'mtr_portfolio_id': 29315910, 'created_at': datetime.datetime(2025, 12, 10, 22, 20, 59), 'result': '0.04897840106263727', 'result_long': None, 'result_double': None}] Qualite : 0.04897840106263727 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29315910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29315910_10-12-2025_22_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29315910 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_P29315910_10-12-2025_22_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315939, 'pht': 3726}}" where mtr_portfolio_id = 29315910 and dashboard_run_id = 2727313 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`=29315910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239752, 0.04897840106263727, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29315910_10-12-2025_22_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29315928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29315929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29315930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29315931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29315932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29315933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29315934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29315935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29315936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29315937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29315938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29315939, '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 = 29316642 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': 4205637, 'mtr_portfolio_id': 29316642, 'created_at': datetime.datetime(2025, 12, 10, 22, 32, 58), 'result': '0.0507857537619456', 'result_long': None, 'result_double': None}] Qualite : 0.0507857537619456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29316642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29316642_10-12-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29316642 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_P29316642_10-12-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29316650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29316651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29316652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29316653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29316654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29316655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29316656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29316657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29316658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29316659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29316660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29316661, 'pht': 3726}}" where mtr_portfolio_id = 29316642 and dashboard_run_id = 2727313 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`=29316642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239753, 0.0507857537619456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29316642_10-12-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29316650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29316651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29316652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29316653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29316654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29316655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29316656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29316657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29316658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29316659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29316660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29316661, '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 = 29317323 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': 4205706, 'mtr_portfolio_id': 29317323, 'created_at': datetime.datetime(2025, 12, 10, 22, 47), 'result': '0.05094991899079864', 'result_long': None, 'result_double': None}] Qualite : 0.05094991899079864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29317323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29317323_10-12-2025_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29317323 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_P29317323_10-12-2025_22_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317367, 'pht': 3726}}" where mtr_portfolio_id = 29317323 and dashboard_run_id = 2727313 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`=29317323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239754, 0.05094991899079864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29317323_10-12-2025_22_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317367, '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 = 29317826 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': 4205753, 'mtr_portfolio_id': 29317826, 'created_at': datetime.datetime(2025, 12, 10, 23, 2, 58), 'result': '0.04683164081087075', 'result_long': None, 'result_double': None}] Qualite : 0.04683164081087075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29317826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29317826_10-12-2025_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29317826 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_P29317826_10-12-2025_23_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317845, 'pht': 3726}}" where mtr_portfolio_id = 29317826 and dashboard_run_id = 2727313 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`=29317826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239755, 0.04683164081087075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29317826_10-12-2025_23_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29317834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29317835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29317836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29317837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29317838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29317839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29317840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29317841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29317842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29317843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29317844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29317845, '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 = 29318702 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': 4205840, 'mtr_portfolio_id': 29318702, 'created_at': datetime.datetime(2025, 12, 10, 23, 19, 1), 'result': '0.06167643412726557', 'result_long': None, 'result_double': None}] Qualite : 0.06167643412726557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29318702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29318702_10-12-2025_23_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29318702 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_P29318702_10-12-2025_23_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29318723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29318724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29318725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29318726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29318727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29318728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29318729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29318730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29318731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29318732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29318733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29318734, 'pht': 3726}}" where mtr_portfolio_id = 29318702 and dashboard_run_id = 2727313 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`=29318702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239756, 0.06167643412726557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29318702_10-12-2025_23_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29318723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29318724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29318725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29318726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29318727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29318728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29318729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29318730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29318731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29318732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29318733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29318734, '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 = 29319603 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': 4205926, 'mtr_portfolio_id': 29319603, 'created_at': datetime.datetime(2025, 12, 10, 23, 32, 59), 'result': '0.068719400654282', 'result_long': None, 'result_double': None}] Qualite : 0.068719400654282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29319603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29319603_10-12-2025_23_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29319603 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_P29319603_10-12-2025_23_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29319647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29319648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29319649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29319650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29319651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29319652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29319653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29319654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29319655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29319656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29319657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29319658, 'pht': 3726}}" where mtr_portfolio_id = 29319603 and dashboard_run_id = 2727313 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`=29319603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239757, 0.068719400654282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29319603_10-12-2025_23_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29319647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29319648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29319649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29319650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29319651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29319652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29319653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29319654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29319655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29319656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29319657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29319658, '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 = 29320173 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': 4205978, 'mtr_portfolio_id': 29320173, 'created_at': datetime.datetime(2025, 12, 10, 23, 50), 'result': '0.061014489558836', 'result_long': None, 'result_double': None}] Qualite : 0.061014489558836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29320173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29320173_10-12-2025_23_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29320173 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_P29320173_10-12-2025_23_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29320216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29320217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29320218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29320219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29320220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29320221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29320222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29320223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29320224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29320225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29320226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29320227, 'pht': 3726}}" where mtr_portfolio_id = 29320173 and dashboard_run_id = 2727313 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`=29320173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239758, 0.061014489558836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29320173_10-12-2025_23_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29320216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29320217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29320218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29320219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29320220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29320221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29320222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29320223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29320224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29320225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29320226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29320227, '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 = 29321029 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': 4206057, 'mtr_portfolio_id': 29321029, 'created_at': datetime.datetime(2025, 12, 11, 1, 4, 58), 'result': '0.04815241619286184', 'result_long': None, 'result_double': None}] Qualite : 0.04815241619286184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29321029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321029_11-12-2025_01_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29321029 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_P29321029_11-12-2025_01_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321044, 'pht': 3726}}" where mtr_portfolio_id = 29321029 and dashboard_run_id = 2727313 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`=29321029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18239759, 0.04815241619286184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321029_11-12-2025_01_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321044, '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 (29283133,29283507,29283563,29283646,29284551,29284712,29285136,29285345,29285732,29286087,29286524,29287284,29287755,29288227,29288571,29289197,29289576,29290079,29290505,29291103,29291599,29292310,29293514,29293951,29294363,29294947,29295473,29296609,29296820,29300657,29300882,29301495,29302203,29302853,29303716,29304267,29304901,29305325,29305808,29306527,29306771,29307192,29307609,29308116,29308718,29309630,29310054,29310448,29311016,29311412,29312037,29312562,29313105,29314367,29314603,29314935,29315439,29315910,29316642,29317323,29317826,29318702,29319603,29320173,29321029) result : ((1398578619,), (1398579570,), (1398579942,), (1398581226,), (1398582557,), (1398582769,), (1398582809,), (1398583350,), (1398583552,), (1398583569,), (1398583937,), (1398583950,), (1398583982,), (1398584042,), (1398584061,), (1398584083,), (1398584100,), (1398584133,), (1398584198,), (1398584213,), (1398584215,), (1398584250,), (1398584252,), (1398584320,), (1398584358,), (1398584471,), (1398584473,), (1398584490,), (1398584510,), (1398584511,), (1398584526,), (1398584529,), (1398584568,), (1398584607,), (1398588536,), (1398592466,), (1398592469,), (1398592472,), (1398592576,), (1398592580,), (1398592633,), (1398593633,), (1398593977,), (1398594020,), (1398594022,), (1398594036,), (1398594038,), (1398594054,), (1398594097,), (1398594165,), (1398594177,), (1398594213,), (1398594264,), (1398596363,), (1398596383,), (1398596385,), (1398596399,), (1398596402,), (1398596418,), (1398596420,), (1398596474,), (1398596490,), (1398596505,), (1398596528,), (1398596530,), (1398596532,), (1398596547,), (1398596549,), (1398596571,), (1398596574,), (1398596576,), (1398596592,), (1398596594,), (1398596596,), (1398596600,), (1398596604,), (1398596609,), (1398596627,), (1398596629,), (1398596686,), (1398596683,), (1398596684,), (1398596685,), (1398596705,), (1398596707,), (1398596709,), (1398596710,), (1398596713,), (1398596716,), (1398596730,), (1398596732,), (1398596734,), (1398596736,), (1398596751,), (1398596754,), (1398596756,), (1398596758,), (1398596761,), (1398596764,), (1398596774,), (1398596777,), (1398596779,), (1398596782,), (1398596784,), (1398596796,), (1398596799,), (1398596801,), (1398596803,), (1398596805,), (1398596830,), (1398596831,), (1398596833,), (1398596835,), (1398596838,), (1398596841,), (1398596863,), (1398596867,), (1398596871,), (1398596877,), (1398596882,), (1398596884,), (1398596892,), (1398596895,), (1398596922,), (1398596927,), (1398596948,), (1398596951,), (1398596954,), (1398596957,), (1398596959,), (1398596960,), (1398596970,), (1398596972,), (1398596974,), (1398596976,), (1398597026,), (1398597029,), (1398597030,), (1398597031,), (1398597034,), (1398597037,), (1398597048,), (1398597050,), (1398597053,), (1398597056,), (1398597060,), (1398597078,), (1398597080,), (1398597082,), (1398597085,), (1398597088,), (1398597091,), (1398597101,), (1398597103,), (1398597105,), (1398597131,), (1398597132,), (1398597134,), (1398597135,), (1398597138,), (1398597142,), (1398597162,), (1398597149,), (1398597156,), (1398597159,), (1398597215,), (1398597219,), (1398597220,), (1398597221,), (1398597224,), (1398597227,), (1398597238,), (1398597241,), (1398597244,), (1398597247,), (1398597275,), (1398597280,), (1398597282,), (1398597284,), (1398597287,), (1398597289,), (1398597300,), (1398597301,), (1398597302,), (1398597323,), (1398597326,), (1398597329,), (1398597332,), (1398597335,), (1398597337,), (1398597346,), (1398597348,), (1398597351,), (1398597352,), (1398597353,), (1398597355,), (1398597366,), (1398597376,), (1398597386,), (1398597393,), (1398597394,), (1398597395,), (1398597398,), (1398597401,), (1398597404,), (1398597412,), (1398597415,), (1398597418,), (1398597421,), (1398597424,), (1398597446,), (1398597448,), (1398597450,), (1398597452,), (1398597463,), (1398597465,), (1398597467,), (1398597469,), (1398597472,), (1398597491,), (1398597492,), (1398597497,), (1398597501,), (1398597515,), (1398597517,), (1398597519,), (1398597523,), (1398597527,), (1398597530,), (1398597541,), (1398597542,), (1398597543,), (1398597544,), (1398597560,), (1398597563,), (1398597566,), (1398597570,), (1398597582,), (1398597584,), (1398597587,), (1398597589,), (1398597592,), (1398597596,), (1398597637,), (1398597627,), (1398597635,), (1398597636,), (1398597653,), (1398597655,), (1398597657,), (1398597659,), (1398597662,), (1398597665,), (1398597688,), (1398597689,), (1398597691,), (1398597693,), (1398597695,), (1398597707,), (1398597709,), (1398597711,), (1398597713,), (1398597716,), (1398597718,), (1398597755,), (1398597757,), (1398597759,), (1398597777,), (1398597778,), (1398597779,), (1398597780,), (1398597783,), (1398597786,), (1398597811,), (1398597814,), (1398597817,), (1398597820,), (1398597823,), (1398597838,), (1398597839,), (1398597840,), (1398597841,), (1398597844,), (1398597847,), (1398597871,), (1398597874,), (1398597877,), (1398597880,), (1398597883,), (1398597899,), (1398597901,), (1398597904,), (1398597907,), (1398597910,), (1398597912,), (1398597940,), (1398597941,), (1398597943,), (1398597945,), (1398597948,), (1398597966,), (1398597969,), (1398597972,), (1398597974,), (1398597998,), (1398598001,), (1398598004,), (1398598007,), (1398598011,), (1398598014,), (1398598034,), (1398598040,), (1398598076,), (1398598112,), (1398598588,), (1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,), (1398604653,), (1398604672,), (1398604709,), (1398604718,), (1398604721,), (1398604749,), (1398604824,), (1398604826,), (1398604827,), (1398604828,), (1398604846,), (1398604848,), (1398604850,), (1398604854,), (1398604859,), (1398604860,), (1398605037,), (1398605073,), (1398605108,), (1398605145,), (1398605168,), (1398605172,), (1398605274,), (1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,), (1398606424,), (1398606427,), (1398606430,), (1398606433,), (1398606436,), (1398606462,), (1398606468,), (1398606473,), (1398606474,), (1398606477,), (1398606489,), (1398606492,), (1398606495,), (1398606498,), (1398606501,), (1398606503,), (1398606513,), (1398606514,), (1398606515,), (1398606519,), (1398606522,), (1398606527,), (1398606530,), (1398606532,), (1398606533,), (1398606540,), (1398606541,), (1398606543,), (1398606545,), (1398606547,), (1398606549,), (1398606584,), (1398606586,), (1398606588,), (1398606589,), (1398606592,), (1398606613,), (1398606617,), (1398606621,), (1398606625,), (1398606627,), (1398606629,), (1398606648,), (1398606651,), (1398606654,), (1398606656,), (1398606665,), (1398606681,), (1398606684,), (1398606687,), (1398606689,), (1398606693,), (1398606701,), (1398606703,), (1398606705,), (1398606707,), (1398606733,), (1398606737,), (1398606740,), (1398606743,), (1398606746,), (1398606749,), (1398606754,), (1398606756,), (1398606758,), (1398606760,), (1398606762,), (1398606763,), (1398606787,), (1398606797,), (1398606814,), (1398606816,), (1398606986,), (1398606967,), (1398606977,), (1398607002,), (1398607004,), (1398607007,), (1398607009,), (1398607021,), (1398607024,), (1398607027,), (1398607044,), (1398607047,), (1398607048,), (1398607050,), (1398607056,), (1398607071,), (1398607073,), (1398607076,), (1398607126,), (1398607128,), (1398607130,), (1398607148,), (1398607150,), (1398607153,), (1398607186,), (1398607187,), (1398607188,), (1398607189,), (1398607209,), (1398607210,), (1398607211,), (1398607212,), (1398607215,), (1398607218,), (1398607238,), (1398607240,), (1398607243,), (1398607261,), (1398607265,), (1398607269,), (1398607272,), (1398607274,), (1398607276,), (1398607281,), (1398607284,), (1398607286,), (1398607288,), (1398607290,), (1398607304,), (1398607293,), (1398607295,), (1398607299,), (1398607313,), (1398607314,), (1398607315,), (1398607317,), (1398607318,), (1398607344,), (1398607347,), (1398607383,), (1398607387,), (1398607422,), (1398607425,), (1398607472,), (1398607573,), (1398607577,), (1398607580,), (1398607597,), (1398608050,), (1398608084,), (1398608120,), (1398608156,), (1398608195,), (1398608232,), (1398608975,), (1398608977,), (1398608979,), (1398608981,), (1398609024,), (1398609234,), (1398609277,), (1398609316,), (1398609351,), (1398609528,), (1398609531,), (1398609534,), (1398609569,), (1398609603,), (1398609614,), (1398609637,), (1398609640,), (1398609642,), (1398609644,), (1398609666,), (1398609667,), (1398609669,), (1398609671,), (1398609674,), (1398609676,), (1398609703,), (1398609704,), (1398609706,), (1398609708,), (1398609711,), (1398609714,), (1398609724,), (1398609727,), (1398609731,), (1398609734,), (1398609748,), (1398609751,), (1398609754,), (1398609764,), (1398609773,), (1398609777,), (1398609801,), (1398609803,), (1398609805,), (1398609808,), (1398609811,), (1398609813,), (1398609821,), (1398609823,), (1398609825,), (1398609840,), (1398609842,), (1398609844,), (1398609847,), (1398609850,), (1398609851,), (1398609866,), (1398609868,), (1398609870,), (1398609874,), (1398609906,), (1398609891,), (1398609894,), (1398609897,), (1398609900,), (1398609903,), (1398609920,), (1398609923,), (1398609924,), (1398609925,), (1398609927,), (1398609978,), (1398609988,), (1398609990,), (1398609992,), (1398609995,), (1398609998,), (1398610007,), (1398610011,), (1398610014,), (1398610016,), (1398610019,), (1398610041,), (1398610043,), (1398610045,), (1398610047,), (1398610050,), (1398610074,), (1398610077,), (1398610079,), (1398610081,), (1398610084,), (1398610104,), (1398610106,), (1398610108,), (1398610110,), (1398610113,), (1398610127,), (1398610129,), (1398610131,), (1398610133,), (1398610136,), (1398610139,), (1398610167,), (1398610169,), (1398610171,), (1398610173,), (1398610176,), (1398610192,), (1398610194,), (1398610231,), (1398610234,), (1398610237,), (1398610240,), (1398610242,), (1398610245,), (1398610251,), (1398610255,), (1398610257,), (1398610259,), (1398610285,), (1398610286,), (1398610287,), (1398610288,), (1398610291,), (1398610294,), (1398610318,), (1398610321,), (1398610324,), (1398610328,), (1398610354,), (1398610358,), (1398610361,), (1398610365,), (1398610370,), (1398610373,), (1398610388,), (1398610384,), (1398610386,), (1398610410,), (1398610411,), (1398610412,), (1398610442,), (1398610444,), (1398610446,), (1398610469,), (1398610477,), (1398610479,), (1398610481,), (1398610484,), (1398610500,), (1398610502,), (1398610505,), (1398610508,), (1398610538,), (1398610539,), (1398610541,), (1398610543,), (1398610546,), (1398610549,), (1398610564,), (1398610567,), (1398610571,), (1398610574,), (1398610576,), (1398610578,), (1398610589,), (1398610591,), (1398610596,), (1398610598,), (1398610600,), (1398610606,), (1398610608,), (1398610610,), (1398610622,), (1398610624,), (1398610626,), (1398610628,), (1398610632,), (1398610636,), (1398610658,), (1398610661,), (1398610664,), (1398610667,), (1398610682,), (1398610684,), (1398610686,), (1398610689,), (1398610692,), (1398610696,), (1398610733,), (1398610735,), (1398610737,), (1398610740,), (1398610755,), (1398610757,), (1398610760,), (1398610764,), (1398610766,), (1398610769,), (1398610787,), (1398610792,), (1398610795,), (1398610831,), (1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,), (1398611607,), (1398611316,), (1398611318,), (1398611322,), (1398611327,), (1398611548,), (1398611549,), (1398611552,), (1398611553,), (1398611556,), (1398611557,), (1398611560,), (1398611561,), (1398611564,), (1398611565,), (1398611567,), (1398611568,), (1398611576,), (1398611578,), (1398611580,), (1398611583,), (1398611586,), (1398611589,), (1398611599,), (1398611606,), (1398611612,), (1398611615,), (1398611618,), (1398611621,), (1398611623,), (1398611624,), (1398611638,), (1398611640,), (1398611642,), (1398611647,), (1398611650,), (1398611695,), (1398611696,), (1398611698,), (1398611700,), (1398611723,), (1398611867,), (1398611870,), (1398611873,), (1398611876,), (1398611879,), (1398611881,), (1398611960,), (1398611963,), (1398611965,), (1398611967,), (1398611987,), (1398611990,), (1398611993,), (1398611996,), (1398611999,), (1398612002,), (1398612019,), (1398612022,), (1398612031,), (1398612032,), (1398612033,), (1398612068,), (1398612075,), (1398612088,), (1398612095,), (1398612098,), (1398612101,), (1398612107,), (1398612110,), (1398612112,), (1398612115,), (1398612122,), (1398612349,), (1398612352,), (1398612358,), (1398612360,), (1398612362,), (1398612363,), (1398612382,), (1398612385,), (1398612388,), (1398612391,), (1398612392,), (1398612397,), (1398612398,), (1398612399,), (1398612400,), (1398612402,), (1398612403,), (1398612407,), (1398612408,), (1398612412,), (1398612413,), (1398612423,), (1398612424,), (1398612425,), (1398612426,), (1398612428,), (1398612431,), (1398612492,), (1398612451,), (1398612457,), (1398612466,), (1398612479,), (1398612488,), (1398612499,), (1398612502,), (1398612506,), (1398612581,), (1398612605,), (1398612620,), (1398612632,), (1398612638,), (1398612678,), (1398612712,), (1398612798,), (1398613084,), (1398613087,), (1398613090,), (1398613137,), (1398613161,), (1398613163,), (1398613165,), (1398613167,), (1398613170,), (1398613172,), (1398613185,), (1398613188,), (1398613204,), (1398613213,), (1398613242,), (1398613280,), (1398613536,), (1398613538,), (1398613540,), (1398613542,), (1398613545,), (1398613548,), (1398613580,), (1398613581,), (1398613582,), (1398613583,), (1398613586,), (1398613607,), (1398613610,), (1398613613,), (1398613616,), (1398613619,), (1398613659,), (1398613661,), (1398613663,), (1398613665,), (1398613668,), (1398613735,), (1398613737,), (1398613739,), (1398613741,), (1398613744,), (1398613777,), (1398613780,), (1398613783,), (1398613785,), (1398613788,), (1398613819,), (1398613810,), (1398613812,), (1398613814,), (1398613816,), (1398613844,), (1398613846,), (1398613847,), (1398613849,), (1398613850,), (1398613852,), (1398613855,), (1398613871,), (1398613873,), (1398613875,), (1398613877,), (1398613879,), (1398613883,), (1398613902,), (1398613904,), (1398613906,), (1398613908,), (1398613924,), (1398613926,), (1398613928,), (1398613930,), (1398613934,), (1398613962,), (1398613965,), (1398613969,), (1398613973,), (1398613977,), (1398613980,), (1398614006,), (1398614009,), (1398614012,), (1398614020,), (1398614041,), (1398614043,), (1398614046,), (1398614049,), (1398614053,), (1398614065,), (1398614106,), (1398614110,), (1398614113,), (1398614116,), (1398614173,), (1398614174,), (1398614175,), (1398614176,), (1398614179,), (1398614193,), (1398614362,), (1398614365,), (1398614368,), (1398614386,), (1398614647,), (1398614650,), (1398614652,), (1398614654,), (1398614657,), (1398614660,), (1398614674,), (1398614676,), (1398614679,), (1398614685,), (1398614690,), (1398614691,), (1398614694,), (1398614698,), (1398614716,), (1398614720,), (1398614731,), (1398614747,), (1398614757,), (1398614765,), (1398614767,), (1398614769,), (1398614797,), (1398614832,), (1398614865,), (1398614898,), (1398614932,), (1398615149,), (1398615103,), (1398615106,), (1398615109,), (1398615112,), (1398615116,), (1398615285,), (1398615358,), (1398615421,), (1398615463,), (1398615467,), (1398615533,), (1398615534,), (1398615537,), (1398615576,), (1398615605,), (1398615674,), (1398615678,), (1398615681,), (1398615693,), (1398615779,), (1398615783,), (1398615798,), (1398615809,), (1398615818,), (1398615858,), (1398616147,), (1398616153,), (1398616154,), (1398616155,), (1398616164,), (1398616296,), (1398616310,), (1398616313,), (1398616316,), (1398616361,), (1398616444,), (1398616454,), (1398616455,), (1398616471,), (1398616481,), (1398616489,), (1398616657,), (1398616665,), (1398616690,), (1398616741,), (1398616745,), (1398616754,), (1398616793,), (1398616833,), (1398616867,), (1398616990,), (1398616992,), (1398616994,), (1398617009,), (1398617125,), (1398617128,), (1398617130,), (1398617132,), (1398617135,), (1398617138,), (1398617146,), (1398617149,), (1398617152,), (1398617155,), (1398617158,), (1398617182,), (1398617184,), (1398617188,), (1398617190,), (1398617193,), (1398617652,), (1398617655,), (1398617659,), (1398617663,), (1398617666,), (1398626216,), (1398626284,), (1398626287,), (1398626290,), (1398626293,), (1398626296,), (1398626304,), (1398626307,), (1398626310,), (1398626313,), (1398626316,), (1398626317,), (1398626325,), (1398626326,), (1398626327,), (1398626335,), (1398626349,), (1398626352,), (1398626379,), (1398626383,), (1398626386,), (1398626389,), (1398626397,), (1398626400,), (1398626404,), (1398626408,), (1398626412,), (1398626440,), (1398626443,), (1398626446,), (1398626450,), (1398626454,), (1398626457,), (1398626466,), (1398626468,), (1398626470,), (1398626486,), (1398626487,), (1398626488,), (1398626489,), (1398626492,), (1398626503,), (1398626514,), (1398626516,), (1398626517,), (1398626518,), (1398626520,), (1398626522,), (1398626616,), (1398626635,), (1398626640,), (1398626661,), (1398626813,), (1398626814,), (1398626815,), (1398626818,), (1398626821,), (1398626823,), (1398626836,), (1398626842,), (1398626844,), (1398626849,), (1398626856,), (1398626861,), (1398626864,), (1398626866,), (1398626868,), (1398626898,), (1398626901,), (1398626911,), (1398626936,), (1398627332,), (1398627549,), (1398627196,), (1398627227,), (1398627252,), (1398627278,), (1398627302,), (1398627419,), (1398627420,), (1398627431,), (1398627457,), (1398627467,), (1398627469,), (1398627510,), (1398627535,), (1398627545,), (1398627547,), (1398627551,), (1398627553,), (1398627556,), (1398627559,), (1398627563,), (1398627566,), (1398627571,), (1398627574,), (1398627576,), (1398627586,), (1398627608,), (1398627660,), (1398627697,), (1398627699,), (1398627701,), (1398627704,), (1398627707,), (1398627724,), (1398627725,), (1398627727,), (1398627728,), (1398627744,), (1398627745,), (1398627746,), (1398627747,), (1398627753,), (1398627844,), (1398627870,), (1398627899,), (1398627925,), (1398627956,), (1398627985,), (1398628083,), (1398628090,), (1398628093,), (1398628108,), (1398628109,), (1398628112,), (1398628113,), (1398628116,), (1398628117,), (1398628122,), (1398628123,), (1398628130,), (1398628133,), (1398628135,), (1398628137,), (1398628139,), (1398628141,), (1398628157,), (1398628160,), (1398628162,), (1398628164,), (1398628175,), (1398628177,), (1398628179,), (1398628181,), (1398628184,), (1398628186,), (1398628206,), (1398628209,), (1398628212,), (1398628215,), (1398628239,), (1398628242,), (1398628247,), (1398628250,), (1398628253,), (1398628256,), (1398628260,), (1398628262,), (1398628263,), (1398628264,), (1398628289,), (1398628273,), (1398628276,), (1398628279,), (1398628283,), (1398628286,), (1398628303,), (1398628309,), (1398628347,), (1398628397,), (1398628954,), (1398629002,), (1398629051,), (1398629105,), (1398629156,), (1398629208,), (1398629399,), (1398629453,), (1398629501,), (1398629548,), (1398629717,), (1398629765,), (1398629816,), (1398629867,), (1398630120,), (1398630146,), (1398630179,), (1398630207,), (1398630211,), (1398630231,), (1398630437,), (1398630446,), (1398630449,), (1398630457,), (1398630485,), (1398630584,), (1398630604,), (1398630629,), (1398630653,), (1398630679,), (1398630903,), (1398630928,), (1398630952,), (1398630979,), (1398631005,), (1398631133,), (1398631140,), (1398631165,), (1398631346,), (1398631365,), (1398631379,), (1398631383,), (1398631496,), (1398631511,), (1398631513,), (1398631532,), (1398631572,), (1398631635,), (1398631659,), (1398631684,), (1398631712,), (1398631750,), (1398631765,), (1398631782,), (1398631785,), (1398631789,), (1398631790,), (1398631810,), (1398631814,), (1398631817,), (1398631821,), (1398631826,), (1398631852,), (1398631838,), (1398631848,), (1398631850,), (1398631875,), (1398631877,), (1398631879,), (1398631881,), (1398631883,), (1398631886,), (1398632081,), (1398632097,), (1398632118,), (1398632120,), (1398632255,), (1398632258,), (1398632260,), (1398632265,), (1398632295,), (1398632306,), (1398632323,), (1398632327,), (1398632329,), (1398632331,), (1398632341,), (1398632362,), (1398632365,), (1398632367,), (1398632369,), (1398632406,), (1398632415,), (1398632418,), (1398632421,), (1398632676,), (1398632705,), (1398632733,), (1398632759,), (1398632771,), (1398632773,), (1398632775,), (1398632778,), (1398632779,), (1398632802,), (1398632805,), (1398632808,), (1398632809,), (1398632810,), (1398632812,), (1398632854,), (1398632857,), (1398632860,), (1398632863,), (1398632882,), (1398632889,), (1398632891,), (1398632893,), (1398632896,), (1398632909,), (1398632912,), (1398632914,), (1398632917,), (1398632958,), (1398632967,), (1398632969,), (1398632973,), (1398632977,), (1398632980,), (1398632994,), (1398632996,), (1398632998,), (1398633001,), (1398633012,), (1398633032,), (1398633035,), (1398633038,), (1398633041,), (1398633043,), (1398633101,), (1398633166,), (1398633076,), (1398633082,), (1398633096,), (1398633099,), (1398633119,), (1398633126,), (1398633132,), (1398633139,), (1398633142,), (1398633145,), (1398633155,), (1398633157,), (1398633159,), (1398633160,), (1398633176,), (1398633177,), (1398633180,), (1398633181,), (1398633184,), (1398633185,), (1398633189,), (1398633190,), (1398633280,), (1398633329,), (1398633376,), (1398633425,), (1398633428,), (1398633430,), (1398633476,), (1398633484,), (1398633512,), (1398633515,), (1398633590,), (1398633591,), (1398633593,), (1398633595,), (1398633598,), (1398633638,), (1398633640,), (1398633642,), (1398633644,), (1398633647,), (1398633650,), (1398633671,), (1398633695,), (1398633725,), (1398633735,), (1398633979,), (1398633994,), (1398633997,), (1398633998,), (1398634120,), (1398634121,), (1398634133,), (1398634156,), (1398634184,), (1398634211,), (1398634375,), (1398634401,), (1398634414,), (1398634421,), (1398634437,), (1398634550,), (1398634555,), (1398634559,), (1398634560,), (1398634563,), (1398634605,), (1398634606,), (1398634608,), (1398634609,), (1398634611,), (1398634614,), (1398634622,), (1398634624,), (1398634626,), (1398634628,), (1398634635,), (1398634642,), (1398634818,), (1398634820,), (1398634842,), (1398635528,), (1398635547,), (1398635550,), (1398635553,), (1398635576,), (1398635578,), (1398635590,), (1398635593,), (1398635595,), (1398635597,), (1398635600,), (1398635603,), (1398635766,), (1398635798,), (1398635828,), (1398635838,), (1398635978,), (1398635982,), (1398635986,), (1398635991,), (1398635994,), (1398635997,), (1398636000,), (1398636002,), (1398636004,), (1398636202,), (1398636053,), (1398636082,), (1398636110,), (1398636142,), (1398636169,), (1398636455,), (1398636495,), (1398636497,), (1398636641,), (1398636706,), (1398636754,), (1398636797,), (1398636838,), (1398636878,), (1398636908,), (1398636911,), (1398636913,), (1398636918,), (1398636920,), (1398636923,), (1398636925,), (1398636933,), (1398636936,), (1398636939,), (1398636943,), (1398636948,), (1398636989,), (1398636991,), (1398636993,), (1398637000,), (1398637015,), (1398637252,), (1398637277,), (1398637304,), (1398637333,), (1398637368,), (1398637645,), (1398637680,), (1398637708,), (1398637734,), (1398637759,), (1398637782,), (1398637986,), (1398638020,), (1398638049,), (1398638075,), (1398638095,), (1398638120,), (1398638173,), (1398638222,), (1398638265,), (1398638307,), (1398638991,), (1398639088,), (1398639191,), (1398639309,), (1398639421,), (1398639511,), (1398640083,), (1398640378,), (1398641706,), (1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,), (1398688743,), (1398688769,), (1398688822,), (1398689519,), (1398689583,), (1398689657,), (1398689730,), (1398689772,), (1398689812,), (1398690103,), (1398690105,), (1398690178,), (1398690219,), (1398690299,), (1398690307,), (1398690567,), (1398690625,), (1398690784,), (1398690829,), (1398691116,), (1398694212,), (1398695605,), (1398694014,), (1398694088,), (1398694152,), (1398694882,), (1398694978,), (1398695027,), (1398695077,), (1398695145,), (1398695247,), (1398695988,), (1398696060,), (1398696531,), (1398698196,), (1398698206,), (1398698474,), (1398698481,), (1398698524,), (1398698568,), (1398698958,), (1398698960,), (1398698962,), (1398698964,), (1398698970,), (1398699294,), (1398699305,), (1398699307,), (1398699309,), (1398699311,), (1398699339,), (1398699333,), (1398699335,), (1398699337,), (1398699481,), (1398699523,), (1398699525,), (1398699555,), (1398699563,), (1398699585,), (1398699648,), (1398699658,), (1398699667,), (1398699674,), (1398699712,), (1398699766,), (1398699780,), (1398699806,), (1398699832,), (1398700111,), (1398700149,), (1398700181,), (1398700611,), (1398700645,), (1398700648,), (1398700650,), (1398700652,), (1398700656,), (1398700721,), (1398700911,), (1398700952,), (1398700994,), (1398701042,), (1398701300,), (1398701303,), (1398701305,), (1398701307,), (1398701557,), (1398701589,), (1398701641,), (1398701685,), (1398702235,), (1398702264,), (1398702291,), (1398702436,), (1398702523,), (1398702547,), (1398702571,), (1398702598,), (1398702624,), (1398702697,), (1398702757,), (1398702808,), (1398702852,), (1398702922,), (1398703519,), (1398703584,), (1398703633,), (1398703660,), (1398704458,), (1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,), (1398708696,), (1398708700,), (1398708701,), (1398708734,), (1398708741,), (1398708745,), (1398708748,), (1398708751,), (1398708803,), (1398708777,), (1398708790,), (1398708794,), (1398708798,), (1398708801,), (1398708828,), (1398708831,), (1398708834,), (1398708858,), (1398708893,), (1398708920,), (1398708949,), (1398708978,), (1398709009,), (1398709013,), (1398709016,), (1398709019,), (1398709022,), (1398709035,), (1398709038,), (1398709041,), (1398709044,), (1398709052,), (1398709055,), (1398709058,), (1398709061,), (1398709101,), (1398709104,), (1398709107,), (1398709110,), (1398709112,), (1398709114,), (1398709124,), (1398709126,), (1398709128,), (1398709130,), (1398709132,), (1398709134,), (1398709139,), (1398709148,), (1398709161,), (1398709163,), (1398709189,), (1398709192,), (1398709199,), (1398709228,), (1398709232,), (1398709243,), (1398709278,), (1398709280,), (1398709283,), (1398709509,), (1398709512,), (1398709514,), (1398709622,), (1398709644,), (1398709654,), (1398709660,), (1398709675,), (1398709678,), (1398709905,), (1398709933,), (1398709959,), (1398709982,), (1398710005,), (1398710342,), (1398710369,), (1398710396,), (1398710423,), (1398710566,), (1398711090,), (1398711117,), (1398711293,), (1398711301,), (1398711310,), (1398711311,), (1398711313,), (1398711753,), (1398711815,), (1398711881,), (1398711943,), (1398712289,), (1398712352,), (1398712413,), (1398712663,), (1398712672,), (1398712675,), (1398712676,), (1398712729,), (1398712737,), (1398712741,), (1398712742,), (1398712820,), (1398712823,), (1398712824,), (1398712839,), (1398712879,), (1398712921,), (1398713181,), (1398713209,), (1398713266,), (1398713268,), (1398713270,), (1398713400,), (1398713403,), (1398713406,), (1398713409,), (1398713415,), (1398713570,), (1398713573,), (1398713596,), (1398713598,), (1398713600,), (1398713604,), (1398713608,), (1398713611,), (1398713623,), (1398713631,), (1398713633,), (1398713635,), (1398713637,), (1398713640,), (1398713642,), (1398713658,), (1398713662,), (1398713664,), (1398713667,), (1398713707,), (1398713693,), (1398713701,), (1398713703,), (1398713704,), (1398713719,), (1398713720,), (1398713722,), (1398713724,), (1398713728,), (1398713749,), (1398713754,), (1398713756,), (1398713758,), (1398713773,), (1398713784,), (1398713805,), (1398713811,), (1398713859,), (1398713861,), (1398713863,), (1398713865,), (1398713868,), (1398713870,), (1398713878,), (1398713880,), (1398713882,), (1398713886,), (1398713941,), (1398713942,), (1398713943,), (1398713959,), (1398713990,), (1398714015,), (1398714106,), (1398714108,), (1398714112,), (1398714115,), (1398714118,), (1398714121,), (1398714138,), (1398714140,), (1398714143,), (1398714151,), (1398714155,), (1398714156,), (1398714163,), (1398714166,), (1398714168,), (1398714171,), (1398714204,), (1398714205,), (1398714206,), (1398714207,), (1398714210,), (1398714234,), (1398714237,), (1398714240,), (1398714243,), (1398714255,), (1398714263,), (1398714266,), (1398714269,), (1398714326,), (1398714328,), (1398714329,), (1398714332,), (1398714368,), (1398714371,), (1398714375,), (1398714379,), (1398714382,), (1398714385,), (1398714407,), (1398714409,), (1398714411,), (1398714413,), (1398714416,), (1398714419,), (1398714485,), (1398714476,), (1398714479,), (1398714482,), (1398714513,), (1398714515,), (1398714516,), (1398714517,), (1398714520,), (1398714522,), (1398714536,), (1398714538,), (1398714540,), (1398714543,), (1398714545,), (1398714546,), (1398714563,), (1398714589,), (1398714591,), (1398714598,), (1398714599,), (1398714600,), (1398714602,), (1398714605,), (1398714607,), (1398714624,), (1398714629,), (1398714634,), (1398714635,), (1398714656,), (1398714657,), (1398714659,), (1398714661,), (1398714664,), (1398714670,), (1398714687,), (1398714690,), (1398714692,), (1398714760,), (1398714774,), (1398714803,), (1398714831,), (1398714834,), (1398714835,), (1398714899,), (1398714937,), (1398714960,), (1398714962,), (1398714965,), (1398714968,), (1398714980,), (1398714982,), (1398714984,), (1398715021,), (1398715022,), (1398715024,), (1398715026,), (1398715031,), (1398715034,), (1398715069,), (1398715075,), (1398715077,), (1398715079,), (1398715082,), (1398715085,), (1398715099,), (1398715105,), (1398715107,), (1398715110,), (1398715113,), (1398715116,), (1398715121,), (1398715122,), (1398715125,), (1398715136,), (1398715145,), (1398715146,), (1398715149,), (1398715150,), (1398715151,), (1398715154,), (1398715169,), (1398715180,), (1398715181,), (1398715182,), (1398715218,), (1398715212,), (1398715213,), (1398715214,), (1398715215,), (1398715236,), (1398715239,), (1398715242,), (1398715246,), (1398715278,), (1398715296,), (1398715299,), (1398715301,), (1398715303,), (1398715305,), (1398715318,), (1398715319,), (1398715320,), (1398715321,), (1398715336,), (1398715363,), (1398715366,), (1398715369,), (1398715372,), (1398715373,), (1398715380,), (1398715382,), (1398715384,), (1398715567,), (1398715607,), (1398715641,), (1398715676,), (1398715790,), (1398715791,), (1398715792,), (1398715794,), (1398715797,), (1398715818,), (1398715897,), (1398715899,), (1398715902,), (1398715905,), (1398715908,), (1398715936,), (1398715943,), (1398715945,), (1398715948,), (1398715964,), (1398715967,), (1398715968,), (1398715969,), (1398715970,), (1398717641,), (1398717643,), (1398717671,), (1398717673,), (1398717792,), (1398717988,), (1398717989,), (1398717990,), (1398717991,), (1398717993,), (1398718093,), (1398718130,), (1398718143,), (1398718147,), (1398718152,), (1398718184,), (1398718187,), (1398718200,), (1398718216,), (1398718219,), (1398718223,), (1398718226,), (1398718228,), (1398718252,), (1398718241,), (1398718245,), (1398718248,), (1398718250,), (1398718260,), (1398718261,), (1398718262,), (1398718264,), (1398718267,), (1398718299,), (1398718302,), (1398718304,), (1398718306,), (1398718365,), (1398718505,), (1398718506,), (1398718508,), (1398718620,), (1398718622,), (1398718918,), (1398718920,), (1398718922,), (1398719193,), (1398719194,), (1398719195,), (1398719196,), (1398719199,), (1398719214,), (1398719217,), (1398719220,), (1398719223,), (1398719226,), (1398719228,), (1398719242,), (1398719244,), (1398719248,), (1398719271,), (1398719274,), (1398719295,), (1398719296,), (1398719297,), (1398719298,), (1398719300,), (1398719302,), (1398719327,), (1398719329,), (1398719331,), (1398719333,), (1398719347,), (1398719381,), (1398719436,), (1398719439,), (1398719442,), (1398719500,), (1398719502,), (1398719504,), (1398719506,), (1398719508,), (1398719511,), (1398719519,), (1398719521,), (1398719523,), (1398719525,), (1398719527,), (1398719551,), (1398719554,), (1398719556,), (1398719598,), (1398719581,), (1398719584,), (1398719586,), (1398719590,), (1398719594,), (1398719608,), (1398719611,), (1398719626,), (1398719628,), (1398719630,), (1398719632,), (1398719634,), (1398719649,), (1398719651,), (1398719667,), (1398719669,), (1398719736,), (1398719738,), (1398719740,), (1398719756,), (1398719768,), (1398719790,), (1398719791,), (1398719793,), (1398719795,), (1398719823,), (1398719826,), (1398719829,), (1398719832,), (1398719834,), (1398719848,), (1398719849,), (1398719850,), (1398719935,), (1398719937,), (1398719966,), (1398719968,), (1398719970,), (1398719994,), (1398719995,), (1398719996,), (1398719997,), (1398720000,), (1398720035,), (1398720029,), (1398720031,), (1398720033,), (1398720049,), (1398720051,), (1398720053,), (1398720055,), (1398720071,), (1398720075,), (1398720079,), (1398720082,), (1398720100,), (1398720102,), (1398720104,), (1398720105,), (1398720107,), (1398720129,), (1398720133,), (1398720135,), (1398720146,), (1398720149,), (1398720152,), (1398720155,), (1398720158,), (1398720160,), (1398720173,), (1398720175,), (1398720176,), (1398720177,), (1398720178,), (1398720180,), (1398720204,), (1398720208,), (1398720212,), (1398720216,), (1398720221,), (1398720224,), (1398720234,), (1398720237,), (1398720239,), (1398720242,), (1398720245,), (1398720248,), (1398720251,), (1398720257,), (1398720261,), (1398720267,), (1398720269,), (1398720271,), (1398720273,), (1398720309,), (1398720311,), (1398720313,), (1398720330,), (1398720331,), (1398720332,), (1398720333,), (1398720335,), (1398720338,), (1398720354,), (1398720356,), (1398720358,), (1398720802,), (1398720840,), (1398720878,), (1398720911,), (1398720955,), (1398721026,), (1398721728,), (1398721661,), (1398722029,), (1398722032,), (1398722058,), (1398722088,), (1398722092,), (1398722138,), (1398722421,), (1398722446,), (1398722459,), (1398722461,), (1398722463,), (1398722496,), (1398722549,), (1398722550,), (1398722551,), (1398722552,), (1398722553,), (1398722554,), (1398722562,), (1398722563,), (1398722566,), (1398722567,), (1398722569,), (1398722570,), (1398722573,), (1398722574,), (1398722588,), (1398722673,), (1398722757,), (1398722843,), (1398722944,), (1398723225,), (1398723312,), (1398723355,), (1398723448,), (1398723450,), (1398723452,), (1398723454,), (1398723469,), (1398723472,), (1398723475,), (1398723478,), (1398723484,), (1398723524,), (1398723526,), (1398723528,), (1398723530,), (1398723582,), (1398723584,), (1398723601,), (1398723602,), (1398723604,), (1398723606,), (1398723609,), (1398723637,), (1398723646,), (1398723657,), (1398723662,), (1398723665,), (1398723684,), (1398723685,), (1398723687,), (1398723690,), (1398723692,), (1398723693,), (1398723723,), (1398723725,), (1398723728,), (1398723731,), (1398723748,), (1398723752,), (1398723770,), (1398723922,), (1398723924,), (1398723927,), (1398723929,), (1398723932,), (1398723936,), (1398723977,), (1398723961,), (1398723967,), (1398723970,), (1398723972,), (1398723975,), (1398723985,), (1398723988,), (1398723991,), (1398724048,), (1398724052,), (1398724053,), (1398724054,), (1398724057,), (1398724070,), (1398724282,), (1398724298,), (1398724303,), (1398724310,), (1398724319,), (1398724341,), (1398724474,), (1398724475,), (1398724476,), (1398724478,), (1398724481,), (1398724495,), (1398724498,), (1398724502,), (1398724505,), (1398724509,), (1398724520,), (1398724544,), (1398724553,), (1398724577,), (1398724579,), (1398724582,), (1398724588,), (1398724591,), (1398724595,), (1398724653,), (1398724657,), (1398724661,), (1398724667,), (1398724672,), (1398724675,), (1398724689,), (1398724690,), (1398724697,), (1398724699,), (1398724702,), (1398724709,), (1398724712,), (1398724714,), (1398724739,), (1398724741,), (1398724743,), (1398724745,), (1398724748,), (1398724750,), (1398724759,), (1398724761,), (1398724764,), (1398724767,), (1398724770,), (1398724815,), (1398724818,), (1398724820,), (1398724855,), (1398724857,), (1398724859,), (1398724861,), (1398724870,), (1398727407,), (1398728182,), (1398728376,), (1398727403,), (1398727405,), (1398727829,), (1398727863,), (1398727894,), (1398727928,), (1398727960,), (1398727994,), (1398728115,), (1398728150,), (1398728287,), (1398728307,), (1398728342,), (1398728516,), (1398728520,), (1398728521,), (1398728639,), (1398728643,), (1398728645,), (1398728646,), (1398728667,), (1398728669,), (1398728671,), (1398728672,), (1398728674,), (1398728676,), (1398728702,), (1398728704,), (1398728706,), (1398728707,), (1398728710,), (1398728719,), (1398728721,), (1398728723,), (1398728754,), (1398728757,), (1398728759,), (1398728762,), (1398728765,), (1398728775,), (1398728777,), (1398728779,), (1398728783,), (1398728789,), (1398728798,), (1398728800,), (1398728802,), (1398728821,), (1398728822,), (1398728823,), (1398728825,), (1398728828,), (1398728831,), (1398728838,), (1398728840,), (1398728842,), (1398728859,), (1398728860,), (1398728861,), (1398728864,), (1398728867,), (1398728879,), (1398728882,), (1398728885,), (1398728887,), (1398728926,), (1398728916,), (1398728919,), (1398728921,), (1398728922,), (1398728924,), (1398728938,), (1398728940,), (1398728942,), (1398728944,), (1398728947,), (1398728948,), (1398728974,), (1398728976,), (1398728979,), (1398729001,), (1398729003,), (1398729005,), (1398729007,), (1398729010,), (1398729012,), (1398729037,), (1398729039,), (1398729040,), (1398729041,), (1398729043,), (1398729054,), (1398729056,), (1398729058,), (1398729092,), (1398729095,), (1398729098,), (1398729101,), (1398729103,), (1398729115,), (1398729117,), (1398729118,), (1398729121,), (1398729124,), (1398729126,), (1398729151,), (1398729153,), (1398729155,), (1398729158,), (1398729160,), (1398729162,), (1398729176,), (1398729177,), (1398729179,), (1398729181,), (1398729183,), (1398729185,), (1398729189,), (1398729190,), (1398729192,), (1398729202,), (1398729206,), (1398729209,), (1398729224,), (1398729225,), (1398729226,), (1398729242,), (1398729244,), (1398729246,), (1398729282,), (1398729284,), (1398729286,), (1398729302,), (1398729303,), (1398729304,), (1398729327,), (1398729329,), (1398729331,), (1398729366,), (1398729358,), (1398729359,), (1398729360,), (1398729361,), (1398729364,), (1398729388,), (1398729390,), (1398729392,), (1398729394,), (1398729397,), (1398729430,), (1398729432,), (1398729434,), (1398729436,), (1398729439,), (1398729451,), (1398729452,), (1398729453,), (1398729454,), (1398729457,), (1398729472,), (1398729474,), (1398729476,), (1398729478,), (1398729480,), (1398729482,), (1398729502,), (1398729504,), (1398729506,), (1398729510,), (1398729571,), (1398729573,), (1398729575,), (1398729608,), (1398729610,), (1398729611,), (1398729612,), (1398729614,), (1398729617,), (1398729660,), (1398729662,), (1398729664,), (1398729666,), (1398729669,), (1398729670,), (1398729681,), (1398729683,), (1398729685,), (1398729687,), (1398729715,), (1398729722,), (1398729753,), (1398729754,), (1398729757,), (1398729809,), (1398729810,), (1398729811,), (1398729812,), (1398729815,), (1398729838,), (1398729897,), (1398729916,), (1398729951,), (1398730034,), (1398730036,), (1398730038,), (1398730041,), (1398730091,), (1398730077,), (1398730084,), (1398730087,), (1398730089,), (1398730090,), (1398730109,), (1398730110,), (1398730111,), (1398730112,), (1398730148,), (1398730149,), (1398730150,), (1398730167,), (1398730168,), (1398730169,), (1398730170,), (1398730189,), (1398730190,), (1398730191,), (1398730192,), (1398730384,), (1398730419,), (1398730471,), (1398730502,), (1398730560,), (1398730563,), (1398730564,), (1398730565,), (1398730579,), (1398730580,), (1398730582,), (1398730584,), (1398730586,), (1398730589,), (1398730605,), (1398730607,), (1398730609,), (1398730611,), (1398730612,), (1398730613,), (1398730620,), (1398730625,), (1398730627,), (1398730630,), (1398730632,), (1398730634,), (1398730643,), (1398730647,), (1398730649,), (1398730652,), (1398730654,), (1398730658,), (1398730659,), (1398730660,), (1398730662,), (1398730664,), (1398730675,), (1398730677,), (1398730679,), (1398730680,), (1398730964,), (1398731001,), (1398731015,), (1398731029,), (1398731044,), (1398731060,), (1398731064,), (1398731068,), (1398731073,), (1398731081,), (1398731082,), (1398731083,), (1398731084,), (1398731350,), (1398731221,), (1398731258,), (1398731296,), (1398732008,), (1398732043,), (1398732083,), (1398732117,), (1398732153,), (1398732601,), (1398732632,), (1398732635,), (1398732642,), (1398732645,), (1398732649,), (1398732660,), (1398732698,), (1398732733,), (1398732857,), (1398732892,), (1398732923,), (1398732961,), (1398732981,), (1398733037,), (1398733062,), (1398733076,), (1398733079,), (1398733081,), (1398733093,), (1398733096,), (1398733098,), (1398733129,), (1398733132,), (1398733134,), (1398733136,), (1398733138,), (1398733241,), (1398733244,), (1398733255,), (1398733267,), (1398733271,), (1398733295,), (1398733298,), (1398733312,), (1398733315,), (1398733349,), (1398733352,), (1398733353,), (1398733474,), (1398733475,), (1398733476,), (1398733477,), (1398733479,), (1398733481,), (1398733502,), (1398733505,), (1398733506,), (1398733509,), (1398733512,), (1398733615,), (1398733634,), (1398733658,), (1398733663,), (1398733679,), (1398733682,), (1398733690,), (1398733694,), (1398733696,), (1398733699,), (1398733702,), (1398733704,), (1398733721,), (1398733729,), (1398733731,), (1398733757,), (1398733794,), (1398733839,), (1398733962,), (1398733960,), (1398733961,), (1398734072,), (1398734078,), (1398734082,), (1398734101,), (1398734105,), (1398734109,), (1398734130,), (1398734132,), (1398734134,), (1398734215,), (1398734253,), (1398734287,), (1398734322,), (1398734359,), (1398734393,), (1398734460,), (1398734463,), (1398734465,), (1398734467,), (1398734469,), (1398734471,), (1398734480,), (1398734482,), (1398734484,), (1398734975,), (1398734976,), (1398734977,), (1398734978,), (1398734981,), (1398734984,), (1398734992,), (1398734994,), (1398734996,), (1398734999,), (1398735002,), (1398735006,), (1398735015,), (1398735017,), (1398735018,), (1398735026,), (1398735035,), (1398735038,), (1398735041,), (1398735044,), (1398735059,), (1398735061,), (1398735063,), (1398735065,), (1398735068,), (1398735071,), (1398735111,), (1398735113,), (1398735115,), (1398735117,), (1398735140,), (1398735142,), (1398735143,), (1398735144,), (1398735186,), (1398735197,), (1398735211,), (1398735218,), (1398735220,), (1398735227,), (1398735228,), (1398735229,), (1398735230,), (1398735232,), (1398735234,), (1398735269,), (1398735271,), (1398735273,), (1398735276,), (1398735278,), (1398735303,), (1398735295,), (1398735297,), (1398735299,), (1398735301,), (1398735325,), (1398735327,), (1398735328,), (1398735329,), (1398735331,), (1398735347,), (1398735348,), (1398735349,), (1398735351,), (1398735353,), (1398735355,), (1398735389,), (1398735391,), (1398735393,), (1398735395,), (1398735396,), (1398735400,), (1398735409,), (1398735412,), (1398735418,), (1398735421,), (1398735424,), (1398735427,), (1398735431,), (1398735432,), (1398735433,), (1398735434,), (1398735435,), (1398735436,), (1398735444,), (1398735445,), (1398735457,), (1398735458,), (1398735486,), (1398735510,), (1398735614,), (1398735617,), (1398735619,), (1398735622,), (1398735625,), (1398735656,), (1398735658,), (1398735660,), (1398735744,), (1398735771,), (1398735869,), (1398735872,), (1398735875,), (1398735878,), (1398735880,), (1398735895,), (1398735896,), (1398735897,), (1398735924,), (1398735926,), (1398735928,), (1398735930,), (1398735932,), (1398735935,), (1398735951,), (1398735953,), (1398735955,), (1398735957,), (1398735982,), (1398735985,), (1398735986,), (1398735987,), (1398735990,), (1398735993,), (1398736001,), (1398736002,), (1398736003,), (1398736006,), (1398736009,), (1398736011,), (1398736018,), (1398736022,), (1398736028,), (1398736042,), (1398736084,), (1398736096,), (1398736107,), (1398736109,), (1398736110,), (1398736111,), (1398736127,), (1398736128,), (1398736130,), (1398736320,), (1398736158,), (1398736184,), (1398736217,), (1398736251,), (1398736285,), (1398736448,), (1398736450,), (1398736452,), (1398736454,), (1398736457,), (1398736480,), (1398736481,), (1398736482,), (1398736483,), (1398736507,), (1398736511,), (1398736513,), (1398736515,), (1398736518,), (1398736521,), (1398736535,), (1398736536,), (1398736537,), (1398736538,), (1398736557,), (1398736559,), (1398736561,), (1398736563,), (1398736566,), (1398736568,), (1398736597,), (1398736608,), (1398736633,), (1398736635,), (1398736636,), (1398736637,), (1398736639,), (1398736641,), (1398736669,), (1398736671,), (1398736673,), (1398736675,), (1398736678,), (1398736701,), (1398743961,), (1398743699,), (1398743957,), (1398743959,), (1398743974,), (1398743977,), (1398743979,), (1398743993,), (1398743994,), (1398744008,), (1398744010,), (1398744012,), (1398744014,), (1398744039,), (1398744041,), (1398744042,), (1398744043,), (1398744055,), (1398744057,), (1398744059,), (1398744061,), (1398744064,), (1398744085,), (1398744086,), (1398744087,), (1398744088,), (1398744091,), (1398744094,), (1398744113,), (1398744115,), (1398744117,), (1398744121,), (1398744125,), (1398744130,), (1398744135,), (1398744136,), (1398744137,), (1398744138,), (1398744140,), (1398744157,), (1398744159,), (1398744160,), (1398744163,), (1398744166,), (1398744167,), (1398744171,), (1398744173,), (1398744177,), (1398744178,), (1398744186,), (1398744187,), (1398744190,), (1398744191,), (1398744203,), (1398744204,), (1398744206,), (1398744207,), (1398744221,), (1398744228,), (1398744210,), (1398744211,), (1398744212,), (1398744215,), (1398744218,), (1398744230,), (1398744232,), (1398744234,), (1398744236,), (1398744239,), (1398744250,), (1398744252,), (1398744254,), (1398744276,), (1398744278,), (1398744279,), (1398744280,), (1398744283,), (1398744297,), (1398744299,), (1398744301,), (1398744303,), (1398744305,), (1398744308,), (1398744316,), (1398744318,), (1398744320,), (1398744322,), (1398744325,), (1398744328,), (1398744354,), (1398744356,), (1398744358,), (1398744360,), (1398744373,), (1398744374,), (1398744375,), (1398744378,), (1398744381,), (1398744384,), (1398744392,), (1398744393,), (1398744394,), (1398744396,), (1398744424,), (1398744425,), (1398744426,), (1398744428,), (1398744430,), (1398744431,), (1398744436,), (1398744440,), (1398744442,), (1398744444,), (1398744448,), (1398744544,), (1398744565,), (1398744569,), (1398744572,), (1398744575,), (1398744606,), (1398744601,), (1398744602,), (1398744603,), (1398744604,), (1398744635,), (1398744655,), (1398744657,), (1398744709,), (1398744718,), (1398744721,), (1398744732,), (1398744734,), (1398744736,), (1398744738,), (1398744741,), (1398744742,), (1398744773,), (1398744774,), (1398744775,), (1398744776,), (1398744779,), (1398744804,), (1398744805,), (1398744814,), (1398744815,), (1398744905,), (1398744923,), (1398744925,), (1398744955,), (1398744991,), (1398745035,), (1398745120,), (1398745123,), (1398745125,), (1398745128,), (1398745368,), (1398745370,), (1398745373,), (1398745459,), (1398745461,), (1398745463,), (1398745492,), (1398745601,), (1398745750,), (1398745751,), (1398745752,), (1398745753,), (1398745756,), (1398745777,), (1398745779,), (1398745781,), (1398745784,), (1398745789,), (1398745793,), (1398745800,), (1398745826,), (1398745827,), (1398745828,), (1398745829,), (1398745831,), (1398745836,), (1398745840,), (1398745843,), (1398745868,), (1398745862,), (1398745863,), (1398745864,), (1398745865,), (1398745930,), (1398745932,), (1398745934,), (1398745936,), (1398745939,), (1398745941,), (1398745956,), (1398745959,), (1398745961,), (1398745963,), (1398745989,), (1398745990,), (1398745991,), (1398745992,), (1398746008,), (1398746010,), (1398746012,), (1398746014,), (1398746017,), (1398746211,), (1398746244,), (1398746276,), (1398746309,), (1398746318,), (1398746346,), (1398746348,), (1398746350,), (1398746352,), (1398746366,), (1398746367,), (1398746368,), (1398746371,), (1398746374,), (1398746377,), (1398746387,), (1398746411,), (1398746412,), (1398746413,), (1398746415,), (1398746417,), (1398746424,), (1398746425,), (1398746426,), (1398746466,), (1398746498,), (1398746501,), (1398746503,), (1398746505,), (1398746524,), (1398746528,), (1398746531,), (1398746534,), (1398746538,), (1398746543,), (1398746545,), (1398746558,), (1398746560,), (1398746562,), (1398746571,), (1398746567,), (1398746569,), (1398746586,), (1398746588,), (1398746598,), (1398746601,), (1398746604,), (1398746616,), (1398746618,), (1398746620,), (1398746627,), (1398746637,), (1398746653,), (1398746660,), (1398746661,), (1398746664,), (1398746667,), (1398746670,), (1398746673,), (1398746679,), (1398746681,), (1398746682,), (1398746685,), (1398746688,), (1398746691,), (1398746813,), (1398746845,), (1398747062,), (1398747098,), (1398747559,), (1398747569,), (1398747570,), (1398747573,), (1398747575,), (1398747576,), (1398747604,), (1398747612,), (1398747644,), (1398747677,), (1398748542,), (1398748698,), (1398748865,), (1398749019,), (1398749174,), (1398749249,), (1398749829,), (1398749849,), (1398749911,), (1398749917,), (1398749925,), (1398749927,), (1398749935,), (1398749972,), (1398750009,), (1398750660,), (1398750731,), (1398750798,), (1398750896,), (1398750970,), (1398751079,), (1398751806,), (1398751843,), (1398751853,), (1398751857,), (1398751860,), (1398751862,), (1398751869,), (1398751870,), (1398751872,), (1398751874,), (1398751886,), (1398751891,), (1398752053,), (1398752084,), (1398752119,), (1398752155,), (1398752191,), (1398752223,), (1398752404,), (1398752433,), (1398752447,), (1398752451,), (1398752453,), (1398752455,), (1398752638,), (1398752877,), (1398752932,), (1398752964,), (1398753079,), (1398753112,), (1398753146,), (1398753179,), (1398753212,), (1398753218,), (1398754424,), (1398752458,), (1398752459,), (1398752462,), (1398752465,), (1398752561,), (1398752771,), (1398752807,), (1398752840,), (1398753337,), (1398753444,), (1398753591,), (1398753730,), (1398753853,), (1398753975,), (1398754101,), (1398754162,), (1398754266,), (1398754351,), (1398754731,), (1398754765,), (1398754771,), (1398754786,), (1398755114,), (1398755134,), (1398755136,), (1398755137,), (1398755141,), (1398755145,), (1398755173,), (1398755174,), (1398755175,), (1398755176,), (1398755195,), (1398755197,), (1398755202,), (1398755203,), (1398755204,), (1398755205,), (1398755455,), (1398755547,), (1398755993,), (1398755994,), (1398755997,), (1398756000,), (1398756002,), (1398756003,), (1398756010,), (1398756011,), (1398756013,), (1398756017,), (1398756020,), (1398756023,), (1398756044,), (1398756048,), (1398756049,), (1398756050,), (1398756053,), (1398756056,), (1398756067,), (1398756069,), (1398756071,), (1398756091,), (1398756184,), (1398756280,), (1398756483,), (1398756485,), (1398756487,), (1398756489,), (1398756491,), (1398756492,), (1398756724,), (1398756754,), (1398756831,), (1398757176,), (1398757177,), (1398757179,), (1398757180,), (1398757183,), (1398757187,), (1398757237,), (1398757205,), (1398757207,), (1398757209,), (1398757830,), (1398757865,), (1398757904,), (1398757939,), (1398758343,), (1398758345,), (1398758347,), (1398758350,), (1398758353,), (1398758355,), (1398758401,), (1398758491,), (1398759312,), (1398759378,), (1398759413,), (1398759446,), (1398759477,), (1398759510,), (1398759573,), (1398759575,), (1398759577,), (1398759595,), (1398759635,), (1398759652,), (1398759661,), (1398759662,), (1398759663,), (1398759664,), (1398759667,), (1398759669,), (1398759897,), (1398759931,), (1398759981,), (1398760030,), (1398760068,), (1398760393,), (1398760426,), (1398760460,), (1398760493,), (1398760897,), (1398760932,), (1398760970,), (1398761434,), (1398761463,), (1398761495,), (1398761531,), (1398761568,), (1398761875,), (1398761908,), (1398762375,), (1398762407,), (1398762409,), (1398762426,), (1398763187,), (1398763258,), (1398763340,), (1398763406,), (1398763471,), (1398763526,), (1398763708,), (1398763879,), (1398763995,), (1398764145,), (1398764291,), (1398764426,), (1398765553,), (1398765604,), (1398765665,), (1398765730,), (1398765805,), (1398765873,), (1398767382,), (1398766937,), (1398767177,), (1398768441,), (1398768497,), (1398768556,), (1398768602,), (1398768716,), (1398768842,), (1398769072,), (1398769113,), (1398769168,), (1398769191,), (1398769203,), (1398769219,), (1398769603,), (1398769635,), (1398769666,), (1398769902,), (1398769936,), (1398769967,), (1398770035,), (1398770096,), (1398770170,), (1398770687,), (1398770832,), (1398770867,), (1398770901,), (1398770939,), (1398770974,), (1398771771,), (1398771868,), (1398771958,), (1398772302,), (1398772451,), (1398772494,), (1398772509,), (1398772512,), (1398772564,), (1398772655,), (1398772720,), (1398772748,), (1398772847,), (1398772848,), (1398772851,), (1398772854,), (1398772857,), (1398772859,), (1398772861,), (1398772869,), (1398772876,), (1398772879,), (1398772882,), (1398772885,), (1398772890,), (1398772891,), (1398772893,), (1398772895,), (1398772897,), (1398772899,), (1398772910,), (1398772912,), (1398772913,), (1398772914,), (1398772918,), (1398772920,), (1398772957,), (1398772960,), (1398772963,), (1398772965,), (1398773340,), (1398773344,), (1398773347,), (1398773350,), (1398773354,), (1398773603,), (1398774047,), (1398774143,), (1398774282,), (1398774427,), (1398775142,), (1398774959,), (1398774999,), (1398775036,), (1398775075,), (1398775109,), (1398775407,), (1398775474,), (1398775521,), (1398775556,), (1398775681,), (1398775822,), (1398776576,), (1398776642,), (1398776684,), (1398776719,), (1398776756,), (1398776790,), (1398776925,), (1398776974,), (1398777009,), (1398777045,), (1398777081,), (1398777757,), (1398777770,), (1398777869,), (1398777894,), (1398777905,), (1398777914,), (1398778087,), (1398778164,), (1398778202,), (1398778234,), (1398778277,), (1398778315,), (1398778501,), (1398779918,), (1398780667,), (1398780707,), (1398780750,), (1398780836,), (1398781555,), (1398781558,), (1398781561,), (1398781858,), (1398782186,), (1398782188,), (1398782203,), (1398782240,), (1398782268,), (1398782282,), (1398782306,), (1398782308,), (1398782312,), (1398782316,), (1398782320,), (1398782325,), (1398782337,), (1398782338,), (1398782339,), (1398782944,), (1398782947,), (1398782949,), (1398782953,), (1398782957,), (1398782968,), (1398783094,), (1398783096,), (1398783097,), (1398783098,), (1398783105,), (1398783106,), (1398783172,), (1398783184,), (1398783197,), (1398783198,), (1398783271,), (1398783257,), (1398783265,), (1398783267,), (1398783269,), (1398783282,), (1398783286,), (1398783290,), (1398783309,), (1398783310,), (1398783311,), (1398783312,), (1398783315,), (1398783317,), (1398783505,), (1398783545,), (1398784567,), (1398784586,), (1398784587,), (1398785108,), (1398785155,), (1398785563,), (1398785571,), (1398785674,), (1398785676,), (1398786615,), (1398786843,), (1398786877,), (1398786910,), (1398786943,), (1398787109,), (1398787119,), (1398787121,), (1398787122,), (1398787931,), (1398788035,), (1398788130,), (1398788237,), (1398788351,), (1398788353,), (1398788364,), (1398788365,), (1398788376,), (1398788369,), (1398788371,), (1398788373,), (1398788680,), (1398788764,), (1398788766,), (1398788768,), (1398788807,), (1398788817,), (1398788829,), (1398788830,), (1398788831,), (1398788832,), (1398789325,), (1398789459,), (1398789591,), (1398789635,), (1398789669,), (1398790195,), (1398790238,), (1398790262,), (1398790269,), (1398790273,), (1398790277,), (1398790411,), (1398790445,), (1398790481,), (1398790508,), (1398790649,), (1398790652,), (1398790655,), (1398790659,), (1398790663,), (1398790686,), (1398790689,), (1398790692,), (1398790695,), (1398790699,), (1398790708,), (1398790710,), (1398790712,), (1398791133,), (1398791166,), (1398791186,), (1398791339,), (1398791372,), (1398791388,), (1398792297,), (1398792300,), (1398792302,), (1398792304,), (1398792307,), (1398792560,), (1398792601,), (1398792616,), (1398792619,), (1398792646,), (1398792675,), (1398792932,), (1398793025,), (1398793132,), (1398793431,), (1398793471,), (1398793473,), (1398793505,), (1398793507,), (1398793508,), (1398793514,), (1398793515,), (1398793518,), (1398793519,), (1398793533,), (1398793534,), (1398793539,), (1398793540,), (1398793551,), (1398793552,), (1398793553,), (1398793554,), (1398793577,), (1398793580,), (1398793582,), (1398793570,), (1398793572,), (1398793574,), (1398793587,), (1398793589,), (1398793591,), (1398793593,), (1398793596,), (1398793599,), (1398793604,), (1398793609,), (1398793623,), (1398793632,), (1398793641,), (1398793656,), (1398793658,), (1398793665,), (1398793674,), (1398793681,), (1398794004,), (1398794036,), (1398794067,), (1398794379,), (1398794382,), (1398794385,), (1398794418,), (1398794512,), (1398794608,), (1398795474,), (1398795506,), (1398795541,), (1398795574,), (1398795966,), (1398795967,), (1398796005,), (1398796016,), (1398796018,), (1398796020,), (1398796029,), (1398796031,), (1398796033,), (1398796035,), (1398796703,), (1398796798,), (1398796843,), (1398796850,), (1398796875,), (1398796912,), (1398796913,), (1398796962,), (1398796965,), (1398797014,), (1398797101,), (1398797201,), (1398797242,), (1398797368,), (1398797372,), (1398797375,), (1398797377,), (1398797379,), (1398797394,), (1398797400,), (1398797406,), (1398797416,), (1398797422,), (1398797423,), (1398797424,), (1398797427,), (1398797428,), (1398797429,), (1398797436,), (1398797441,), (1398797442,), (1398797443,), (1398797455,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10122025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29300657]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] map_info['map_portfolio_photo'] : {29300657: [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744]} final : True mtd_id 4302 list_pids : [1398688870, 1398688309, 1398688281, 1398688239, 1398688174, 1398687589, 1398687534, 1398687463, 1398687398, 1398687223, 1398687150, 1398687147, 1398687143, 1398687139, 1398687136, 1398687133, 1398687050, 1398680744] Looping around the photos to save general results len do output : 1 /29300657Didn'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, '4206894') ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894') ('4302', None, None, None, None, None, None, None, '4206894') ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29300657', 'None', None, None, None, None, '4206894'), ('4302', '29300657', '1398688870', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688309', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688281', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688239', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398688174', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687589', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687534', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687463', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687398', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687223', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687150', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687147', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687143', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687139', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687136', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687133', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398687050', None, None, None, None, None, '4206894'), ('4302', '29300657', '1398680744', None, None, None, None, None, '4206894')] time used for this insertion : 0.01631331443786621 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.720975875854492 time spend to save output : 0.016613483428955078 total time spend for step 5 : 6.737589359283447 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 (4206894) 2.81user 2.20system 0:20.99elapsed 23%CPU (0avgtext+0avgdata 167700maxresident)k 480inputs+19184outputs (3major+83288minor)pagefaults 0swaps