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 : 602809 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 (3398361) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3398361) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501495 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3398361'] with mtr_portfolio_ids : ['25501495'] and first list_photo_ids : [] new path : /proc/602809/ Name: python3 Umask: 0002 State: R (running) Tgid: 602809 Ngid: 0 Pid: 602809 PPid: 602808 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 602809 NSpid: 602809 NSpgid: 600962 NSsid: 600962 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99660 kB VmRSS: 99660 kB RssAnon: 59820 kB RssFile: 39840 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 157 nonvoluntary_ctxt_switches: 124 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '602809', 'Ngid': '0', 'Pid': '602809', 'PPid': '602808', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '602809', 'NSpid': '602809', 'NSpgid': '600962', 'NSsid': '600962', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99660 kB', 'VmRSS': '99660 kB', 'RssAnon': '59820 kB', 'RssFile': '39840 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '157', 'nonvoluntary_ctxt_switches': '124'} ('datou_batch_current', '602809', '1106868', '0', '1106868', '865620', '99660', b'', 'marlene', '3398361') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25501495) 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 (3398361 ) ) 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 (25501495) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374451890, 'portfolio_id': 25501495}, {'photo_id': 1374451864, 'portfolio_id': 25501495}, {'photo_id': 1374451840, 'portfolio_id': 25501495}, {'photo_id': 1374451818, 'portfolio_id': 25501495}, {'photo_id': 1374451815, 'portfolio_id': 25501495}, {'photo_id': 1374451812, 'portfolio_id': 25501495}, {'photo_id': 1374451715, 'portfolio_id': 25501495}, {'photo_id': 1374451563, 'portfolio_id': 25501495}, {'photo_id': 1374451560, 'portfolio_id': 25501495}, {'photo_id': 1374451558, 'portfolio_id': 25501495}, {'photo_id': 1374451556, 'portfolio_id': 25501495}, {'photo_id': 1374451554, 'portfolio_id': 25501495}, {'photo_id': 1374451550, 'portfolio_id': 25501495}, {'photo_id': 1374451498, 'portfolio_id': 25501495}, {'photo_id': 1374451495, 'portfolio_id': 25501495}, {'photo_id': 1374451490, 'portfolio_id': 25501495}, {'photo_id': 1374451489, 'portfolio_id': 25501495}, {'photo_id': 1374451485, 'portfolio_id': 25501495}, {'photo_id': 1374451480, 'portfolio_id': 25501495}, {'photo_id': 1374451332, 'portfolio_id': 25501495}, {'photo_id': 1374451330, 'portfolio_id': 25501495}, {'photo_id': 1374451328, 'portfolio_id': 25501495}, {'photo_id': 1374451324, 'portfolio_id': 25501495}, {'photo_id': 1374451318, 'portfolio_id': 25501495}, {'photo_id': 1374451285, 'portfolio_id': 25501495}] map_portfolio_id_photo_id: {25501495: [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715, 1374451563, 1374451560, 1374451558, 1374451556, 1374451554, 1374451550, 1374451498, 1374451495, 1374451490, 1374451489, 1374451485, 1374451480, 1374451332, 1374451330, 1374451328, 1374451324, 1374451318, 1374451285]} ##### 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.014515876770019531 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 30 13:20:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25501495) 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 : 25501495 get user id for portfolio 25501495 get sub ptf for main ptf 25501495, type 3726 and hashtags ['autre_refus', 'Teint_Dans_La_Masse', 'mal_croppe', 'metal', 'kraft', 'Carton_brun', 'flou', 'Carton_gris', 'cartonnette', 'environnement', 'plastique', 'papier'] 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`=25501495 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','mal_croppe','metal','kraft','Carton_brun','flou','Carton_gris','cartonnette','environnement','plastique','papier')) 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`=25501495 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','mal_croppe','metal','kraft','Carton_brun','flou','Carton_gris','cartonnette','environnement','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25501495, 'sub_port_id': 25501521, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197708, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'plastique': {'main_port_id': 25501495, 'sub_port_id': 25501522, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197709, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'metal': {'main_port_id': 25501495, 'sub_port_id': 25501523, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197710, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'Carton_brun': {'main_port_id': 25501495, 'sub_port_id': 25501524, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197711, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'autre_refus': {'main_port_id': 25501495, 'sub_port_id': 25501525, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197712, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'Carton_gris': {'main_port_id': 25501495, 'sub_port_id': 25501526, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197713, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'mal_croppe': {'main_port_id': 25501495, 'sub_port_id': 25501527, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197714, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'flou': {'main_port_id': 25501495, 'sub_port_id': 25501528, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197715, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'papier': {'main_port_id': 25501495, 'sub_port_id': 25501529, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197716, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'kraft': {'main_port_id': 25501495, 'sub_port_id': 25501530, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197717, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'environnement': {'main_port_id': 25501495, 'sub_port_id': 25501531, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197718, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}, 'cartonnette': {'main_port_id': 25501495, 'sub_port_id': 25501532, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197719, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25501521 , 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=25501495 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 (25501521) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501522 , 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=25501495 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 (25501522) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501523 , 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=25501495 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 (25501523) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501524 , 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=25501495 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 (25501524) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501525 , 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=25501495 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 (25501525) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501526 , 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=25501495 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 (25501526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501527 , 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=25501495 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 (25501527) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501528 , 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=25501495 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 (25501528) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501529 , 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=25501495 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 (25501529) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501530 , 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=25501495 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 (25501530) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501531 , 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=25501495 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 (25501531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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 25501532 , 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=25501495 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 (25501532) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25501495) result : ((1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) 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`=25501495 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','mal_croppe','metal','kraft','Carton_brun','flou','Carton_gris','cartonnette','environnement','plastique','papier')) 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`=25501495 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','mal_croppe','metal','kraft','Carton_brun','flou','Carton_gris','cartonnette','environnement','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25501495, 'sub_port_id': 25501533, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197720, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'plastique': {'main_port_id': 25501495, 'sub_port_id': 25501534, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197721, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'metal': {'main_port_id': 25501495, 'sub_port_id': 25501535, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197722, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'Carton_brun': {'main_port_id': 25501495, 'sub_port_id': 25501536, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197723, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'autre_refus': {'main_port_id': 25501495, 'sub_port_id': 25501537, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197724, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'Carton_gris': {'main_port_id': 25501495, 'sub_port_id': 25501538, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197725, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'mal_croppe': {'main_port_id': 25501495, 'sub_port_id': 25501539, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197726, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'flou': {'main_port_id': 25501495, 'sub_port_id': 25501540, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197727, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'papier': {'main_port_id': 25501495, 'sub_port_id': 25501541, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197728, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'kraft': {'main_port_id': 25501495, 'sub_port_id': 25501542, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197729, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'environnement': {'main_port_id': 25501495, 'sub_port_id': 25501543, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197730, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}, 'cartonnette': {'main_port_id': 25501495, 'sub_port_id': 25501544, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17197731, 'last_updated_at': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 13, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 13, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501533,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501534,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501535,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501526 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501527 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25501544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25501532 lien utilise dans velours : https://www.fotonower.com/velours/25501533,25501534,25501535,25501536,25501537,25501538,25501539,25501540,25501541,25501542,25501543,25501544?tags=Teint_Dans_La_Masse,plastique,metal,Carton_brun,autre_refus,Carton_gris,mal_croppe,flou,papier,kraft,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25501495]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] map_info['map_portfolio_photo'] : {25501495: [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715, 1374451563, 1374451560, 1374451558, 1374451556, 1374451554, 1374451550, 1374451498, 1374451495, 1374451490, 1374451489, 1374451485, 1374451480, 1374451332, 1374451330, 1374451328, 1374451324, 1374451318, 1374451285]} final : False mtd_id 4302 list_pids : [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] Looping around the photos to save general results len do output : 1 /25501495. 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, '3398361') ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25501495', "{'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532}", None, None, None, None, '3398361'), ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361')] time used for this insertion : 0.015830516815185547 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5098423957824707 time spend to save output : 0.01619243621826172 total time spend for step 1 : 1.5260348320007324 step2:final Wed Jul 30 13:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (25501495) 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 25501495 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374451332,1374451330,1374451328,1374451324,1374451318,1374451285,1374451498,1374451495,1374451490,1374451489,1374451485,1374451480,1374451563,1374451560,1374451558,1374451556,1374451554,1374451550,1374451715,1374451890,1374451864,1374451840,1374451818,1374451815,1374451812); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25501495]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} new output for save of step final : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] map_info['map_portfolio_photo'] : {25501495: [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715, 1374451563, 1374451560, 1374451558, 1374451556, 1374451554, 1374451550, 1374451498, 1374451495, 1374451490, 1374451489, 1374451485, 1374451480, 1374451332, 1374451330, 1374451328, 1374451324, 1374451318, 1374451285]} final : False mtd_id 4302 list_pids : [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] Looping around the photos to save general results len do output : 7 /1374451890.Didn't retrieve data . /1374451864.Didn't retrieve data . /1374451840.Didn't retrieve data . /1374451818.Didn't retrieve data . /1374451815.Didn't retrieve data . /1374451812.Didn't retrieve data . /1374451715.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, '3398361') ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '25501495', '1374451890', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451864', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451840', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451818', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451815', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451812', '0.0', None, None, None, None, '3398361'), ('4302', '25501495', '1374451715', '0.0', None, None, None, None, '3398361')] time used for this insertion : 0.016903162002563477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05236196517944336 time spend to save output : 0.01736736297607422 total time spend for step 2 : 0.06972932815551758 step3:velours_tree Wed Jul 30 13:20:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25501495: [{'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532}]} input_args_next_step : {25501495: ()} output_args : {25501495: [{'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532}]} args : 25501495 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 : ({'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25501495) 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([25501495]) 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.31763172149658203 time spend to save output : 4.267692565917969e-05 total time spend for step 3 : 0.3176743984222412 step4:send_mail_cod Wed Jul 30 13:20:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} input_args_next_step : {1374451890: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451890 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451864 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451840 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451818 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451815 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451812 depend.output_id : 0 input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ()} output_args : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',)} args : 1374451715 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 : {25501495: [{'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532}]} input_args_next_step : {1374451890: ('0.0',), 1374451864: ('0.0',), 1374451840: ('0.0',), 1374451818: ('0.0',), 1374451815: ('0.0',), 1374451812: ('0.0',), 1374451715: ('0.0',), 25501495: ()} output_args : {25501495: [{'Teint_Dans_La_Masse': 25501521, 'plastique': 25501522, 'metal': 25501523, 'Carton_brun': 25501524, 'autre_refus': 25501525, 'Carton_gris': 25501526, 'mal_croppe': 25501527, 'flou': 25501528, 'papier': 25501529, 'kraft': 25501530, 'environnement': 25501531, 'cartonnette': 25501532}]} args : 25501495 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 :8, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25501495) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374451890,1374451864,1374451840,1374451818,1374451815,1374451812,1374451715) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374451715 begin to download photo : 1374451815 begin to download photo : 1374451840 begin to download photo : 1374451890 download finish for photo 1374451715 begin to download photo : 1374451812 download finish for photo 1374451840 begin to download photo : 1374451864 download finish for photo 1374451890 download finish for photo 1374451815 begin to download photo : 1374451818 download finish for photo 1374451812 download finish for photo 1374451864 download finish for photo 1374451818 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255015221753874459/ imagette255015231753874459/ imagette255015251753874459/ imagette255015271753874459/ imagette255015281753874459/ imagette255015301753874459/ imagette255015321753874459/ imagette255015211753874459/ imagette255015241753874459/ imagette255015261753874459/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P25501495_30-07-2025_13_20_59.pdf 25501522 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501522 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015221753874459 25501523 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015231753874459 25501525 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015251753874459 25501527 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501527 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015271753874459 25501528 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501528 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015281753874459 25501530 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015301753874459 25501532 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015321753874459 25501521 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501521 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015211753874459 25501524 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015241753874459 25501526 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501526 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255015261753874459 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25501495 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25501533,25501534,25501535,25501536,25501537,25501538,25501539,25501540,25501541,25501542,25501543,25501544?tags=Teint_Dans_La_Masse,plastique,metal,Carton_brun,autre_refus,Carton_gris,mal_croppe,flou,papier,kraft,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1374451890] : ('0.0',) no score found for photo 1374451890 We are sending mail with results at report@fotonower.com args[1374451864] : ('0.0',) no score found for photo 1374451864 We are sending mail with results at report@fotonower.com args[1374451840] : ('0.0',) no score found for photo 1374451840 We are sending mail with results at report@fotonower.com args[1374451818] : ('0.0',) no score found for photo 1374451818 We are sending mail with results at report@fotonower.com args[1374451815] : ('0.0',) no score found for photo 1374451815 We are sending mail with results at report@fotonower.com args[1374451812] : ('0.0',) no score found for photo 1374451812 We are sending mail with results at report@fotonower.com args[1374451715] : ('0.0',) no score found for photo 1374451715 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501495 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_P25501495_30-07-2025_13_20_59.pdf results_Auto_P25501495_30-07-2025_13_20_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25501495_30-07-2025_13_20_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25501495','results_Auto_P25501495_30-07-2025_13_20_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25501495_30-07-2025_13_20_59.pdf','pdf','','0.08','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25501495]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] map_info['map_portfolio_photo'] : {25501495: [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715, 1374451563, 1374451560, 1374451558, 1374451556, 1374451554, 1374451550, 1374451498, 1374451495, 1374451490, 1374451489, 1374451485, 1374451480, 1374451332, 1374451330, 1374451328, 1374451324, 1374451318, 1374451285]} final : False mtd_id 4302 list_pids : [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] 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, '3398361') ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '25501495', '1374451890', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361')] time used for this insertion : 0.012302637100219727 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4240896701812744 time spend to save output : 0.012540102005004883 total time spend for step 4 : 1.4366297721862793 step5:split_time_score Wed Jul 30 13:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25501495'] 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 : [('25501495',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25501495) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374451890: {'path': 'temp/1753874459_602809_1374451890_7d99f00ed9a28584209604dfc2955461.jpg', 'extension': 'jpg'}, 1374451715: {'path': 'temp/1753874459_602809_1374451715_006497ff4310c582e214974ad7170354.jpg', 'extension': 'jpg'}, 1374451812: {'path': 'temp/1753874459_602809_1374451812_107817a426cc3f06dba33480b955adcc.jpg', 'extension': 'jpg'}, 1374451840: {'path': 'temp/1753874459_602809_1374451840_b61ea4702566527c6910e117d71fedeb.jpg', 'extension': 'jpg'}, 1374451864: {'path': 'temp/1753874459_602809_1374451864_27a2c2bbe28601a5639f4a68151834a6.jpg', 'extension': 'jpg'}, 1374451815: {'path': 'temp/1753874459_602809_1374451815_7ddfbdeed0c56db5132d0b9205398903.jpg', 'extension': 'jpg'}, 1374451818: {'path': 'temp/1753874459_602809_1374451818_13b9863365ccf3ed578fc6443704f391.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 = 25501495; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25501495 group by h (('13', 25),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25501495 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 (25501495) 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 (25501495) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30072025 25501495 Nombre de photos uploadées : 25 / 23040 (0%) 30072025 25501495 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 30072025 25501495 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1374451332, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/d64cd1b4dfcfe06a9206f216edc0d584.jpg', 'username': None, 'uploaded_at': 1753874162, 'text': 'image_30072025_13_15_04_10145.jpg'}, {'photo_id': 1374451330, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/28e006fc0d8a85f6cd647a9901668549.jpg', 'username': None, 'uploaded_at': 1753874162, 'text': 'image_30072025_13_15_14_10138.jpg'}, {'photo_id': 1374451328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/129fa4e6ec14c5d1c213f3d7f9cb1df6.jpg', 'username': None, 'uploaded_at': 1753874162, 'text': 'image_30072025_13_15_24_10134.jpg'}, {'photo_id': 1374451324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a9b8a366bd50d758e0a50f0819f4a840.jpg', 'username': None, 'uploaded_at': 1753874162, 'text': 'image_30072025_13_15_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012657642364501953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25501495, '2025-07-30' ) 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-07-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2027315,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20840072631835938 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= 2027315 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25479976, 'dashboard_result_id': 13361202, '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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25480144, 'dashboard_result_id': 13361203, '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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25480540, 'dashboard_result_id': 13361204, '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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25480974, 'dashboard_result_id': 13361205, '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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25481445, 'dashboard_result_id': 13361206, '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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25482072, 'dashboard_result_id': 13361207, '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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25482427, 'dashboard_result_id': 13361208, '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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25482774, 'dashboard_result_id': 13361209, '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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25483286, 'dashboard_result_id': 13361210, '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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25483646, 'dashboard_result_id': 13361211, '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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25483956, 'dashboard_result_id': 13361212, '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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25484328, 'dashboard_result_id': 13361213, '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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25484572, 'dashboard_result_id': 13361214, '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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25485118, 'dashboard_result_id': 13361215, '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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25485550, 'dashboard_result_id': 13361216, '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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25485885, 'dashboard_result_id': 13361217, '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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25486150, 'dashboard_result_id': 13361218, '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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25486575, 'dashboard_result_id': 13361219, '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_P25486575_30-07-2025_11_31_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25486903, 'dashboard_result_id': 13361220, '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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25487222, 'dashboard_result_id': 13361221, '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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25487542, 'dashboard_result_id': 13361222, '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_P25487542_30-07-2025_11_31_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25488105, 'dashboard_result_id': 13361223, '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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25488405, 'dashboard_result_id': 13361224, '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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25488777, 'dashboard_result_id': 13361225, '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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25489181, 'dashboard_result_id': 13361227, '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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25489527, 'dashboard_result_id': 13361228, '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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25489884, 'dashboard_result_id': 13361229, '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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25490190, 'dashboard_result_id': 13361230, '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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25490549, 'dashboard_result_id': 13361231, '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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25490989, 'dashboard_result_id': 13361232, '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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25491261, 'dashboard_result_id': 13361233, '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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25491582, 'dashboard_result_id': 13361234, '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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25491851, 'dashboard_result_id': 13361235, '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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25492444, 'dashboard_result_id': 13361236, '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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25492753, 'dashboard_result_id': 13361237, '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_P25492753_30-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25493139, 'dashboard_result_id': 13361238, '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_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25493772, 'dashboard_result_id': 13361239, '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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25494415, 'dashboard_result_id': 13361240, '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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25494860, 'dashboard_result_id': 13361241, '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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25495225, 'dashboard_result_id': 13361242, '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_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25495527, 'dashboard_result_id': 13361243, '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_P25495527_30-07-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25496084, 'dashboard_result_id': 13361244, '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_P25496084_30-07-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496107, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25496492, 'dashboard_result_id': 13361245, '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_P25496492_30-07-2025_11_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496512, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25497074, 'dashboard_result_id': 13361246, '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_P25497074_30-07-2025_11_03_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497092, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25497600, 'dashboard_result_id': 13361247, '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_P25497600_30-07-2025_11_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497635, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25498050, 'dashboard_result_id': 13361248, '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_P25498050_30-07-2025_11_32_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25498088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498096, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25498466, 'dashboard_result_id': 13361249, '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_P25498466_30-07-2025_11_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498485, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25498913, 'dashboard_result_id': 13361250, '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_P25498913_30-07-2025_12_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498925, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25499245, 'dashboard_result_id': 13361251, '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_P25499245_30-07-2025_12_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499261, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25499748, 'dashboard_result_id': 13361252, '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_P25499748_30-07-2025_12_31_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499764, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25500085, 'dashboard_result_id': 13361253, '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_P25500085_30-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500101, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25500588, 'dashboard_result_id': 13361255, '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_P25500588_30-07-2025_13_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500633, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25501121, 'dashboard_result_id': 13361256, '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_P25501121_30-07-2025_13_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25501126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25501127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25501128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25501129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25501130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25501131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25501132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25501133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25501134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25501135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25501136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25501137, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2038883, 'mtr_portfolio_id': 25501495, 'dashboard_result_id': 13361257, '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_P25501495_30-07-2025_13_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25501521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25501522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25501523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25501524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25501525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25501526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25501527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25501528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25501529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25501530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25501531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25501532, '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 = 25479976 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': 3394534, 'mtr_portfolio_id': 25479976, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 40), 'result': '0.03451935459707663', 'result_long': None, 'result_double': None}] Qualite : 0.03451935459707663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25479976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25479976 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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}" where mtr_portfolio_id = 25479976 and dashboard_run_id = 2038883 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`=25479976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361202, 0.03451935459707663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 = 25480144 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': 3394535, 'mtr_portfolio_id': 25480144, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 56), 'result': '0.03664504757201986', 'result_long': None, 'result_double': None}] Qualite : 0.03664504757201986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480144 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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}" where mtr_portfolio_id = 25480144 and dashboard_run_id = 2038883 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`=25480144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361203, 0.03664504757201986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, '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 = 25480540 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': 3394536, 'mtr_portfolio_id': 25480540, 'created_at': datetime.datetime(2025, 7, 30, 6, 36, 30), 'result': '0.03073406846853507', 'result_long': None, 'result_double': None}] Qualite : 0.03073406846853507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480540 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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}" where mtr_portfolio_id = 25480540 and dashboard_run_id = 2038883 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`=25480540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361204, 0.03073406846853507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, '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 = 25480974 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': 3394537, 'mtr_portfolio_id': 25480974, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 29), 'result': '0.03237570023229501', 'result_long': None, 'result_double': None}] Qualite : 0.03237570023229501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480974 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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}" where mtr_portfolio_id = 25480974 and dashboard_run_id = 2038883 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`=25480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361205, 0.03237570023229501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, '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 = 25481445 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': 3394538, 'mtr_portfolio_id': 25481445, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 58), 'result': '0.02869571822244944', 'result_long': None, 'result_double': None}] Qualite : 0.02869571822244944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25481445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25481445 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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}" where mtr_portfolio_id = 25481445 and dashboard_run_id = 2038883 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`=25481445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361206, 0.02869571822244944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, '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 = 25482072 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': 3394539, 'mtr_portfolio_id': 25482072, 'created_at': datetime.datetime(2025, 7, 30, 6, 38, 31), 'result': '0.02461677058410563', 'result_long': None, 'result_double': None}] Qualite : 0.02461677058410563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482072 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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}" where mtr_portfolio_id = 25482072 and dashboard_run_id = 2038883 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`=25482072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361207, 0.02461677058410563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, '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 = 25482427 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': 3394540, 'mtr_portfolio_id': 25482427, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 27), 'result': '0.027443203188583346', 'result_long': None, 'result_double': None}] Qualite : 0.027443203188583346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482427 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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}" where mtr_portfolio_id = 25482427 and dashboard_run_id = 2038883 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`=25482427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361208, 0.027443203188583346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, '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 = 25482774 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': 3394541, 'mtr_portfolio_id': 25482774, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 58), 'result': '0.035568930806638456', 'result_long': None, 'result_double': None}] Qualite : 0.035568930806638456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482774 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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}" where mtr_portfolio_id = 25482774 and dashboard_run_id = 2038883 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`=25482774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361209, 0.035568930806638456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, '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 = 25483286 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': 3394542, 'mtr_portfolio_id': 25483286, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 30), 'result': '0.06036606587230913', 'result_long': None, 'result_double': None}] Qualite : 0.06036606587230913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483286 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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}" where mtr_portfolio_id = 25483286 and dashboard_run_id = 2038883 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`=25483286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361210, 0.06036606587230913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, '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 = 25483646 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': 3394543, 'mtr_portfolio_id': 25483646, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 37), 'result': '0.0673795810394603', 'result_long': None, 'result_double': None}] Qualite : 0.0673795810394603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483646 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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}" where mtr_portfolio_id = 25483646 and dashboard_run_id = 2038883 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`=25483646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361211, 0.0673795810394603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, '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 = 25483956 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': 3394544, 'mtr_portfolio_id': 25483956, 'created_at': datetime.datetime(2025, 7, 30, 6, 41, 32), 'result': '0.041671998847643325', 'result_long': None, 'result_double': None}] Qualite : 0.041671998847643325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483956 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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}" where mtr_portfolio_id = 25483956 and dashboard_run_id = 2038883 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`=25483956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361212, 0.041671998847643325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, '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 = 25484328 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': 3394545, 'mtr_portfolio_id': 25484328, 'created_at': datetime.datetime(2025, 7, 30, 6, 42), 'result': '0.04847739858172795', 'result_long': None, 'result_double': None}] Qualite : 0.04847739858172795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484328 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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}" where mtr_portfolio_id = 25484328 and dashboard_run_id = 2038883 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`=25484328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361213, 0.04847739858172795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, '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 = 25484572 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': 3394546, 'mtr_portfolio_id': 25484572, 'created_at': datetime.datetime(2025, 7, 30, 6, 42, 28), 'result': '0.026403362924540007', 'result_long': None, 'result_double': None}] Qualite : 0.026403362924540007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484572 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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}" where mtr_portfolio_id = 25484572 and dashboard_run_id = 2038883 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`=25484572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361214, 0.026403362924540007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, '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 = 25485118 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': 3394547, 'mtr_portfolio_id': 25485118, 'created_at': datetime.datetime(2025, 7, 30, 6, 43, 27), 'result': '0.04199806887953368', 'result_long': None, 'result_double': None}] Qualite : 0.04199806887953368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485118 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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}" where mtr_portfolio_id = 25485118 and dashboard_run_id = 2038883 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`=25485118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361215, 0.04199806887953368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, '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 = 25485550 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': 3394548, 'mtr_portfolio_id': 25485550, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 1), 'result': '0.00940761595292549', 'result_long': None, 'result_double': None}] Qualite : 0.00940761595292549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485550 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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}" where mtr_portfolio_id = 25485550 and dashboard_run_id = 2038883 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`=25485550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361216, 0.00940761595292549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, '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 = 25485885 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': 3394549, 'mtr_portfolio_id': 25485885, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 27), 'result': '0.0737239971511342', 'result_long': None, 'result_double': None}] Qualite : 0.0737239971511342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485885 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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}" where mtr_portfolio_id = 25485885 and dashboard_run_id = 2038883 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`=25485885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361217, 0.0737239971511342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, '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 = 25486150 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': 3394550, 'mtr_portfolio_id': 25486150, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 27), 'result': '0.06050800799818245', 'result_long': None, 'result_double': None}] Qualite : 0.06050800799818245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486150 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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}" where mtr_portfolio_id = 25486150 and dashboard_run_id = 2038883 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`=25486150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361218, 0.06050800799818245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, '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 = 25486575 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': 3394551, 'mtr_portfolio_id': 25486575, 'created_at': datetime.datetime(2025, 7, 30, 11, 31, 28), 'result': '0.01992595296241453', 'result_long': None, 'result_double': None}] Qualite : 0.01992595296241453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_11_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486575 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_P25486575_30-07-2025_11_31_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}" where mtr_portfolio_id = 25486575 and dashboard_run_id = 2038883 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`=25486575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361219, 0.01992595296241453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_11_31_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, '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 = 25486903 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': 3394552, 'mtr_portfolio_id': 25486903, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 57), 'result': '0.02937322358798463', 'result_long': None, 'result_double': None}] Qualite : 0.02937322358798463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486903 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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}" where mtr_portfolio_id = 25486903 and dashboard_run_id = 2038883 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`=25486903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361220, 0.02937322358798463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, '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 = 25487222 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': 3394553, 'mtr_portfolio_id': 25487222, 'created_at': datetime.datetime(2025, 7, 30, 6, 46, 31), 'result': '0.1079298888596298', 'result_long': None, 'result_double': None}] Qualite : 0.1079298888596298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487222 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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}" where mtr_portfolio_id = 25487222 and dashboard_run_id = 2038883 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`=25487222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361221, 0.1079298888596298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, '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 = 25487542 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': 3394554, 'mtr_portfolio_id': 25487542, 'created_at': datetime.datetime(2025, 7, 30, 11, 31, 58), 'result': '0.04919211086913888', 'result_long': None, 'result_double': None}] Qualite : 0.04919211086913888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_11_31_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487542 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_P25487542_30-07-2025_11_31_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}" where mtr_portfolio_id = 25487542 and dashboard_run_id = 2038883 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`=25487542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361222, 0.04919211086913888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_11_31_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, '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 = 25488105 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': 3394555, 'mtr_portfolio_id': 25488105, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 59), 'result': '0.049854037341182884', 'result_long': None, 'result_double': None}] Qualite : 0.049854037341182884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488105 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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}" where mtr_portfolio_id = 25488105 and dashboard_run_id = 2038883 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`=25488105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361223, 0.049854037341182884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, '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 = 25488405 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': 3394434, 'mtr_portfolio_id': 25488405, 'created_at': datetime.datetime(2025, 7, 30, 5, 47), 'result': '0.04376102654571132', 'result_long': None, 'result_double': None}] Qualite : 0.04376102654571132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488405 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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}" where mtr_portfolio_id = 25488405 and dashboard_run_id = 2038883 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`=25488405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361224, 0.04376102654571132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, '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 = 25488777 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': 3394652, 'mtr_portfolio_id': 25488777, 'created_at': datetime.datetime(2025, 7, 30, 6, 2, 58), 'result': '0.04996696609710109', 'result_long': None, 'result_double': None}] Qualite : 0.04996696609710109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488777 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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}" where mtr_portfolio_id = 25488777 and dashboard_run_id = 2038883 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`=25488777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361225, 0.04996696609710109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, '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 = 25489181 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': 3394753, 'mtr_portfolio_id': 25489181, 'created_at': datetime.datetime(2025, 7, 30, 6, 17, 34), 'result': '0.049704741373645785', 'result_long': None, 'result_double': None}] Qualite : 0.049704741373645785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489181 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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}" where mtr_portfolio_id = 25489181 and dashboard_run_id = 2038883 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`=25489181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361227, 0.049704741373645785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, '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 = 25489527 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': 3394819, 'mtr_portfolio_id': 25489527, 'created_at': datetime.datetime(2025, 7, 30, 6, 33, 29), 'result': '0.05408252116947864', 'result_long': None, 'result_double': None}] Qualite : 0.05408252116947864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489527 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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}" where mtr_portfolio_id = 25489527 and dashboard_run_id = 2038883 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`=25489527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361228, 0.05408252116947864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, '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 = 25489884 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': 3394893, 'mtr_portfolio_id': 25489884, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 27), 'result': '0.05810583847315051', 'result_long': None, 'result_double': None}] Qualite : 0.05810583847315051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489884 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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}" where mtr_portfolio_id = 25489884 and dashboard_run_id = 2038883 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`=25489884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361229, 0.05810583847315051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, '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 = 25490190 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': 3394963, 'mtr_portfolio_id': 25490190, 'created_at': datetime.datetime(2025, 7, 30, 7, 1, 1), 'result': '0.047138625556918015', 'result_long': None, 'result_double': None}] Qualite : 0.047138625556918015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490190 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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}" where mtr_portfolio_id = 25490190 and dashboard_run_id = 2038883 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`=25490190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361230, 0.047138625556918015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, '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 = 25490549 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': 3395061, 'mtr_portfolio_id': 25490549, 'created_at': datetime.datetime(2025, 7, 30, 7, 19), 'result': '0.03174586237778476', 'result_long': None, 'result_double': None}] Qualite : 0.03174586237778476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490549 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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}" where mtr_portfolio_id = 25490549 and dashboard_run_id = 2038883 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`=25490549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361231, 0.03174586237778476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, '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 = 25490989 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': 3395159, 'mtr_portfolio_id': 25490989, 'created_at': datetime.datetime(2025, 7, 30, 7, 30, 57), 'result': '0.09657178697817131', 'result_long': None, 'result_double': None}] Qualite : 0.09657178697817131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490989 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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}" where mtr_portfolio_id = 25490989 and dashboard_run_id = 2038883 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`=25490989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361232, 0.09657178697817131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, '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 = 25491261 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': 3395235, 'mtr_portfolio_id': 25491261, 'created_at': datetime.datetime(2025, 7, 30, 7, 46, 59), 'result': '0.033857557928719716', 'result_long': None, 'result_double': None}] Qualite : 0.033857557928719716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491261 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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}" where mtr_portfolio_id = 25491261 and dashboard_run_id = 2038883 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`=25491261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361233, 0.033857557928719716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, '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 = 25491582 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': 3395334, 'mtr_portfolio_id': 25491582, 'created_at': datetime.datetime(2025, 7, 30, 8, 2, 58), 'result': '0.04469105505580487', 'result_long': None, 'result_double': None}] Qualite : 0.04469105505580487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491582 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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}" where mtr_portfolio_id = 25491582 and dashboard_run_id = 2038883 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`=25491582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361234, 0.04469105505580487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, '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 = 25491851 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': 3395436, 'mtr_portfolio_id': 25491851, 'created_at': datetime.datetime(2025, 7, 30, 8, 16, 31), 'result': '0.053902655910142094', 'result_long': None, 'result_double': None}] Qualite : 0.053902655910142094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491851 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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}" where mtr_portfolio_id = 25491851 and dashboard_run_id = 2038883 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`=25491851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361235, 0.053902655910142094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, '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 = 25492444 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': 3395547, 'mtr_portfolio_id': 25492444, 'created_at': datetime.datetime(2025, 7, 30, 8, 32, 59), 'result': '0.05356137486829114', 'result_long': None, 'result_double': None}] Qualite : 0.05356137486829114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492444 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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}" where mtr_portfolio_id = 25492444 and dashboard_run_id = 2038883 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`=25492444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361236, 0.05356137486829114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, '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 = 25492753 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': 3395652, 'mtr_portfolio_id': 25492753, 'created_at': datetime.datetime(2025, 7, 30, 11, 30, 59), 'result': '0.04589044448302215', 'result_long': None, 'result_double': None}] Qualite : 0.04589044448302215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_11_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492753 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_P25492753_30-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}" where mtr_portfolio_id = 25492753 and dashboard_run_id = 2038883 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`=25492753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361237, 0.04589044448302215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, '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 = 25493139 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': 3395793, 'mtr_portfolio_id': 25493139, 'created_at': datetime.datetime(2025, 7, 30, 9, 0, 56), 'result': '0.07371516384188316', 'result_long': None, 'result_double': None}] Qualite : 0.07371516384188316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493139 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_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}" where mtr_portfolio_id = 25493139 and dashboard_run_id = 2038883 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`=25493139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361238, 0.07371516384188316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, '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 = 25493772 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': 3395952, 'mtr_portfolio_id': 25493772, 'created_at': datetime.datetime(2025, 7, 30, 9, 16, 30), 'result': '0.03456542358178976', 'result_long': None, 'result_double': None}] Qualite : 0.03456542358178976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493772 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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}" where mtr_portfolio_id = 25493772 and dashboard_run_id = 2038883 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`=25493772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361239, 0.03456542358178976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, '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 = 25494415 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': 3396058, 'mtr_portfolio_id': 25494415, 'created_at': datetime.datetime(2025, 7, 30, 9, 32, 58), 'result': '0.05836133942362286', 'result_long': None, 'result_double': None}] Qualite : 0.05836133942362286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494415 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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}" where mtr_portfolio_id = 25494415 and dashboard_run_id = 2038883 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`=25494415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361240, 0.05836133942362286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, '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 = 25494860 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': 3396165, 'mtr_portfolio_id': 25494860, 'created_at': datetime.datetime(2025, 7, 30, 9, 46, 58), 'result': '0.07321217713720464', 'result_long': None, 'result_double': None}] Qualite : 0.07321217713720464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494860 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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}" where mtr_portfolio_id = 25494860 and dashboard_run_id = 2038883 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`=25494860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361241, 0.07321217713720464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, '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 = 25495225 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': 3396278, 'mtr_portfolio_id': 25495225, 'created_at': datetime.datetime(2025, 7, 30, 10, 0, 58), 'result': '0.04148593058404206', 'result_long': None, 'result_double': None}] Qualite : 0.04148593058404206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25495225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_10_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25495225 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_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, 'pht': 3726}}" where mtr_portfolio_id = 25495225 and dashboard_run_id = 2038883 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`=25495225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361242, 0.04148593058404206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, '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 = 25495527 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': 3396384, 'mtr_portfolio_id': 25495527, 'created_at': datetime.datetime(2025, 7, 30, 10, 16, 59), 'result': '0.06516936520983498', 'result_long': None, 'result_double': None}] Qualite : 0.06516936520983498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25495527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25495527 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_P25495527_30-07-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, 'pht': 3726}}" where mtr_portfolio_id = 25495527 and dashboard_run_id = 2038883 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`=25495527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361243, 0.06516936520983498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, '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 = 25496084 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': 3396548, 'mtr_portfolio_id': 25496084, 'created_at': datetime.datetime(2025, 7, 30, 11, 2, 59), 'result': '0.06977001751913846', 'result_long': None, 'result_double': None}] Qualite : 0.06977001751913846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25496084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25496084_30-07-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25496084 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_P25496084_30-07-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496107, 'pht': 3726}}" where mtr_portfolio_id = 25496084 and dashboard_run_id = 2038883 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`=25496084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361244, 0.06977001751913846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25496084_30-07-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496107, '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 = 25496492 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': 3396767, 'mtr_portfolio_id': 25496492, 'created_at': datetime.datetime(2025, 7, 30, 11, 3, 30), 'result': '0.048421915038506715', 'result_long': None, 'result_double': None}] Qualite : 0.048421915038506715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25496492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25496492_30-07-2025_11_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25496492 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_P25496492_30-07-2025_11_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496512, 'pht': 3726}}" where mtr_portfolio_id = 25496492 and dashboard_run_id = 2038883 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`=25496492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361245, 0.048421915038506715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25496492_30-07-2025_11_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25496501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25496502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25496503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25496504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25496505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25496506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25496507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25496508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25496509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25496510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25496511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25496512, '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 = 25497074 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': 3396987, 'mtr_portfolio_id': 25497074, 'created_at': datetime.datetime(2025, 7, 30, 11, 3, 56), 'result': '0.015134571150964296', 'result_long': None, 'result_double': None}] Qualite : 0.015134571150964296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25497074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25497074_30-07-2025_11_03_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25497074 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_P25497074_30-07-2025_11_03_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497092, 'pht': 3726}}" where mtr_portfolio_id = 25497074 and dashboard_run_id = 2038883 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`=25497074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361246, 0.015134571150964296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25497074_30-07-2025_11_03_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497092, '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 = 25497600 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': 3397220, 'mtr_portfolio_id': 25497600, 'created_at': datetime.datetime(2025, 7, 30, 11, 16, 58), 'result': '0.03171160258613163', 'result_long': None, 'result_double': None}] Qualite : 0.03171160258613163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25497600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25497600_30-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25497600 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_P25497600_30-07-2025_11_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497635, 'pht': 3726}}" where mtr_portfolio_id = 25497600 and dashboard_run_id = 2038883 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`=25497600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361247, 0.03171160258613163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25497600_30-07-2025_11_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25497624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25497625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25497626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25497627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25497628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25497629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25497630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25497631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25497632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25497633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25497634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25497635, '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 = 25498050 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': 3397379, 'mtr_portfolio_id': 25498050, 'created_at': datetime.datetime(2025, 7, 30, 11, 32, 30), 'result': '0.03360377329474562', 'result_long': None, 'result_double': None}] Qualite : 0.03360377329474562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25498050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498050_30-07-2025_11_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25498050 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_P25498050_30-07-2025_11_32_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25498088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498096, 'pht': 3726}}" where mtr_portfolio_id = 25498050 and dashboard_run_id = 2038883 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`=25498050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361248, 0.03360377329474562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498050_30-07-2025_11_32_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25498088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498096, '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 = 25498466 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': 3397515, 'mtr_portfolio_id': 25498466, 'created_at': datetime.datetime(2025, 7, 30, 11, 46, 29), 'result': '0.03523990621615156', 'result_long': None, 'result_double': None}] Qualite : 0.03523990621615156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25498466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498466_30-07-2025_11_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25498466 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_P25498466_30-07-2025_11_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498485, 'pht': 3726}}" where mtr_portfolio_id = 25498466 and dashboard_run_id = 2038883 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`=25498466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361249, 0.03523990621615156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498466_30-07-2025_11_46_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498485, '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 = 25498913 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': 3397652, 'mtr_portfolio_id': 25498913, 'created_at': datetime.datetime(2025, 7, 30, 12, 1, 1), 'result': '0.042275737058661805', 'result_long': None, 'result_double': None}] Qualite : 0.042275737058661805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25498913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498913_30-07-2025_12_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25498913 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_P25498913_30-07-2025_12_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498925, 'pht': 3726}}" where mtr_portfolio_id = 25498913 and dashboard_run_id = 2038883 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`=25498913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361250, 0.042275737058661805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25498913_30-07-2025_12_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25498914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25498915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25498916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25498917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25498918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25498919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25498920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25498921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25498922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25498923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25498924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25498925, '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 = 25499245 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': 3397757, 'mtr_portfolio_id': 25499245, 'created_at': datetime.datetime(2025, 7, 30, 12, 16, 58), 'result': '0.034357857430100704', 'result_long': None, 'result_double': None}] Qualite : 0.034357857430100704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25499245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25499245_30-07-2025_12_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25499245 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_P25499245_30-07-2025_12_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499261, 'pht': 3726}}" where mtr_portfolio_id = 25499245 and dashboard_run_id = 2038883 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`=25499245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361251, 0.034357857430100704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25499245_30-07-2025_12_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499261, '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 = 25499748 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': 3397898, 'mtr_portfolio_id': 25499748, 'created_at': datetime.datetime(2025, 7, 30, 12, 30, 59), 'result': '0.03142537949544822', 'result_long': None, 'result_double': None}] Qualite : 0.03142537949544822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25499748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25499748_30-07-2025_12_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25499748 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_P25499748_30-07-2025_12_31_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499764, 'pht': 3726}}" where mtr_portfolio_id = 25499748 and dashboard_run_id = 2038883 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`=25499748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361252, 0.03142537949544822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25499748_30-07-2025_12_31_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25499753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25499754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25499755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25499756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25499757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25499758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25499759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25499760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25499761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25499762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25499763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25499764, '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 = 25500085 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': 3397993, 'mtr_portfolio_id': 25500085, 'created_at': datetime.datetime(2025, 7, 30, 12, 46, 59), 'result': '0.01831898389440001', 'result_long': None, 'result_double': None}] Qualite : 0.01831898389440001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25500085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25500085_30-07-2025_12_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25500085 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_P25500085_30-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500101, 'pht': 3726}}" where mtr_portfolio_id = 25500085 and dashboard_run_id = 2038885 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`=25500085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361253, 0.01831898389440001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25500085_30-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500101, '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 = 25500588 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': 3398109, 'mtr_portfolio_id': 25500588, 'created_at': datetime.datetime(2025, 7, 30, 13, 2, 58), 'result': '0.005652152101560773', 'result_long': None, 'result_double': None}] Qualite : 0.005652152101560773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25500588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25500588_30-07-2025_13_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25500588 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_P25500588_30-07-2025_13_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500633, 'pht': 3726}}" where mtr_portfolio_id = 25500588 and dashboard_run_id = 2038885 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`=25500588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361255, 0.005652152101560773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25500588_30-07-2025_13_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25500622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25500623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25500624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25500625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25500626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25500627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25500628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25500629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25500630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25500631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25500632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25500633, '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 = 25501121 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': 3398275, 'mtr_portfolio_id': 25501121, 'created_at': datetime.datetime(2025, 7, 30, 13, 17), 'result': '0.04140592798218252', 'result_long': None, 'result_double': None}] Qualite : 0.04140592798218252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25501121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25501121_30-07-2025_13_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25501121 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_P25501121_30-07-2025_13_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25501126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25501127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25501128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25501129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25501130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25501131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25501132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25501133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25501134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25501135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25501136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25501137, 'pht': 3726}}" where mtr_portfolio_id = 25501121 and dashboard_run_id = 2038885 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`=25501121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13361256, 0.04140592798218252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25501121_30-07-2025_13_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25501126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25501127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25501128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25501129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25501130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25501131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25501132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25501133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25501134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25501135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25501136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25501137, '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 = 25501495 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25501495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25501495 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25501495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25501495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25501495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25501495_30-07-2025_13_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25501495 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_P25501495_30-07-2025_13_20_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25501521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25501522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25501523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25501524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25501525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25501526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25501527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25501528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25501529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25501530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25501531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25501532, 'pht': 3726}}" where mtr_portfolio_id = 25501495 and dashboard_run_id = 2038885 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25479976,25480144,25480540,25480974,25481445,25482072,25482427,25482774,25483286,25483646,25483956,25484328,25484572,25485118,25485550,25485885,25486150,25486575,25486903,25487222,25487542,25488105,25488405,25488777,25489181,25489527,25489884,25490190,25490549,25490989,25491261,25491582,25491851,25492444,25492753,25493139,25493772,25494415,25494860,25495225,25495527,25496084,25496492,25497074,25497600,25498050,25498466,25498913,25499245,25499748,25500085,25500588,25501121,25501495) result : ((1374372764,), (1374372795,), (1374372823,), (1374372841,), (1374372865,), (1374373025,), (1374373026,), (1374373027,), (1374373028,), (1374373029,), (1374373031,), (1374373050,), (1374373051,), (1374373052,), (1374373053,), (1374373055,), (1374373057,), (1374373069,), (1374373070,), (1374373071,), (1374373072,), (1374373073,), (1374373075,), (1374373102,), (1374373108,), (1374373109,), (1374373110,), (1374373112,), (1374373114,), (1374373138,), (1374373140,), (1374373142,), (1374373145,), (1374373149,), (1374373151,), (1374373154,), (1374373156,), (1374373157,), (1374373158,), (1374373159,), (1374373162,), (1374373166,), (1374373176,), (1374373177,), (1374373178,), (1374373179,), (1374373181,), (1374373182,), (1374373221,), (1374373240,), (1374373241,), (1374373243,), (1374373245,), (1374373248,), (1374373252,), (1374373332,), (1374373334,), (1374373335,), (1374373350,), (1374373364,), (1374373366,), (1374373391,), (1374373397,), (1374373403,), (1374373404,), (1374373405,), (1374373408,), (1374373417,), (1374373418,), (1374373419,), (1374373420,), (1374373422,), (1374373424,), (1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,), (1374373693,), (1374373694,), (1374373695,), (1374373696,), (1374373698,), (1374373700,), (1374373710,), (1374373718,), (1374373724,), (1374373725,), (1374373727,), (1374373728,), (1374373752,), (1374373753,), (1374373754,), (1374373755,), (1374373757,), (1374373759,), (1374373771,), (1374373781,), (1374373782,), (1374373783,), (1374373785,), (1374373787,), (1374373794,), (1374373795,), (1374373796,), (1374373797,), (1374373798,), (1374373800,), (1374373826,), (1374373828,), (1374373829,), (1374373831,), (1374373834,), (1374373837,), (1374373843,), (1374373844,), (1374373845,), (1374373846,), (1374373848,), (1374373850,), (1374373898,), (1374373910,), (1374373912,), (1374373914,), (1374373915,), (1374373917,), (1374373919,), (1374373928,), (1374373930,), (1374373932,), (1374373933,), (1374373935,), (1374373937,), (1374373944,), (1374373955,), (1374373966,), (1374373967,), (1374373968,), (1374373971,), (1374373984,), (1374373994,), (1374373996,), (1374373997,), (1374373998,), (1374374000,), (1374374010,), (1374374012,), (1374374013,), (1374374014,), (1374374015,), (1374374017,), (1374374039,), (1374374045,), (1374374047,), (1374374048,), (1374374049,), (1374374051,), (1374374061,), (1374374068,), (1374374075,), (1374374077,), (1374374079,), (1374374082,), (1374374104,), (1374374105,), (1374374106,), (1374374108,), (1374374111,), (1374374115,), (1374374123,), (1374374130,), (1374374162,), (1374374169,), (1374374171,), (1374374172,), (1374374174,), (1374374177,), (1374374197,), (1374374222,), (1374374231,), (1374374232,), (1374374234,), (1374374235,), (1374374237,), (1374374249,), (1374374250,), (1374374252,), (1374374253,), (1374374254,), (1374374256,), (1374374283,), (1374374284,), (1374374286,), (1374374288,), (1374374291,), (1374374300,), (1374374320,), (1374374327,), (1374374328,), (1374374329,), (1374374331,), (1374374332,), (1374374356,), (1374374363,), (1374374364,), (1374374365,), (1374374367,), (1374374370,), (1374374378,), (1374374379,), (1374374380,), (1374374381,), (1374374383,), (1374374385,), (1374374400,), (1374374407,), (1374374408,), (1374374409,), (1374374411,), (1374374414,), (1374374469,), (1374374502,), (1374374508,), (1374374511,), (1374374512,), (1374374515,), (1374374518,), (1374374530,), (1374374540,), (1374374546,), (1374374547,), (1374374549,), (1374374551,), (1374374572,), (1374374581,), (1374374582,), (1374374583,), (1374374584,), (1374374586,), (1374374607,), (1374374616,), (1374374618,), (1374374619,), (1374374621,), (1374374624,), (1374374634,), (1374374635,), (1374374636,), (1374374637,), (1374374639,), (1374374642,), (1374374669,), (1374374670,), (1374374671,), (1374374672,), (1374374674,), (1374374676,), (1374374688,), (1374374689,), (1374374699,), (1374374724,), (1374374748,), (1374374775,), (1374375287,), (1374375321,), (1374375366,), (1374375412,), (1374375464,), (1374375515,), (1374376023,), (1374376385,), (1374376395,), (1374376422,), (1374376434,), (1374376435,), (1374376436,), (1374376460,), (1374376464,), (1374376465,), (1374376466,), (1374376468,), (1374376471,), (1374376491,), (1374376492,), (1374376493,), (1374376494,), (1374376496,), (1374376499,), (1374376506,), (1374376507,), (1374376508,), (1374376509,), (1374376511,), (1374376514,), (1374376532,), (1374376533,), (1374376534,), (1374376535,), (1374376537,), (1374376538,), (1374376576,), (1374376582,), (1374376583,), (1374376584,), (1374376586,), (1374376589,), (1374376597,), (1374376604,), (1374376610,), (1374376611,), (1374376613,), (1374376616,), (1374376643,), (1374376661,), (1374376666,), (1374376667,), (1374376668,), (1374376670,), (1374376672,), (1374376727,), (1374376742,), (1374376752,), (1374376757,), (1374376758,), (1374376760,), (1374376763,), (1374376778,), (1374376787,), (1374376788,), (1374376789,), (1374376790,), (1374376793,), (1374376802,), (1374376813,), (1374376819,), (1374376820,), (1374376821,), (1374376824,), (1374376837,), (1374376845,), (1374376856,), (1374376857,), (1374376858,), (1374376860,), (1374376885,), (1374376891,), (1374376892,), (1374376893,), (1374376895,), (1374376898,), (1374376926,), (1374376927,), (1374376928,), (1374376929,), (1374376931,), (1374376933,), (1374376951,), (1374376957,), (1374376958,), (1374376959,), (1374376961,), (1374376964,), (1374376980,), (1374376983,), (1374376984,), (1374376985,), (1374376986,), (1374376988,), (1374377005,), (1374377017,), (1374377018,), (1374377019,), (1374377021,), (1374377023,), (1374377029,), (1374377050,), (1374377058,), (1374377063,), (1374377064,), (1374377065,), (1374377067,), (1374377086,), (1374377092,), (1374377093,), (1374377094,), (1374377095,), (1374377097,), (1374377110,), (1374377120,), (1374377121,), (1374377122,), (1374377123,), (1374377125,), (1374377142,), (1374377148,), (1374377149,), (1374377150,), (1374377151,), (1374377154,), (1374377174,), (1374377175,), (1374377176,), (1374377177,), (1374377179,), (1374377181,), (1374377199,), (1374377207,), (1374377208,), (1374377209,), (1374377211,), (1374377213,), (1374377230,), (1374377235,), (1374377236,), (1374377237,), (1374377239,), (1374377242,), (1374377252,), (1374377253,), (1374377254,), (1374377255,), (1374377257,), (1374377258,), (1374377271,), (1374377272,), (1374377274,), (1374377275,), (1374377277,), (1374377280,), (1374377323,), (1374377331,), (1374377332,), (1374377333,), (1374377337,), (1374377346,), (1374377347,), (1374377359,), (1374377360,), (1374377361,), (1374377362,), (1374377363,), (1374377365,), (1374377378,), (1374377379,), (1374377380,), (1374377381,), (1374377382,), (1374377383,), (1374377403,), (1374377409,), (1374377410,), (1374377411,), (1374377413,), (1374377415,), (1374377425,), (1374377426,), (1374377427,), (1374377428,), (1374377429,), (1374377432,), (1374377453,), (1374377454,), (1374377455,), (1374377456,), (1374377457,), (1374377460,), (1374377483,), (1374377491,), (1374377501,), (1374377507,), (1374377508,), (1374377509,), (1374377511,), (1374377517,), (1374377518,), (1374377527,), (1374377532,), (1374377533,), (1374377535,), (1374377550,), (1374377574,), (1374377581,), (1374377587,), (1374377588,), (1374377589,), (1374377591,), (1374377599,), (1374377600,), (1374377609,), (1374377615,), (1374377616,), (1374377618,), (1374377625,), (1374377632,), (1374377638,), (1374377639,), (1374377641,), (1374377643,), (1374377649,), (1374377650,), (1374377651,), (1374377653,), (1374377655,), (1374377657,), (1374377664,), (1374377665,), (1374377674,), (1374377678,), (1374377680,), (1374377682,), (1374377722,), (1374377724,), (1374377725,), (1374377726,), (1374377728,), (1374377730,), (1374377738,), (1374377745,), (1374377747,), (1374377748,), (1374377749,), (1374377751,), (1374377753,), (1374377768,), (1374377774,), (1374377775,), (1374377776,), (1374377777,), (1374377778,), (1374377797,), (1374377827,), (1374377833,), (1374377834,), (1374377835,), (1374377837,), (1374377839,), (1374377848,), (1374377870,), (1374377871,), (1374377872,), (1374377874,), (1374377876,), (1374377878,), (1374377896,), (1374377897,), (1374377898,), (1374377899,), (1374377901,), (1374377903,), (1374377910,), (1374377911,), (1374377912,), (1374377913,), (1374377915,), (1374377917,), (1374377926,), (1374377927,), (1374377944,), (1374377966,), (1374377989,), (1374378012,), (1374378259,), (1374378261,), (1374378262,), (1374378279,), (1374378304,), (1374378327,), (1374379312,), (1374379727,), (1374379757,), (1374379758,), (1374379759,), (1374379761,), (1374379763,), (1374379766,), (1374379776,), (1374379810,), (1374379816,), (1374379819,), (1374379820,), (1374379822,), (1374379824,), (1374379833,), (1374379940,), (1374379961,), (1374379988,), (1374380011,), (1374380039,), (1374380063,), (1374380231,), (1374380233,), (1374380234,), (1374380235,), (1374380237,), (1374380239,), (1374380253,), (1374380261,), (1374380265,), (1374380266,), (1374380268,), (1374380271,), (1374380283,), (1374380284,), (1374380285,), (1374380286,), (1374380287,), (1374380289,), (1374380306,), (1374380315,), (1374380318,), (1374380319,), (1374380321,), (1374380323,), (1374380336,), (1374380350,), (1374380357,), (1374380363,), (1374380372,), (1374380376,), (1374380377,), (1374380381,), (1374380382,), (1374380383,), (1374380384,), (1374380385,), (1374380387,), (1374380404,), (1374380409,), (1374380410,), (1374380417,), (1374380419,), (1374380422,), (1374380434,), (1374380435,), (1374380436,), (1374380438,), (1374380440,), (1374380442,), (1374389470,), (1374380452,), (1374380459,), (1374380465,), (1374380467,), (1374380469,), (1374380472,), (1374380506,), (1374380525,), (1374380534,), (1374380539,), (1374380540,), (1374380542,), (1374380545,), (1374380559,), (1374380560,), (1374380561,), (1374380562,), (1374380564,), (1374380567,), (1374380581,), (1374380582,), (1374380583,), (1374380584,), (1374380586,), (1374380589,), (1374380601,), (1374380622,), (1374380623,), (1374380624,), (1374380625,), (1374380627,), (1374380630,), (1374380649,), (1374380686,), (1374380687,), (1374380688,), (1374380689,), (1374380691,), (1374380694,), (1374380705,), (1374380706,), (1374380707,), (1374380708,), (1374380709,), (1374380711,), (1374380727,), (1374380728,), (1374380734,), (1374380735,), (1374380737,), (1374380740,), (1374380743,), (1374380744,), (1374380745,), (1374380746,), (1374380747,), (1374380749,), (1374380766,), (1374380769,), (1374380770,), (1374380771,), (1374380773,), (1374380776,), (1374380786,), (1374380792,), (1374380799,), (1374380800,), (1374380802,), (1374380803,), (1374380811,), (1374380819,), (1374380823,), (1374380824,), (1374380826,), (1374380830,), (1374380845,), (1374380877,), (1374380886,), (1374380891,), (1374380895,), (1374380896,), (1374380898,), (1374380910,), (1374380915,), (1374380916,), (1374380917,), (1374380918,), (1374380920,), (1374380933,), (1374380934,), (1374380935,), (1374380936,), (1374380938,), (1374380940,), (1374380950,), (1374380951,), (1374380952,), (1374380953,), (1374380955,), (1374380957,), (1374380972,), (1374380974,), (1374380975,), (1374380976,), (1374380978,), (1374380981,), (1374381008,), (1374381009,), (1374381010,), (1374381011,), (1374381013,), (1374381014,), (1374381029,), (1374381030,), (1374381031,), (1374381032,), (1374381034,), (1374381036,), (1374381052,), (1374381055,), (1374381056,), (1374381057,), (1374381058,), (1374381060,), (1374381070,), (1374381071,), (1374381072,), (1374381073,), (1374381075,), (1374381077,), (1374381086,), (1374381106,), (1374381107,), (1374381108,), (1374381109,), (1374381110,), (1374381111,), (1374381116,), (1374381124,), (1374381133,), (1374381136,), (1374381138,), (1374381141,), (1374381146,), (1374381154,), (1374381163,), (1374381164,), (1374381165,), (1374381167,), (1374381180,), (1374381181,), (1374381182,), (1374381184,), (1374381186,), (1374381188,), (1374381210,), (1374381216,), (1374381217,), (1374381218,), (1374381219,), (1374381221,), (1374381251,), (1374381258,), (1374381261,), (1374381262,), (1374381263,), (1374381264,), (1374381275,), (1374381276,), (1374381278,), (1374381280,), (1374381282,), (1374381285,), (1374381292,), (1374381293,), (1374381295,), (1374381297,), (1374381299,), (1374381301,), (1374381309,), (1374381319,), (1374381329,), (1374381337,), (1374381338,), (1374381339,), (1374381359,), (1374381393,), (1374381402,), (1374381404,), (1374381405,), (1374381406,), (1374381408,), (1374381424,), (1374381426,), (1374381428,), (1374381429,), (1374381430,), (1374381431,), (1374381450,), (1374381458,), (1374381460,), (1374381461,), (1374381462,), (1374381463,), (1374381478,), (1374381484,), (1374381486,), (1374381487,), (1374381488,), (1374381489,), (1374381502,), (1374381504,), (1374381505,), (1374381506,), (1374381507,), (1374381508,), (1374381546,), (1374381547,), (1374381548,), (1374381549,), (1374381550,), (1374381551,), (1374381558,), (1374381559,), (1374381560,), (1374381561,), (1374381563,), (1374381565,), (1374382034,), (1374382106,), (1374382175,), (1374382245,), (1374382325,), (1374382397,), (1374382995,), (1374382997,), (1374383000,), (1374383039,), (1374383086,), (1374383143,), (1374383518,), (1374383532,), (1374383553,), (1374383554,), (1374383555,), (1374383556,), (1374383557,), (1374383558,), (1374383571,), (1374383572,), (1374383573,), (1374383574,), (1374383575,), (1374383579,), (1374383600,), (1374383601,), (1374383602,), (1374383603,), (1374383604,), (1374383606,), (1374383635,), (1374383637,), (1374383639,), (1374383641,), (1374383644,), (1374383647,), (1374383663,), (1374383666,), (1374383668,), (1374383670,), (1374383672,), (1374383674,), (1374383692,), (1374383708,), (1374383710,), (1374383711,), (1374383712,), (1374383714,), (1374383717,), (1374383737,), (1374383756,), (1374383757,), (1374383758,), (1374383759,), (1374383760,), (1374383762,), (1374383777,), (1374383778,), (1374383779,), (1374383780,), (1374383782,), (1374383785,), (1374383798,), (1374383799,), (1374383800,), (1374383801,), (1374383802,), (1374383804,), (1374383820,), (1374383821,), (1374383823,), (1374383824,), (1374383825,), (1374383828,), (1374383838,), (1374383839,), (1374383840,), (1374383841,), (1374383843,), (1374383844,), (1374383856,), (1374383857,), (1374383858,), (1374383859,), (1374383861,), (1374383863,), (1374383877,), (1374383879,), (1374383880,), (1374383881,), (1374383883,), (1374383885,), (1374383891,), (1374383902,), (1374383911,), (1374383919,), (1374383920,), (1374383922,), (1374383924,), (1374383946,), (1374383980,), (1374383992,), (1374383997,), (1374383998,), (1374384000,), (1374384002,), (1374384017,), (1374384027,), (1374384032,), (1374384038,), (1374384039,), (1374384041,), (1374384053,), (1374384054,), (1374384055,), (1374384056,), (1374384057,), (1374384060,), (1374384076,), (1374384077,), (1374384078,), (1374384079,), (1374384081,), (1374384082,), (1374384103,), (1374384104,), (1374384105,), (1374384106,), (1374384108,), (1374384111,), (1374384142,), (1374384163,), (1374384170,), (1374384175,), (1374384176,), (1374384178,), (1374384180,), (1374384199,), (1374384207,), (1374384214,), (1374384215,), (1374384217,), (1374384219,), (1374384238,), (1374384248,), (1374384254,), (1374384255,), (1374384258,), (1374384261,), (1374384287,), (1374384309,), (1374384319,), (1374384325,), (1374384326,), (1374384327,), (1374384329,), (1374384341,), (1374384342,), (1374384343,), (1374384344,), (1374384345,), (1374384348,), (1374384363,), (1374384364,), (1374384365,), (1374384366,), (1374384368,), (1374384372,), (1374384379,), (1374384407,), (1374384409,), (1374384419,), (1374384422,), (1374384424,), (1374384425,), (1374384455,), (1374384456,), (1374384457,), (1374384458,), (1374384460,), (1374384462,), (1374384480,), (1374384483,), (1374384484,), (1374384485,), (1374384487,), (1374384490,), (1374384498,), (1374384505,), (1374384506,), (1374384507,), (1374384509,), (1374384511,), (1374384521,), (1374384527,), (1374384528,), (1374384529,), (1374384530,), (1374384532,), (1374384554,), (1374384555,), (1374384556,), (1374384557,), (1374384558,), (1374384560,), (1374384578,), (1374384585,), (1374384593,), (1374384597,), (1374384601,), (1374384605,), (1374384609,), (1374384612,), (1374384619,), (1374384620,), (1374384621,), (1374384624,), (1374384627,), (1374384641,), (1374384652,), (1374384653,), (1374384654,), (1374384655,), (1374384656,), (1374384659,), (1374384668,), (1374384669,), (1374384670,), (1374384671,), (1374384672,), (1374384674,), (1374384689,), (1374384690,), (1374384691,), (1374384692,), (1374384694,), (1374384696,), (1374384715,), (1374384717,), (1374384718,), (1374384719,), (1374384721,), (1374384723,), (1374384731,), (1374384732,), (1374384733,), (1374384734,), (1374384736,), (1374384738,), (1374384753,), (1374384794,), (1374384795,), (1374384796,), (1374384797,), (1374384799,), (1374384802,), (1374384809,), (1374384814,), (1374384815,), (1374384816,), (1374384817,), (1374384819,), (1374384822,), (1374384831,), (1374384849,), (1374384851,), (1374384855,), (1374384856,), (1374384857,), (1374384861,), (1374384878,), (1374384893,), (1374384894,), (1374384895,), (1374384896,), (1374384898,), (1374384900,), (1374385440,), (1374385481,), (1374385527,), (1374385561,), (1374385584,), (1374385607,), (1374386116,), (1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,), (1374387117,), (1374387137,), (1374387142,), (1374387143,), (1374387144,), (1374387146,), (1374387149,), (1374387161,), (1374387162,), (1374387163,), (1374387164,), (1374387173,), (1374387174,), (1374387187,), (1374387189,), (1374387191,), (1374387193,), (1374387199,), (1374387214,), (1374387226,), (1374387228,), (1374387230,), (1374387231,), (1374387232,), (1374387234,), (1374387249,), (1374387250,), (1374387258,), (1374387268,), (1374387269,), (1374387271,), (1374387300,), (1374387301,), (1374387302,), (1374387303,), (1374387305,), (1374387306,), (1374387322,), (1374387324,), (1374387326,), (1374387329,), (1374387332,), (1374387336,), (1374387351,), (1374387359,), (1374387360,), (1374387361,), (1374387363,), (1374387365,), (1374387393,), (1374387411,), (1374387430,), (1374387432,), (1374387434,), (1374387435,), (1374387436,), (1374387453,), (1374387483,), (1374387484,), (1374387485,), (1374387491,), (1374387500,), (1374387501,), (1374387514,), (1374387522,), (1374387527,), (1374387528,), (1374387529,), (1374387531,), (1374387549,), (1374387567,), (1374387568,), (1374387586,), (1374387591,), (1374387592,), (1374387594,), (1374387608,), (1374387609,), (1374387610,), (1374387611,), (1374387613,), (1374387614,), (1374387625,), (1374387636,), (1374387646,), (1374387648,), (1374387651,), (1374387654,), (1374387670,), (1374387671,), (1374387672,), (1374387673,), (1374387674,), (1374387677,), (1374387691,), (1374387692,), (1374387705,), (1374387707,), (1374387708,), (1374387709,), (1374387782,), (1374389441,), (1374434811,), (1374387799,), (1374387808,), (1374387821,), (1374387822,), (1374387823,), (1374387825,), (1374387835,), (1374387838,), (1374387845,), (1374387846,), (1374387848,), (1374387849,), (1374387864,), (1374387866,), (1374387868,), (1374387870,), (1374387873,), (1374387878,), (1374387884,), (1374387885,), (1374387887,), (1374387890,), (1374387893,), (1374387896,), (1374387911,), (1374387913,), (1374387914,), (1374387915,), (1374387916,), (1374387919,), (1374387930,), (1374387932,), (1374387933,), (1374387934,), (1374387935,), (1374387937,), (1374387961,), (1374387963,), (1374387964,), (1374387965,), (1374387967,), (1374387969,), (1374387981,), (1374387983,), (1374387984,), (1374387985,), (1374387986,), (1374387987,), (1374388002,), (1374388009,), (1374388010,), (1374388011,), (1374388013,), (1374388016,), (1374388037,), (1374388056,), (1374388057,), (1374388058,), (1374388059,), (1374388061,), (1374388063,), (1374388079,), (1374388096,), (1374388099,), (1374388101,), (1374388103,), (1374388105,), (1374388107,), (1374388122,), (1374388144,), (1374388145,), (1374388146,), (1374388152,), (1374388155,), (1374388158,), (1374388171,), (1374388173,), (1374388175,), (1374388176,), (1374388177,), (1374388180,), (1374388194,), (1374388196,), (1374388197,), (1374388198,), (1374388200,), (1374388203,), (1374388219,), (1374388244,), (1374388245,), (1374388249,), (1374388260,), (1374388262,), (1374388264,), (1374388317,), (1374388335,), (1374388336,), (1374388337,), (1374388338,), (1374388347,), (1374388356,), (1374388376,), (1374388377,), (1374388381,), (1374388388,), (1374388390,), (1374388403,), (1374388423,), (1374388424,), (1374388425,), (1374388427,), (1374388437,), (1374388439,), (1374388454,), (1374388456,), (1374388458,), (1374388460,), (1374388462,), (1374388465,), (1374388486,), (1374388487,), (1374388488,), (1374388489,), (1374388491,), (1374388494,), (1374388508,), (1374388509,), (1374388510,), (1374388511,), (1374388517,), (1374388542,), (1374388798,), (1374388820,), (1374388844,), (1374388867,), (1374388889,), (1374388911,), (1374389405,), (1374389931,), (1374390485,), (1374390508,), (1374390519,), (1374390526,), (1374390528,), (1374390538,), (1374390661,), (1374390687,), (1374390721,), (1374390736,), (1374390743,), (1374390749,), (1374390810,), (1374390811,), (1374390812,), (1374390813,), (1374390815,), (1374390817,), (1374390829,), (1374390831,), (1374390832,), (1374390839,), (1374390845,), (1374390864,), (1374390876,), (1374390879,), (1374390886,), (1374390889,), (1374390908,), (1374390912,), (1374390955,), (1374390956,), (1374390957,), (1374390958,), (1374390960,), (1374390963,), (1374390983,), (1374390984,), (1374390985,), (1374390986,), (1374390988,), (1374390990,), (1374391009,), (1374391010,), (1374391011,), (1374391019,), (1374391020,), (1374391034,), (1374391061,), (1374391070,), (1374391072,), (1374391073,), (1374391074,), (1374391076,), (1374391128,), (1374391157,), (1374391159,), (1374391169,), (1374391179,), (1374391180,), (1374391183,), (1374391209,), (1374391249,), (1374391250,), (1374391261,), (1374391263,), (1374391265,), (1374391267,), (1374391285,), (1374434770,), (1374391305,), (1374391307,), (1374391314,), (1374391315,), (1374391316,), (1374391318,), (1374391322,), (1374391327,), (1374391328,), (1374391329,), (1374391331,), (1374391332,), (1374391344,), (1374391347,), (1374391355,), (1374391356,), (1374391358,), (1374391361,), (1374391371,), (1374391390,), (1374391391,), (1374391392,), (1374391399,), (1374391406,), (1374391413,), (1374391432,), (1374391439,), (1374391440,), (1374391441,), (1374391442,), (1374391444,), (1374391479,), (1374391499,), (1374391501,), (1374391502,), (1374391503,), (1374391505,), (1374391506,), (1374391523,), (1374391525,), (1374391532,), (1374391539,), (1374391547,), (1374391550,), (1374391558,), (1374391559,), (1374391560,), (1374391561,), (1374391563,), (1374391566,), (1374391585,), (1374391593,), (1374391598,), (1374391602,), (1374391604,), (1374391606,), (1374391613,), (1374391615,), (1374391616,), (1374391617,), (1374391618,), (1374391620,), (1374391636,), (1374391641,), (1374391643,), (1374391645,), (1374391646,), (1374391648,), (1374391664,), (1374391665,), (1374391666,), (1374391667,), (1374391669,), (1374391672,), (1374391682,), (1374391686,), (1374391694,), (1374391695,), (1374391697,), (1374391701,), (1374391739,), (1374391740,), (1374391741,), (1374391742,), (1374391743,), (1374391745,), (1374391762,), (1374391788,), (1374391789,), (1374391790,), (1374391791,), (1374391810,), (1374391820,), (1374391838,), (1374391840,), (1374391842,), (1374391843,), (1374391845,), (1374391847,), (1374391863,), (1374391883,), (1374391884,), (1374391885,), (1374391886,), (1374391888,), (1374391890,), (1374391903,), (1374391904,), (1374391905,), (1374391906,), (1374391907,), (1374391910,), (1374391931,), (1374391936,), (1374391941,), (1374391942,), (1374391945,), (1374391948,), (1374391960,), (1374391962,), (1374391963,), (1374391964,), (1374391965,), (1374391967,), (1374391984,), (1374391989,), (1374391994,), (1374391999,), (1374392001,), (1374392004,), (1374392061,), (1374392095,), (1374392096,), (1374392103,), (1374392108,), (1374392110,), (1374392114,), (1374392129,), (1374392133,), (1374392134,), (1374392135,), (1374392137,), (1374392139,), (1374392156,), (1374392159,), (1374392161,), (1374392162,), (1374392163,), (1374392166,), (1374392176,), (1374392178,), (1374392179,), (1374392180,), (1374392183,), (1374392185,), (1374392206,), (1374392212,), (1374392220,), (1374392222,), (1374392224,), (1374392226,), (1374392235,), (1374392236,), (1374392237,), (1374392238,), (1374392240,), (1374392242,), (1374392249,), (1374392257,), (1374392264,), (1374392265,), (1374392267,), (1374392269,), (1374392282,), (1374392289,), (1374392295,), (1374392297,), (1374392298,), (1374392300,), (1374392308,), (1374392309,), (1374392312,), (1374392313,), (1374392319,), (1374392320,), (1374392384,), (1374392407,), (1374392408,), (1374392416,), (1374392417,), (1374392419,), (1374392420,), (1374392439,), (1374392462,), (1374392478,), (1374392479,), (1374392480,), (1374392481,), (1374392483,), (1374392486,), (1374392494,), (1374392495,), (1374392496,), (1374392497,), (1374392499,), (1374392502,), (1374392525,), (1374392791,), (1374392819,), (1374392845,), (1374392867,), (1374392890,), (1374392914,), (1374393078,), (1374393079,), (1374393082,), (1374393084,), (1374393087,), (1374393090,), (1374393144,), (1374393481,), (1374393503,), (1374393529,), (1374393552,), (1374393602,), (1374393628,), (1374393759,), (1374393760,), (1374393767,), (1374393775,), (1374393780,), (1374393810,), (1374394275,), (1374394498,), (1374394522,), (1374394530,), (1374394531,), (1374394532,), (1374394551,), (1374394599,), (1374394608,), (1374394612,), (1374394619,), (1374394625,), (1374394628,), (1374394634,), (1374394636,), (1374394637,), (1374394638,), (1374394640,), (1374394643,), (1374394655,), (1374394659,), (1374394665,), (1374394667,), (1374394668,), (1374394670,), (1374394679,), (1374394686,), (1374394691,), (1374394692,), (1374394695,), (1374394698,), (1374394712,), (1374394714,), (1374394715,), (1374394716,), (1374394718,), (1374394720,), (1374394776,), (1374394777,), (1374394778,), (1374394779,), (1374394780,), (1374394782,), (1374394797,), (1374394815,), (1374394817,), (1374394818,), (1374394819,), (1374394821,), (1374394823,), (1374394832,), (1374394833,), (1374394843,), (1374394844,), (1374394845,), (1374394849,), (1374394863,), (1374394864,), (1374394866,), (1374394867,), (1374394868,), (1374394870,), (1374394888,), (1374394893,), (1374394899,), (1374394900,), (1374394901,), (1374394904,), (1374394925,), (1374394928,), (1374394932,), (1374394935,), (1374394940,), (1374394943,), (1374394947,), (1374394949,), (1374394950,), (1374394951,), (1374394953,), (1374394970,), (1374394986,), (1374394993,), (1374395000,), (1374395001,), (1374395002,), (1374395004,), (1374395059,), (1374395080,), (1374395086,), (1374395094,), (1374395096,), (1374395098,), (1374395101,), (1374395110,), (1374395111,), (1374395112,), (1374395113,), (1374395115,), (1374395116,), (1374395123,), (1374395135,), (1374395141,), (1374395142,), (1374395144,), (1374395147,), (1374395166,), (1374395197,), (1374395218,), (1374395219,), (1374395220,), (1374395221,), (1374395223,), (1374395226,), (1374395241,), (1374395253,), (1374395258,), (1374395259,), (1374395261,), (1374395263,), (1374395271,), (1374395272,), (1374395273,), (1374395274,), (1374395275,), (1374395277,), (1374395290,), (1374395291,), (1374395292,), (1374395293,), (1374395296,), (1374395298,), (1374395370,), (1374395387,), (1374395388,), (1374395389,), (1374395390,), (1374395392,), (1374395396,), (1374395410,), (1374395411,), (1374395412,), (1374395413,), (1374395414,), (1374395416,), (1374395427,), (1374395429,), (1374395431,), (1374395432,), (1374395433,), (1374395436,), (1374395453,), (1374395454,), (1374395462,), (1374395467,), (1374395468,), (1374395470,), (1374395490,), (1374395500,), (1374395503,), (1374395504,), (1374395505,), (1374395507,), (1374395525,), (1374395527,), (1374395529,), (1374395530,), (1374395532,), (1374395534,), (1374395549,), (1374395555,), (1374395561,), (1374395564,), (1374395567,), (1374395570,), (1374395586,), (1374395593,), (1374395598,), (1374395599,), (1374395601,), (1374395603,), (1374395612,), (1374395615,), (1374395620,), (1374395627,), (1374395629,), (1374395633,), (1374395642,), (1374395671,), (1374395674,), (1374395675,), (1374395676,), (1374395677,), (1374395678,), (1374395686,), (1374395687,), (1374395694,), (1374395699,), (1374395700,), (1374395702,), (1374395724,), (1374395729,), (1374395730,), (1374395731,), (1374395733,), (1374395737,), (1374395751,), (1374395753,), (1374395754,), (1374395755,), (1374395757,), (1374395761,), (1374395777,), (1374395778,), (1374395781,), (1374395787,), (1374395789,), (1374395791,), (1374395803,), (1374395807,), (1374395813,), (1374395814,), (1374395815,), (1374395817,), (1374395838,), (1374395857,), (1374395858,), (1374395859,), (1374395860,), (1374395861,), (1374395863,), (1374395881,), (1374395883,), (1374395888,), (1374395891,), (1374395892,), (1374395894,), (1374395914,), (1374395960,), (1374395961,), (1374395964,), (1374395967,), (1374395968,), (1374395971,), (1374395991,), (1374396011,), (1374396013,), (1374396017,), (1374396022,), (1374396023,), (1374396026,), (1374396049,), (1374396051,), (1374396053,), (1374396054,), (1374396056,), (1374396058,), (1374396077,), (1374396079,), (1374396081,), (1374396083,), (1374396086,), (1374396089,), (1374396107,), (1374396110,), (1374396111,), (1374396112,), (1374396113,), (1374396115,), (1374396139,), (1374396141,), (1374396142,), (1374396144,), (1374396147,), (1374396151,), (1374397168,), (1374397198,), (1374397224,), (1374397248,), (1374397274,), (1374397297,), (1374397767,), (1374398282,), (1374398305,), (1374398329,), (1374398355,), (1374398359,), (1374398362,), (1374398549,), (1374398592,), (1374398643,), (1374398687,), (1374398723,), (1374398739,), (1374398908,), (1374398919,), (1374398921,), (1374398923,), (1374398946,), (1374398971,), (1374399022,), (1374399024,), (1374399025,), (1374399026,), (1374399028,), (1374399030,), (1374399050,), (1374399051,), (1374399054,), (1374399055,), (1374399057,), (1374399061,), (1374399097,), (1374399125,), (1374399128,), (1374399131,), (1374399132,), (1374399134,), (1374399136,), (1374399155,), (1374399179,), (1374399182,), (1374399184,), (1374399185,), (1374399186,), (1374399188,), (1374399204,), (1374399250,), (1374399252,), (1374399254,), (1374399256,), (1374399258,), (1374399261,), (1374399282,), (1374399285,), (1374399287,), (1374399288,), (1374399289,), (1374399291,), (1374399309,), (1374399311,), (1374399313,), (1374399315,), (1374399317,), (1374399321,), (1374399342,), (1374399377,), (1374399379,), (1374399381,), (1374399383,), (1374399386,), (1374399389,), (1374399421,), (1374399423,), (1374399424,), (1374399425,), (1374399426,), (1374399429,), (1374399462,), (1374399499,), (1374399504,), (1374399506,), (1374399507,), (1374399508,), (1374399511,), (1374399528,), (1374399531,), (1374399533,), (1374399535,), (1374399537,), (1374399541,), (1374399552,), (1374399591,), (1374399593,), (1374399604,), (1374399611,), (1374399613,), (1374399617,), (1374399640,), (1374399649,), (1374399655,), (1374399663,), (1374399665,), (1374399667,), (1374399693,), (1374399694,), (1374399695,), (1374399696,), (1374399698,), (1374399702,), (1374399725,), (1374399726,), (1374399727,), (1374399728,), (1374399730,), (1374399731,), (1374399753,), (1374399755,), (1374399756,), (1374399757,), (1374399758,), (1374399761,), (1374399783,), (1374399827,), (1374399833,), (1374399838,), (1374399840,), (1374399841,), (1374399843,), (1374399860,), (1374399861,), (1374399862,), (1374399863,), (1374399864,), (1374399866,), (1374399889,), (1374399892,), (1374399894,), (1374399895,), (1374399896,), (1374399900,), (1374399928,), (1374399953,), (1374399954,), (1374399955,), (1374399956,), (1374399957,), (1374399959,), (1374399969,), (1374399970,), (1374399971,), (1374399972,), (1374399974,), (1374399978,), (1374399984,), (1374399986,), (1374399990,), (1374399998,), (1374400003,), (1374400007,), (1374400030,), (1374400062,), (1374400064,), (1374400069,), (1374400070,), (1374400071,), (1374400073,), (1374400111,), (1374400112,), (1374400113,), (1374400114,), (1374400115,), (1374400118,), (1374400143,), (1374400144,), (1374400145,), (1374400146,), (1374400147,), (1374400149,), (1374400168,), (1374400170,), (1374400174,), (1374400182,), (1374400189,), (1374400191,), (1374400209,), (1374400211,), (1374400217,), (1374400218,), (1374400219,), (1374400222,), (1374400238,), (1374400262,), (1374400264,), (1374400267,), (1374400272,), (1374400276,), (1374400279,), (1374400304,), (1374400307,), (1374400315,), (1374400316,), (1374400318,), (1374400321,), (1374400339,), (1374400340,), (1374400341,), (1374400342,), (1374400343,), (1374400346,), (1374400361,), (1374400398,), (1374400399,), (1374400405,), (1374400412,), (1374400420,), (1374400423,), (1374400444,), (1374400448,), (1374400455,), (1374400456,), (1374400457,), (1374400461,), (1374400481,), (1374400482,), (1374400483,), (1374400484,), (1374400486,), (1374400490,), (1374400515,), (1374400517,), (1374400518,), (1374400519,), (1374400520,), (1374400524,), (1374400541,), (1374400544,), (1374400546,), (1374400548,), (1374400549,), (1374400551,), (1374400578,), (1374400601,), (1374400610,), (1374400611,), (1374400613,), (1374400614,), (1374400616,), (1374400630,), (1374400632,), (1374400634,), (1374400635,), (1374400637,), (1374400640,), (1374400659,), (1374400661,), (1374400663,), (1374400664,), (1374400666,), (1374400669,), (1374400689,), (1374400701,), (1374400704,), (1374400705,), (1374400706,), (1374400709,), (1374400725,), (1374400727,), (1374400730,), (1374400732,), (1374400733,), (1374400736,), (1374400758,), (1374400780,), (1374400782,), (1374400784,), (1374400785,), (1374400786,), (1374400789,), (1374401522,), (1374401523,), (1374401573,), (1374401578,), (1374401639,), (1374401651,), (1374401709,), (1374401724,), (1374401770,), (1374401786,), (1374401819,), (1374401835,), (1374402060,), (1374402857,), (1374402903,), (1374402950,), (1374403021,), (1374403092,), (1374403165,), (1374403437,), (1374403486,), (1374403512,), (1374403542,), (1374403565,), (1374403589,), (1374403995,), (1374404040,), (1374404087,), (1374404133,), (1374404184,), (1374404223,), (1374404472,), (1374404524,), (1374404552,), (1374404577,), (1374404580,), (1374404595,), (1374404790,), (1374404813,), (1374404827,), (1374404829,), (1374404832,), (1374404833,), (1374404851,), (1374404874,), (1374404875,), (1374404876,), (1374404877,), (1374404879,), (1374404882,), (1374404903,), (1374404905,), (1374404906,), (1374404907,), (1374404908,), (1374404910,), (1374404933,), (1374404939,), (1374404948,), (1374404952,), (1374404955,), (1374404958,), (1374404975,), (1374404980,), (1374404990,), (1374404991,), (1374404993,), (1374404995,), (1374405041,), (1374405079,), (1374405108,), (1374405109,), (1374405110,), (1374405111,), (1374405112,), (1374405114,), (1374405128,), (1374405135,), (1374405141,), (1374405142,), (1374405144,), (1374405148,), (1374405171,), (1374405175,), (1374405178,), (1374405179,), (1374405181,), (1374405185,), (1374405198,), (1374405199,), (1374405200,), (1374405201,), (1374405202,), (1374405204,), (1374405232,), (1374405233,), (1374405234,), (1374405235,), (1374405236,), (1374405238,), (1374405264,), (1374405303,), (1374405352,), (1374405353,), (1374405354,), (1374405355,), (1374405356,), (1374405358,), (1374405388,), (1374405415,), (1374405421,), (1374405423,), (1374405425,), (1374405428,), (1374405431,), (1374405458,), (1374405461,), (1374405463,), (1374405465,), (1374405467,), (1374405470,), (1374405488,), (1374405494,), (1374405496,), (1374405498,), (1374405500,), (1374405503,), (1374405528,), (1374405530,), (1374405532,), (1374405534,), (1374405537,), (1374405538,), (1374405574,), (1374405576,), (1374405577,), (1374405578,), (1374405579,), (1374405581,), (1374405601,), (1374405602,), (1374405603,), (1374405604,), (1374405605,), (1374405607,), (1374405636,), (1374405640,), (1374405657,), (1374405658,), (1374405660,), (1374405664,), (1374405676,), (1374405679,), (1374405680,), (1374405681,), (1374405684,), (1374405686,), (1374405718,), (1374405733,), (1374405735,), (1374405737,), (1374405738,), (1374405739,), (1374405743,), (1374405757,), (1374405759,), (1374405761,), (1374405762,), (1374405764,), (1374405766,), (1374405783,), (1374405784,), (1374405785,), (1374405786,), (1374405788,), (1374405792,), (1374405803,), (1374405804,), (1374405805,), (1374405806,), (1374405807,), (1374405809,), (1374405836,), (1374405837,), (1374405838,), (1374405839,), (1374405841,), (1374405845,), (1374405952,), (1374406316,), (1374406342,), (1374406366,), (1374406389,), (1374406412,), (1374406437,), (1374406720,), (1374406744,), (1374406768,), (1374406793,), (1374406816,), (1374406842,), (1374406951,), (1374406960,), (1374406964,), (1374406965,), (1374406966,), (1374406968,), (1374407024,), (1374407052,), (1374407094,), (1374407120,), (1374407145,), (1374407168,), (1374407438,), (1374407528,), (1374407560,), (1374407588,), (1374407612,), (1374407637,), (1374407665,), (1374407859,), (1374407886,), (1374407912,), (1374407935,), (1374407962,), (1374407996,), (1374408580,), (1374434721,), (1374409146,), (1374409182,), (1374409217,), (1374409242,), (1374409265,), (1374409290,), (1374409622,), (1374409658,), (1374409690,), (1374409713,), (1374409719,), (1374409721,), (1374409738,), (1374409739,), (1374409740,), (1374409741,), (1374409743,), (1374409745,), (1374409996,), (1374410043,), (1374410096,), (1374410141,), (1374410189,), (1374410237,), (1374410500,), (1374410523,), (1374410548,), (1374410560,), (1374410564,), (1374410567,), (1374411090,), (1374411482,), (1374411506,), (1374411554,), (1374411582,), (1374411607,), (1374411632,), (1374411793,), (1374411795,), (1374411797,), (1374411798,), (1374411799,), (1374411820,), (1374412047,), (1374412050,), (1374412052,), (1374412075,), (1374412103,), (1374412117,), (1374412165,), (1374412169,), (1374412170,), (1374412171,), (1374412172,), (1374412174,), (1374412190,), (1374412192,), (1374412194,), (1374412196,), (1374412197,), (1374412199,), (1374412221,), (1374412451,), (1374412475,), (1374412501,), (1374412526,), (1374412551,), (1374412575,), (1374413343,), (1374413717,), (1374414186,), (1374414211,), (1374414240,), (1374414275,), (1374414324,), (1374414370,), (1374414777,), (1374414804,), (1374414824,), (1374414882,), (1374414924,), (1374414961,), (1374415156,), (1374415164,), (1374415169,), (1374415172,), (1374415176,), (1374415181,), (1374415191,), (1374415421,), (1374415429,), (1374415430,), (1374415439,), (1374415469,), (1374415477,), (1374415526,), (1374415527,), (1374415528,), (1374415529,), (1374415532,), (1374415535,), (1374415551,), (1374415552,), (1374415553,), (1374415554,), (1374415555,), (1374415557,), (1374415572,), (1374415574,), (1374415575,), (1374415576,), (1374415577,), (1374415579,), (1374415602,), (1374415609,), (1374415610,), (1374415611,), (1374415612,), (1374415614,), (1374415649,), (1374415688,), (1374415696,), (1374415697,), (1374415698,), (1374415700,), (1374415703,), (1374415723,), (1374415735,), (1374415740,), (1374415741,), (1374415742,), (1374415744,), (1374416020,), (1374416090,), (1374416160,), (1374416227,), (1374416290,), (1374416356,), (1374416922,), (1374416972,), (1374417021,), (1374417070,), (1374417122,), (1374417171,), (1374417602,), (1374417634,), (1374417659,), (1374417684,), (1374417710,), (1374417741,), (1374418197,), (1374418226,), (1374418231,), (1374418232,), (1374418274,), (1374418306,), (1374418462,), (1374418499,), (1374418531,), (1374418556,), (1374418580,), (1374418608,), (1374418937,), (1374418960,), (1374419000,), (1374419045,), (1374419094,), (1374419120,), (1374419328,), (1374419329,), (1374419330,), (1374419331,), (1374419333,), (1374419337,), (1374419604,), (1374419758,), (1374419795,), (1374419831,), (1374419857,), (1374419883,), (1374419909,), (1374419970,), (1374419973,), (1374419976,), (1374419978,), (1374419981,), (1374419985,), (1374420027,), (1374420042,), (1374420060,), (1374420064,), (1374420066,), (1374420069,), (1374420140,), (1374420154,), (1374420163,), (1374420165,), (1374420167,), (1374420170,), (1374420188,), (1374420191,), (1374420194,), (1374420196,), (1374420198,), (1374420202,), (1374420226,), (1374420242,), (1374420250,), (1374420251,), (1374420252,), (1374420254,), (1374420275,), (1374420286,), (1374420293,), (1374420294,), (1374420295,), (1374420297,), (1374420310,), (1374420322,), (1374420330,), (1374420334,), (1374420336,), (1374420338,), (1374420352,), (1374420364,), (1374420372,), (1374420379,), (1374420381,), (1374420384,), (1374420424,), (1374420436,), (1374420438,), (1374420440,), (1374420441,), (1374420442,), (1374420444,), (1374420451,), (1374420466,), (1374420496,), (1374420505,), (1374420509,), (1374420510,), (1374420512,), (1374420514,), (1374420532,), (1374420540,), (1374420546,), (1374420549,), (1374420552,), (1374420555,), (1374420564,), (1374420568,), (1374420583,), (1374420591,), (1374420595,), (1374420597,), (1374420611,), (1374420614,), (1374420629,), (1374420639,), (1374420640,), (1374420642,), (1374420666,), (1374420671,), (1374420672,), (1374420673,), (1374420674,), (1374420676,), (1374420690,), (1374420714,), (1374420727,), (1374420733,), (1374420734,), (1374420736,), (1374420738,), (1374420785,), (1374420786,), (1374420787,), (1374420788,), (1374420789,), (1374420791,), (1374420811,), (1374420853,), (1374420884,), (1374420885,), (1374420886,), (1374420887,), (1374420888,), (1374420890,), (1374420953,), (1374420960,), (1374420963,), (1374420964,), (1374420965,), (1374420969,), (1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,), (1374424414,), (1374424442,), (1374424473,), (1374424499,), (1374424524,), (1374424558,), (1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,), (1374428102,), (1374428109,), (1374428111,), (1374428112,), (1374428117,), (1374428137,), (1374428152,), (1374428177,), (1374428183,), (1374428187,), (1374428196,), (1374428197,), (1374428200,), (1374428218,), (1374428220,), (1374428234,), (1374428239,), (1374428241,), (1374428244,), (1374428273,), (1374428276,), (1374428300,), (1374428326,), (1374428350,), (1374428377,), (1374428553,), (1374428571,), (1374428579,), (1374428585,), (1374428587,), (1374428588,), (1374428591,), (1374428606,), (1374428608,), (1374428610,), (1374428612,), (1374428613,), (1374428616,), (1374428635,), (1374428650,), (1374428674,), (1374428699,), (1374428722,), (1374428746,), (1374429006,), (1374429033,), (1374429058,), (1374429082,), (1374429105,), (1374429130,), (1374429375,), (1374429402,), (1374429425,), (1374429450,), (1374429474,), (1374429501,), (1374429606,), (1374429609,), (1374429611,), (1374429612,), (1374429614,), (1374429617,), (1374429853,), (1374429881,), (1374429905,), (1374429907,), (1374429911,), (1374429937,), (1374429955,), (1374429963,), (1374429992,), (1374430015,), (1374430038,), (1374430065,), (1374430206,), (1374430212,), (1374430220,), (1374430225,), (1374430227,), (1374430230,), (1374434667,), (1374430445,), (1374430540,), (1374430542,), (1374430544,), (1374430545,), (1374430547,), (1374430550,), (1374430560,), (1374430579,), (1374430580,), (1374430582,), (1374430588,), (1374430595,), (1374430599,), (1374430613,), (1374430615,), (1374430620,), (1374430624,), (1374430629,), (1374430633,), (1374430638,), (1374430934,), (1374430960,), (1374430983,), (1374431030,), (1374431056,), (1374431083,), (1374431223,), (1374431285,), (1374431312,), (1374431331,), (1374431334,), (1374431366,), (1374431576,), (1374431598,), (1374431606,), (1374431607,), (1374431608,), (1374431610,), (1374431639,), (1374431641,), (1374431643,), (1374431645,), (1374431648,), (1374431649,), (1374431677,), (1374431678,), (1374431679,), (1374431680,), (1374431682,), (1374431685,), (1374431723,), (1374432043,), (1374432044,), (1374432045,), (1374432108,), (1374432164,), (1374432182,), (1374432214,), (1374432253,), (1374432278,), (1374432303,), (1374432313,), (1374432315,), (1374432460,), (1374432486,), (1374432515,), (1374432538,), (1374432562,), (1374432564,), (1374434611,), (1374432702,), (1374432706,), (1374432708,), (1374432709,), (1374432711,), (1374432735,), (1374432788,), (1374432790,), (1374432792,), (1374432793,), (1374432796,), (1374432820,), (1374433000,), (1374433025,), (1374433046,), (1374433052,), (1374433063,), (1374433068,), (1374433121,), (1374433123,), (1374433125,), (1374433126,), (1374433127,), (1374433129,), (1374433186,), (1374433190,), (1374433198,), (1374433202,), (1374433220,), (1374433242,), (1374433491,), (1374433646,), (1374433648,), (1374433650,), (1374433651,), (1374433652,), (1374433654,), (1374433673,), (1374433674,), (1374433675,), (1374433677,), (1374433700,), (1374433725,), (1374433895,), (1374433921,), (1374433936,), (1374433937,), (1374433946,), (1374433973,), (1374434008,), (1374434009,), (1374434010,), (1374434011,), (1374434013,), (1374434017,), (1374434034,), (1374434035,), (1374434036,), (1374434037,), (1374434039,), (1374434041,), (1374434065,), (1374434087,), (1374434095,), (1374434096,), (1374434098,), (1374434100,), (1374434104,), (1374434560,), (1374435202,), (1374435323,), (1374435396,), (1374435420,), (1374435443,), (1374435470,), (1374435495,), (1374435519,), (1374435667,), (1374435703,), (1374435716,), (1374435717,), (1374435718,), (1374435747,), (1374435864,), (1374435866,), (1374435868,), (1374435869,), (1374435870,), (1374435871,), (1374436024,), (1374436054,), (1374436083,), (1374436106,), (1374436133,), (1374436152,), (1374436248,), (1374436256,), (1374436258,), (1374436260,), (1374436261,), (1374436264,), (1374436280,), (1374436281,), (1374436283,), (1374436285,), (1374436288,), (1374436291,), (1374436303,), (1374436307,), (1374436309,), (1374436310,), (1374436312,), (1374436315,), (1374436331,), (1374436339,), (1374436342,), (1374436343,), (1374436345,), (1374436348,), (1374436390,), (1374436410,), (1374436414,), (1374436416,), (1374436418,), (1374436419,), (1374436422,), (1374436443,), (1374436444,), (1374436445,), (1374436446,), (1374436447,), (1374436449,), (1374436468,), (1374436469,), (1374436470,), (1374436471,), (1374436472,), (1374436476,), (1374436505,), (1374436535,), (1374436539,), (1374436540,), (1374436541,), (1374436542,), (1374436544,), (1374436583,), (1374436586,), (1374436587,), (1374436588,), (1374436589,), (1374436591,), (1374436609,), (1374436610,), (1374436611,), (1374436612,), (1374436614,), (1374436617,), (1374436635,), (1374436641,), (1374436643,), (1374436644,), (1374436645,), (1374436647,), (1374436659,), (1374436663,), (1374436664,), (1374436665,), (1374436668,), (1374436672,), (1374436732,), (1374436750,), (1374436751,), (1374436752,), (1374436753,), (1374436754,), (1374436756,), (1374436771,), (1374436772,), (1374436773,), (1374436774,), (1374436775,), (1374436777,), (1374436795,), (1374436798,), (1374436808,), (1374436812,), (1374436813,), (1374436815,), (1374436838,), (1374436861,), (1374436862,), (1374436863,), (1374436864,), (1374436866,), (1374436870,), (1374436887,), (1374436888,), (1374436892,), (1374436898,), (1374436899,), (1374436901,), (1374436918,), (1374436926,), (1374436928,), (1374436929,), (1374436931,), (1374436933,), (1374436952,), (1374436953,), (1374436954,), (1374436955,), (1374436956,), (1374436958,), (1374436982,), (1374436985,), (1374436987,), (1374436988,), (1374436990,), (1374436992,), (1374437007,), (1374437028,), (1374437029,), (1374437030,), (1374437031,), (1374437033,), (1374437036,), (1374437061,), (1374437086,), (1374437088,), (1374437090,), (1374437091,), (1374437092,), (1374437094,), (1374437117,), (1374437120,), (1374437123,), (1374437125,), (1374437128,), (1374437139,), (1374437169,), (1374437175,), (1374437182,), (1374437183,), (1374437185,), (1374437187,), (1374437201,), (1374437204,), (1374437207,), (1374437208,), (1374437209,), (1374437216,), (1374437242,), (1374437247,), (1374437249,), (1374437250,), (1374437251,), (1374437253,), (1374437266,), (1374437291,), (1374437298,), (1374437300,), (1374437301,), (1374437302,), (1374437304,), (1374437327,), (1374437368,), (1374437374,), (1374437378,), (1374437380,), (1374437382,), (1374437386,), (1374437563,), (1374437591,), (1374437610,), (1374437612,), (1374437614,), (1374437618,), (1374437637,), (1374437640,), (1374437643,), (1374437645,), (1374437647,), (1374437650,), (1374437669,), (1374437677,), (1374437684,), (1374437685,), (1374437687,), (1374437690,), (1374437709,), (1374437712,), (1374437714,), (1374437716,), (1374437719,), (1374437721,), (1374437762,), (1374437790,), (1374437793,), (1374437794,), (1374437795,), (1374437796,), (1374437798,), (1374437928,), (1374437963,), (1374437988,), (1374438013,), (1374438037,), (1374438062,), (1374438162,), (1374438168,), (1374438170,), (1374438172,), (1374438174,), (1374438177,), (1374438198,), (1374438224,), (1374438227,), (1374438238,), (1374438245,), (1374438247,), (1374438251,), (1374438301,), (1374438308,), (1374438312,), (1374438313,), (1374438315,), (1374438319,), (1374438409,), (1374438435,), (1374438462,), (1374438490,), (1374438516,), (1374438524,), (1374438541,), (1374438542,), (1374438544,), (1374438546,), (1374438549,), (1374438553,), (1374438576,), (1374438578,), (1374438579,), (1374438580,), (1374438582,), (1374438586,), (1374438623,), (1374438625,), (1374438627,), (1374438628,), (1374438629,), (1374438631,), (1374438824,), (1374438851,), (1374438874,), (1374438898,), (1374438921,), (1374438946,), (1374439769,), (1374440182,), (1374440521,), (1374440523,), (1374440525,), (1374440526,), (1374440528,), (1374440531,), (1374440723,), (1374440738,), (1374440740,), (1374440741,), (1374440765,), (1374440784,), (1374440860,), (1374440862,), (1374440865,), (1374440866,), (1374440868,), (1374440871,), (1374440895,), (1374440898,), (1374440901,), (1374440904,), (1374440907,), (1374440910,), (1374440933,), (1374440936,), (1374440939,), (1374440942,), (1374440943,), (1374440947,), (1374440964,), (1374440971,), (1374440981,), (1374440984,), (1374440987,), (1374440991,), (1374441008,), (1374441012,), (1374441015,), (1374441017,), (1374441020,), (1374441024,), (1374441045,), (1374441054,), (1374441078,), (1374441103,), (1374441128,), (1374441155,), (1374441382,), (1374441385,), (1374441388,), (1374441390,), (1374441392,), (1374441395,), (1374441444,), (1374441480,), (1374441482,), (1374441484,), (1374441485,), (1374441487,), (1374441490,), (1374441513,), (1374441523,), (1374441527,), (1374441530,), (1374441533,), (1374441537,), (1374441556,), (1374441558,), (1374441562,), (1374441566,), (1374441567,), (1374441571,), (1374441588,), (1374441622,), (1374441660,), (1374441667,), (1374441675,), (1374441685,), (1374441686,), (1374441688,), (1374441778,), (1374441781,), (1374441782,), (1374441783,), (1374441785,), (1374441787,), (1374441800,), (1374441802,), (1374441804,), (1374441805,), (1374441806,), (1374441808,), (1374441833,), (1374441835,), (1374441837,), (1374441838,), (1374441839,), (1374441842,), (1374441910,), (1374441951,), (1374441955,), (1374441957,), (1374441960,), (1374441962,), (1374441966,), (1374441978,), (1374441981,), (1374441983,), (1374441985,), (1374441987,), (1374441990,), (1374442007,), (1374442009,), (1374442021,), (1374442026,), (1374442034,), (1374442039,), (1374442050,), (1374442057,), (1374442065,), (1374442068,), (1374442069,), (1374442073,), (1374442085,), (1374442087,), (1374442089,), (1374442091,), (1374442093,), (1374442096,), (1374442110,), (1374442113,), (1374442115,), (1374442117,), (1374442118,), (1374442121,), (1374442145,), (1374442148,), (1374442151,), (1374442152,), (1374442154,), (1374442158,), (1374442183,), (1374442186,), (1374442189,), (1374442190,), (1374442191,), (1374442193,), (1374442218,), (1374442221,), (1374442224,), (1374442226,), (1374442228,), (1374442231,), (1374442246,), (1374442269,), (1374442272,), (1374442275,), (1374442276,), (1374442278,), (1374442281,), (1374442360,), (1374442617,), (1374442641,), (1374442665,), (1374442691,), (1374442709,), (1374442713,), (1374442845,), (1374443031,), (1374443047,), (1374443059,), (1374443060,), (1374443061,), (1374443066,), (1374443095,), (1374443096,), (1374443097,), (1374443098,), (1374443102,), (1374443106,), (1374443178,), (1374443200,), (1374443225,), (1374443237,), (1374443238,), (1374443252,), (1374443342,), (1374443345,), (1374443347,), (1374443348,), (1374443351,), (1374443359,), (1374443385,), (1374443391,), (1374443392,), (1374443393,), (1374443407,), (1374443439,), (1374443513,), (1374443517,), (1374443542,), (1374443552,), (1374443553,), (1374443555,), (1374443611,), (1374443832,), (1374443834,), (1374443843,), (1374443844,), (1374443845,), (1374443857,), (1374444002,), (1374444044,), (1374444070,), (1374444082,), (1374444083,), (1374444096,), (1374444197,), (1374444203,), (1374444205,), (1374444207,), (1374444208,), (1374444211,), (1374444314,), (1374444339,), (1374444340,), (1374444351,), (1374444377,), (1374444404,), (1374444704,), (1374444735,), (1374444760,), (1374444797,), (1374444823,), (1374444852,), (1374445183,), (1374445235,), (1374445287,), (1374445333,), (1374445376,), (1374445422,), (1374445799,), (1374445848,), (1374445898,), (1374445943,), (1374445988,), (1374446003,), (1374446338,), (1374446376,), (1374446403,), (1374446429,), (1374446454,), (1374446456,), (1374446553,), (1374446916,), (1374446941,), (1374446965,), (1374446989,), (1374446991,), (1374447005,), (1374447052,), (1374447055,), (1374447057,), (1374447058,), (1374447072,), (1374447108,), (1374447321,), (1374447326,), (1374447327,), (1374447328,), (1374447330,), (1374447334,), (1374447404,), (1374447707,), (1374447709,), (1374447711,), (1374447712,), (1374447714,), (1374447715,), (1374447752,), (1374447755,), (1374447758,), (1374447760,), (1374447762,), (1374447765,), (1374447814,), (1374447839,), (1374447864,), (1374447890,), (1374447916,), (1374447941,), (1374448415,), (1374448654,), (1374449051,), (1374449078,), (1374449105,), (1374449130,), (1374449143,), (1374449147,), (1374449252,), (1374449276,), (1374449302,), (1374449320,), (1374449322,), (1374449325,), (1374449603,), (1374449629,), (1374449654,), (1374449678,), (1374449703,), (1374449729,), (1374449898,), (1374449900,), (1374449902,), (1374449920,), (1374449948,), (1374449973,), (1374450147,), (1374450170,), (1374450173,), (1374450176,), (1374450179,), (1374450181,), (1374450219,), (1374450225,), (1374450229,), (1374450230,), (1374450233,), (1374450236,), (1374450248,), (1374450250,), (1374450252,), (1374450253,), (1374450254,), (1374450258,), (1374450273,), (1374450275,), (1374450276,), (1374450278,), (1374450280,), (1374450283,), (1374450306,), (1374450309,), (1374450312,), (1374450313,), (1374450314,), (1374450317,), (1374450369,), (1374450395,), (1374450399,), (1374450402,), (1374450405,), (1374450408,), (1374450412,), (1374450473,), (1374450501,), (1374450534,), (1374450563,), (1374450587,), (1374450613,), (1374450907,), (1374450932,), (1374450939,), (1374450941,), (1374450944,), (1374450947,), (1374450997,), (1374451027,), (1374451053,), (1374451076,), (1374451106,), (1374451132,), (1374451285,), (1374451318,), (1374451324,), (1374451328,), (1374451330,), (1374451332,), (1374451480,), (1374451485,), (1374451489,), (1374451490,), (1374451495,), (1374451498,), (1374451550,), (1374451554,), (1374451556,), (1374451558,), (1374451560,), (1374451563,), (1374451715,), (1374451812,), (1374451815,), (1374451818,), (1374451840,), (1374451864,), (1374451890,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30072025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25501495]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] map_info['map_portfolio_photo'] : {25501495: [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715, 1374451563, 1374451560, 1374451558, 1374451556, 1374451554, 1374451550, 1374451498, 1374451495, 1374451490, 1374451489, 1374451485, 1374451480, 1374451332, 1374451330, 1374451328, 1374451324, 1374451318, 1374451285]} final : True mtd_id 4302 list_pids : [1374451890, 1374451864, 1374451840, 1374451818, 1374451815, 1374451812, 1374451715] Looping around the photos to save general results len do output : 1 /25501495Didn'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, '3398361') ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361') ('4302', None, None, None, None, None, None, None, '3398361') ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25501495', 'None', None, None, None, None, '3398361'), ('4302', '25501495', '1374451890', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451864', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451840', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451818', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451815', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451812', None, None, None, None, None, '3398361'), ('4302', '25501495', '1374451715', None, None, None, None, None, '3398361')] time used for this insertion : 0.015902996063232422 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2941935062408447 time spend to save output : 0.016088247299194336 total time spend for step 5 : 3.310281753540039 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 (3398361) 2.19user 2.34system 0:08.11elapsed 55%CPU (0avgtext+0avgdata 160464maxresident)k 2408inputs+5704outputs (97major+64173minor)pagefaults 0swaps