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 : 3446603 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 (3329657) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3329657) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233451 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3329657'] with mtr_portfolio_ids : ['25233451'] and first list_photo_ids : [] new path : /proc/3446603/ Name: python3 Umask: 0002 State: R (running) Tgid: 3446603 Ngid: 0 Pid: 3446603 PPid: 3446602 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3446603 NSpid: 3446603 NSpgid: 3445274 NSsid: 3445274 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98844 kB VmRSS: 98844 kB RssAnon: 59816 kB RssFile: 39028 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 52 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3446603', 'Ngid': '0', 'Pid': '3446603', 'PPid': '3446602', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3446603', 'NSpid': '3446603', 'NSpgid': '3445274', 'NSsid': '3445274', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98844 kB', 'VmRSS': '98844 kB', 'RssAnon': '59816 kB', 'RssFile': '39028 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '52', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '3446603', '1106896', '0', '1106896', '865648', '98844', b'', 'marlene', '3329657') 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 (25233451) 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 (3329657 ) ) 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 (25233451) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373375079, 'portfolio_id': 25233451}, {'photo_id': 1373375074, 'portfolio_id': 25233451}, {'photo_id': 1373375071, 'portfolio_id': 25233451}, {'photo_id': 1373375069, 'portfolio_id': 25233451}, {'photo_id': 1373375067, 'portfolio_id': 25233451}, {'photo_id': 1373375065, 'portfolio_id': 25233451}, {'photo_id': 1373374969, 'portfolio_id': 25233451}, {'photo_id': 1373374967, 'portfolio_id': 25233451}, {'photo_id': 1373374965, 'portfolio_id': 25233451}, {'photo_id': 1373374964, 'portfolio_id': 25233451}, {'photo_id': 1373374962, 'portfolio_id': 25233451}, {'photo_id': 1373374959, 'portfolio_id': 25233451}] map_portfolio_id_photo_id: {25233451: [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065, 1373374969, 1373374967, 1373374965, 1373374964, 1373374962, 1373374959]} ##### 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.015651702880859375 #### 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 23 18:48: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 (25233451) 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 : 25233451 get user id for portfolio 25233451 get sub ptf for main ptf 25233451, type 3726 and hashtags ['mal_croppe', 'plastique', 'flou', 'cartonnette', 'environnement', 'autre_refus', 'Carton_brun', 'papier', 'kraft', 'Carton_gris', 'metal', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25233451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','flou','cartonnette','environnement','autre_refus','Carton_brun','papier','kraft','Carton_gris','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25233451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','flou','cartonnette','environnement','autre_refus','Carton_brun','papier','kraft','Carton_gris','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25233451, 'sub_port_id': 25233472, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020526, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'cartonnette': {'main_port_id': 25233451, 'sub_port_id': 25233473, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020527, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'papier': {'main_port_id': 25233451, 'sub_port_id': 25233474, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020528, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'autre_refus': {'main_port_id': 25233451, 'sub_port_id': 25233475, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020529, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'kraft': {'main_port_id': 25233451, 'sub_port_id': 25233476, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020530, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'Carton_gris': {'main_port_id': 25233451, 'sub_port_id': 25233477, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020531, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'mal_croppe': {'main_port_id': 25233451, 'sub_port_id': 25233478, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020532, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'Carton_brun': {'main_port_id': 25233451, 'sub_port_id': 25233479, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020533, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'flou': {'main_port_id': 25233451, 'sub_port_id': 25233480, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020534, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'environnement': {'main_port_id': 25233451, 'sub_port_id': 25233481, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020535, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'metal': {'main_port_id': 25233451, 'sub_port_id': 25233482, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020536, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}, 'plastique': {'main_port_id': 25233451, 'sub_port_id': 25233483, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020537, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25233472 , 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=25233451 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 (25233472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233473 , 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=25233451 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 (25233473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233474 , 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=25233451 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 (25233474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233475 , 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=25233451 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 (25233475) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233476 , 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=25233451 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 (25233476) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233477 , 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=25233451 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 (25233477) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233478 , 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=25233451 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 (25233478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233479 , 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=25233451 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 (25233479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233480 , 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=25233451 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 (25233480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233481 , 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=25233451 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 (25233481) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233482 , 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=25233451 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 (25233482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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 25233483 , 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=25233451 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 (25233483) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25233451) result : ((1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) 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`=25233451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','flou','cartonnette','environnement','autre_refus','Carton_brun','papier','kraft','Carton_gris','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25233451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','flou','cartonnette','environnement','autre_refus','Carton_brun','papier','kraft','Carton_gris','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25233451, 'sub_port_id': 25233484, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020538, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'cartonnette': {'main_port_id': 25233451, 'sub_port_id': 25233485, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020539, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'papier': {'main_port_id': 25233451, 'sub_port_id': 25233486, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020540, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'autre_refus': {'main_port_id': 25233451, 'sub_port_id': 25233487, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020541, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'kraft': {'main_port_id': 25233451, 'sub_port_id': 25233488, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020542, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'Carton_gris': {'main_port_id': 25233451, 'sub_port_id': 25233489, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020543, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'mal_croppe': {'main_port_id': 25233451, 'sub_port_id': 25233490, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020544, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'Carton_brun': {'main_port_id': 25233451, 'sub_port_id': 25233491, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020545, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'flou': {'main_port_id': 25233451, 'sub_port_id': 25233492, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020546, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'environnement': {'main_port_id': 25233451, 'sub_port_id': 25233493, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020547, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'metal': {'main_port_id': 25233451, 'sub_port_id': 25233494, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020548, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}, 'plastique': {'main_port_id': 25233451, 'sub_port_id': 25233495, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17020549, 'last_updated_at': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 18, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 18, 46, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25233495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25233483 lien utilise dans velours : https://www.fotonower.com/velours/25233484,25233485,25233486,25233487,25233488,25233489,25233490,25233491,25233492,25233493,25233494,25233495?tags=Teint_Dans_La_Masse,cartonnette,papier,autre_refus,kraft,Carton_gris,mal_croppe,Carton_brun,flou,environnement,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25233451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] map_info['map_portfolio_photo'] : {25233451: [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065, 1373374969, 1373374967, 1373374965, 1373374964, 1373374962, 1373374959]} final : False mtd_id 4302 list_pids : [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] Looping around the photos to save general results len do output : 1 /25233451. 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, '3329657') ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657') 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', None, '25233451', "{'Teint_Dans_La_Masse': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483}", None, None, None, None, '3329657'), ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657')] time used for this insertion : 0.015022516250610352 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5270087718963623 time spend to save output : 0.015260457992553711 total time spend for step 1 : 1.542269229888916 step2:final Wed Jul 23 18:48: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 (25233451) 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 25233451 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373374969,1373374967,1373374965,1373374964,1373374962,1373374959,1373375079,1373375074,1373375071,1373375069,1373375067,1373375065); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25233451]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} new output for save of step final : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] map_info['map_portfolio_photo'] : {25233451: [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065, 1373374969, 1373374967, 1373374965, 1373374964, 1373374962, 1373374959]} final : False mtd_id 4302 list_pids : [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] Looping around the photos to save general results len do output : 6 /1373375079.Didn't retrieve data . /1373375074.Didn't retrieve data . /1373375071.Didn't retrieve data . /1373375069.Didn't retrieve data . /1373375067.Didn't retrieve data . /1373375065.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, '3329657') ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25233451', '1373375079', '0.0', None, None, None, None, '3329657'), ('4302', '25233451', '1373375074', '0.0', None, None, None, None, '3329657'), ('4302', '25233451', '1373375071', '0.0', None, None, None, None, '3329657'), ('4302', '25233451', '1373375069', '0.0', None, None, None, None, '3329657'), ('4302', '25233451', '1373375067', '0.0', None, None, None, None, '3329657'), ('4302', '25233451', '1373375065', '0.0', None, None, None, None, '3329657')] time used for this insertion : 0.014058589935302734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05061769485473633 time spend to save output : 0.01444554328918457 total time spend for step 2 : 0.0650632381439209 step3:velours_tree Wed Jul 23 18:48: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 complete output_args for input 0 : {25233451: [{'Teint_Dans_La_Masse': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483}]} input_args_next_step : {25233451: ()} output_args : {25233451: [{'Teint_Dans_La_Masse': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483}]} args : 25233451 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': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25233451) 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([25233451]) 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.31258177757263184 time spend to save output : 6.29425048828125e-05 total time spend for step 3 : 0.31264472007751465 step4:send_mail_cod Wed Jul 23 18:48: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 : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} input_args_next_step : {1373375079: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375079 depend.output_id : 0 input_args_next_step : {1373375079: ('0.0',), 1373375074: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375074 depend.output_id : 0 input_args_next_step : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375071 depend.output_id : 0 input_args_next_step : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375069 depend.output_id : 0 input_args_next_step : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375067 depend.output_id : 0 input_args_next_step : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ()} output_args : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',)} args : 1373375065 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 : {25233451: [{'Teint_Dans_La_Masse': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483}]} input_args_next_step : {1373375079: ('0.0',), 1373375074: ('0.0',), 1373375071: ('0.0',), 1373375069: ('0.0',), 1373375067: ('0.0',), 1373375065: ('0.0',), 25233451: ()} output_args : {25233451: [{'Teint_Dans_La_Masse': 25233472, 'cartonnette': 25233473, 'papier': 25233474, 'autre_refus': 25233475, 'kraft': 25233476, 'Carton_gris': 25233477, 'mal_croppe': 25233478, 'Carton_brun': 25233479, 'flou': 25233480, 'environnement': 25233481, 'metal': 25233482, 'plastique': 25233483}]} args : 25233451 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 :7, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25233451) 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 (1373375079,1373375074,1373375071,1373375069,1373375067,1373375065) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373375065 begin to download photo : 1373375069 begin to download photo : 1373375074 download finish for photo 1373375065 begin to download photo : 1373375067 download finish for photo 1373375069 begin to download photo : 1373375071 download finish for photo 1373375074 begin to download photo : 1373375079 download finish for photo 1373375071 download finish for photo 1373375067 download finish for photo 1373375079 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette252334731753289339/ imagette252334751753289339/ imagette252334761753289339/ imagette252334781753289339/ imagette252334801753289339/ imagette252334821753289339/ imagette252334831753289339/ imagette252334721753289339/ imagette252334771753289339/ imagette252334791753289339/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P25233451_23-07-2025_18_48_59.pdf 25233473 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=25233473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334731753289339 25233475 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=25233475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334751753289339 25233476 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=25233476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334761753289339 25233478 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=25233478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334781753289339 25233480 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=25233480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334801753289339 25233482 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=25233482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334821753289339 25233483 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=25233483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334831753289339 25233472 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=25233472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334721753289339 25233477 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=25233477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334771753289339 25233479 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=25233479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252334791753289339 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25233451 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25233484,25233485,25233486,25233487,25233488,25233489,25233490,25233491,25233492,25233493,25233494,25233495?tags=Teint_Dans_La_Masse,cartonnette,papier,autre_refus,kraft,Carton_gris,mal_croppe,Carton_brun,flou,environnement,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1373375079] : ('0.0',) no score found for photo 1373375079 We are sending mail with results at report@fotonower.com args[1373375074] : ('0.0',) no score found for photo 1373375074 We are sending mail with results at report@fotonower.com args[1373375071] : ('0.0',) no score found for photo 1373375071 We are sending mail with results at report@fotonower.com args[1373375069] : ('0.0',) no score found for photo 1373375069 We are sending mail with results at report@fotonower.com args[1373375067] : ('0.0',) no score found for photo 1373375067 We are sending mail with results at report@fotonower.com args[1373375065] : ('0.0',) no score found for photo 1373375065 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=25233451 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_P25233451_23-07-2025_18_48_59.pdf results_Auto_P25233451_23-07-2025_18_48_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25233451_23-07-2025_18_48_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','25233451','results_Auto_P25233451_23-07-2025_18_48_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25233451_23-07-2025_18_48_59.pdf','pdf','','0.07','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25233451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] map_info['map_portfolio_photo'] : {25233451: [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065, 1373374969, 1373374967, 1373374965, 1373374964, 1373374962, 1373374959]} final : False mtd_id 4302 list_pids : [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] 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, '3329657') ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '25233451', '1373375079', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657')] time used for this insertion : 0.016211509704589844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2704854011535645 time spend to save output : 0.016428470611572266 total time spend for step 4 : 1.2869138717651367 step5:split_time_score Wed Jul 23 18:49: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 : ['25233451'] 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 : [('25233451',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25233451) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373375069: {'path': 'temp/1753289339_3446603_1373375069_79bd1f69c3e35554b5cfe64935d03116.jpg', 'extension': 'jpg'}, 1373375071: {'path': 'temp/1753289339_3446603_1373375071_d289e78bde0dd762dc7580eba0c5b393.jpg', 'extension': 'jpg'}, 1373375065: {'path': 'temp/1753289339_3446603_1373375065_6ba9f869a8a80a57fadf154bc3a72228.jpg', 'extension': 'jpg'}, 1373375067: {'path': 'temp/1753289339_3446603_1373375067_b768347171ec12bcf67b954465835cff.jpg', 'extension': 'jpg'}, 1373375074: {'path': 'temp/1753289339_3446603_1373375074_7fc66473c52b21d6720898cb63ea47ed.jpg', 'extension': 'jpg'}, 1373375079: {'path': 'temp/1753289339_3446603_1373375079_324f590b60d2e0e95df529e36cd8c0c2.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 = 25233451; (('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 = 25233451 group by h (('18', 12),) 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=25233451 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 (25233451) 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 (25233451) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23072025 25233451 Nombre de photos uploadées : 12 / 23040 (0%) 23072025 25233451 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 23072025 25233451 Nombre de photos taguées (volume) : 0 / 12 (0%) [{'photo_id': 1373374969, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/9f933a657302f96c665030aeef10e54c.jpg', 'username': None, 'uploaded_at': 1753289163, 'text': 'image_23072025_18_45_04_10138.jpg'}, {'photo_id': 1373374967, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/d3fa5244f61e4d7a98f15e70b778546f.jpg', 'username': None, 'uploaded_at': 1753289163, 'text': 'image_23072025_18_45_14_10136.jpg'}, {'photo_id': 1373374965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/9cbb68f73467f52b89b3b57cdd707642.jpg', 'username': None, 'uploaded_at': 1753289163, 'text': 'image_23072025_18_45_24_10132.jpg'}, {'photo_id': 1373374964, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/edcc96b509e275bc3539fcc6decb0639.jpg', 'username': None, 'uploaded_at': 1753289163, 'text': 'image_23072025_18_45_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005903244018554688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25233451, '2025-07-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1998971,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024239301681518555 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= 1998971 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25197613, 'dashboard_result_id': 12961678, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25197615, 'dashboard_result_id': 12961679, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25197619, 'dashboard_result_id': 12961680, '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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25197657, 'dashboard_result_id': 12961681, '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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25197783, 'dashboard_result_id': 12961682, '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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25198343, 'dashboard_result_id': 12961683, '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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25198784, 'dashboard_result_id': 12961684, '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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25199165, 'dashboard_result_id': 12961685, '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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25199515, 'dashboard_result_id': 12961686, '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_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25199911, 'dashboard_result_id': 12961687, '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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25200162, 'dashboard_result_id': 12961688, '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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25200433, 'dashboard_result_id': 12961689, '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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25200785, 'dashboard_result_id': 12961690, '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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25201192, 'dashboard_result_id': 12961691, '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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25201529, 'dashboard_result_id': 12961692, '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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25201927, 'dashboard_result_id': 12961693, '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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25202358, 'dashboard_result_id': 12961694, '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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25202820, 'dashboard_result_id': 12961695, '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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25203148, 'dashboard_result_id': 12961697, '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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25203440, 'dashboard_result_id': 12961698, '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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25203705, 'dashboard_result_id': 12961699, '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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25204069, 'dashboard_result_id': 12961701, '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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25204338, 'dashboard_result_id': 12961702, '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_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25204675, 'dashboard_result_id': 12961703, '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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25205033, 'dashboard_result_id': 12961704, '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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25205470, 'dashboard_result_id': 12961706, '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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25205786, 'dashboard_result_id': 12961707, '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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25206122, 'dashboard_result_id': 12961708, '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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25206518, 'dashboard_result_id': 12961709, '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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25206990, 'dashboard_result_id': 12961710, '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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25207467, 'dashboard_result_id': 12961712, '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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25208004, 'dashboard_result_id': 12961713, '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_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25208494, 'dashboard_result_id': 12961714, '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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25209251, 'dashboard_result_id': 12961715, '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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25209884, 'dashboard_result_id': 12961716, '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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25210669, 'dashboard_result_id': 12961717, '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_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25211266, 'dashboard_result_id': 12961718, '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_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25212119, 'dashboard_result_id': 12961719, '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_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25212818, 'dashboard_result_id': 12961720, '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_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25213405, 'dashboard_result_id': 12961721, '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_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25214060, 'dashboard_result_id': 12961722, '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_P25214060_23-07-2025_12_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25214880, 'dashboard_result_id': 12961723, '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_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25215593, 'dashboard_result_id': 12961724, '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_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25216187, 'dashboard_result_id': 12961725, '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_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25216765, 'dashboard_result_id': 12961726, '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_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25217393, 'dashboard_result_id': 12961727, '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_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25217954, 'dashboard_result_id': 12961728, '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_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25218560, 'dashboard_result_id': 12961729, '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_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25218980, 'dashboard_result_id': 12961730, '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_P25218980_23-07-2025_12_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25219641, 'dashboard_result_id': 12961731, '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_P25219641_23-07-2025_12_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25219649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25219650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25219652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25219653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25219654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25219656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25219657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25219658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25219660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25219661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25219662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25219664, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25220158, 'dashboard_result_id': 12961732, '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_P25220158_23-07-2025_12_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25220170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25220174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220181, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25220705, 'dashboard_result_id': 12961733, '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_P25220705_23-07-2025_13_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25220718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25220727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220729, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25221214, 'dashboard_result_id': 12961734, '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_P25221214_23-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221272, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25221749, 'dashboard_result_id': 12961735, '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_P25221749_23-07-2025_13_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221785, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25222386, 'dashboard_result_id': 12961736, '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_P25222386_23-07-2025_13_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222413, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25222912, 'dashboard_result_id': 12961737, '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_P25222912_23-07-2025_14_01_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222961, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25223291, 'dashboard_result_id': 12961738, '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_P25223291_23-07-2025_14_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25223292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25223293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25223294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25223295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25223296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25223297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25223298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25223299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25223300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25223301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25223302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25223303, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25224098, 'dashboard_result_id': 12961739, '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_P25224098_23-07-2025_14_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224126, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25224782, 'dashboard_result_id': 12961740, '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_P25224782_23-07-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224800, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25225215, 'dashboard_result_id': 12961741, '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_P25225215_23-07-2025_15_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225263, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25225724, 'dashboard_result_id': 12961742, '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_P25225724_23-07-2025_15_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225749, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25226259, 'dashboard_result_id': 12961743, '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_P25226259_23-07-2025_16_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25226295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226307, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25226821, 'dashboard_result_id': 12961744, '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_P25226821_23-07-2025_15_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25226839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25227315, 'dashboard_result_id': 12961745, '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_P25227315_23-07-2025_16_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227362, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25227770, 'dashboard_result_id': 12961746, '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_P25227770_23-07-2025_16_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227799, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25228479, 'dashboard_result_id': 12961747, '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_P25228479_23-07-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228491, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25228923, 'dashboard_result_id': 12961748, '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_P25228923_23-07-2025_16_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228952, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25229375, 'dashboard_result_id': 12961749, '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_P25229375_23-07-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229393, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25229869, 'dashboard_result_id': 12961750, '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_P25229869_23-07-2025_17_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229932, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25230553, 'dashboard_result_id': 12961751, '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_P25230553_23-07-2025_17_30_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25230563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25230564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25230565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25230566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25230567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25230568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25230569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25230570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25230571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25230572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25230573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25230574, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25231017, 'dashboard_result_id': 12961752, '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_P25231017_23-07-2025_17_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25231018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231029, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25231491, 'dashboard_result_id': 12961753, '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_P25231491_23-07-2025_17_59_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231528, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25231855, 'dashboard_result_id': 12961754, '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_P25231855_23-07-2025_18_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231867, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25232576, 'dashboard_result_id': 12961755, '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_P25232576_23-07-2025_18_30_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25232587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25232588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25232589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25232590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25232591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25232592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25232593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25232594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25232595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25232596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25232597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25232598, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25233041, 'dashboard_result_id': 12961756, '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_P25233041_23-07-2025_18_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25233046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25233047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25233048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25233049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25233050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25233051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25233052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25233053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25233054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25233055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25233056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25233057, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2009242, 'mtr_portfolio_id': 25233451, 'dashboard_result_id': 12961757, '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_P25233451_23-07-2025_18_46_59.pdf'}"}] 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 = 25197613 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 = 25197613 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197613 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197613%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197613 and dashboard_run_id = 2009242 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 = 25197615 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': 3323715, 'mtr_portfolio_id': 25197615, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 2), 'result': '0.00839406749354818', 'result_long': None, 'result_double': None}] Qualite : 0.00839406749354818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197615 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197615%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197615 and dashboard_run_id = 2009242 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`=25197615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961679, 0.00839406749354818, "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}") 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 = 25197619 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': 3323716, 'mtr_portfolio_id': 25197619, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 29), 'result': '0.056877370770490834', 'result_long': None, 'result_double': None}] Qualite : 0.056877370770490834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197619 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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}" where mtr_portfolio_id = 25197619 and dashboard_run_id = 2009242 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`=25197619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961680, 0.056877370770490834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, '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 = 25197657 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 = 25197657 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197657_23-07-2025_02_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197657 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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}" where mtr_portfolio_id = 25197657 and dashboard_run_id = 2009242 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 = 25197783 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': 3323718, 'mtr_portfolio_id': 25197783, 'created_at': datetime.datetime(2025, 7, 23, 6, 38, 28), 'result': '0.02886245840882635', 'result_long': None, 'result_double': None}] Qualite : 0.02886245840882635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197783 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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}" where mtr_portfolio_id = 25197783 and dashboard_run_id = 2009242 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`=25197783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961682, 0.02886245840882635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, '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 = 25198343 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': 3323719, 'mtr_portfolio_id': 25198343, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 30), 'result': '0.041808970347004655', 'result_long': None, 'result_double': None}] Qualite : 0.041808970347004655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198343 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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}" where mtr_portfolio_id = 25198343 and dashboard_run_id = 2009242 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`=25198343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961683, 0.041808970347004655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, '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 = 25198784 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': 3323720, 'mtr_portfolio_id': 25198784, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 59), 'result': '0.026347513587036516', 'result_long': None, 'result_double': None}] Qualite : 0.026347513587036516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198784 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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}" where mtr_portfolio_id = 25198784 and dashboard_run_id = 2009242 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`=25198784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961684, 0.026347513587036516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, '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 = 25199165 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': 3323721, 'mtr_portfolio_id': 25199165, 'created_at': datetime.datetime(2025, 7, 23, 6, 40, 28), 'result': '0.03960977473573029', 'result_long': None, 'result_double': None}] Qualite : 0.03960977473573029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199165 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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}" where mtr_portfolio_id = 25199165 and dashboard_run_id = 2009242 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`=25199165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961685, 0.03960977473573029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, '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 = 25199515 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': 3323722, 'mtr_portfolio_id': 25199515, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 29), 'result': '0.03859466299113504', 'result_long': None, 'result_double': None}] Qualite : 0.03859466299113504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199515 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_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}" where mtr_portfolio_id = 25199515 and dashboard_run_id = 2009242 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`=25199515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961686, 0.03859466299113504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, '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 = 25199911 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': 3323723, 'mtr_portfolio_id': 25199911, 'created_at': datetime.datetime(2025, 7, 23, 6, 42), 'result': '0.05261409959447195', 'result_long': None, 'result_double': None}] Qualite : 0.05261409959447195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199911 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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}" where mtr_portfolio_id = 25199911 and dashboard_run_id = 2009242 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`=25199911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961687, 0.05261409959447195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, '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 = 25200162 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': 3323724, 'mtr_portfolio_id': 25200162, 'created_at': datetime.datetime(2025, 7, 23, 6, 42, 31), 'result': '0.04392057109892702', 'result_long': None, 'result_double': None}] Qualite : 0.04392057109892702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200162 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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}" where mtr_portfolio_id = 25200162 and dashboard_run_id = 2009242 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`=25200162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961688, 0.04392057109892702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, '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 = 25200433 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': 3323725, 'mtr_portfolio_id': 25200433, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 27), 'result': '0.031179407153532762', 'result_long': None, 'result_double': None}] Qualite : 0.031179407153532762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200433 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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}" where mtr_portfolio_id = 25200433 and dashboard_run_id = 2009242 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`=25200433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961689, 0.031179407153532762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, '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 = 25200785 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': 3323726, 'mtr_portfolio_id': 25200785, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 58), 'result': '0.051755635640774206', 'result_long': None, 'result_double': None}] Qualite : 0.051755635640774206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200785 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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}" where mtr_portfolio_id = 25200785 and dashboard_run_id = 2009242 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`=25200785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961690, 0.051755635640774206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, '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 = 25201192 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': 3322978, 'mtr_portfolio_id': 25201192, 'created_at': datetime.datetime(2025, 7, 23, 3, 33, 1), 'result': '0.05648432438382716', 'result_long': None, 'result_double': None}] Qualite : 0.05648432438382716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201192 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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}" where mtr_portfolio_id = 25201192 and dashboard_run_id = 2009242 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`=25201192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961691, 0.05648432438382716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, '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 = 25201529 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': 3323063, 'mtr_portfolio_id': 25201529, 'created_at': datetime.datetime(2025, 7, 23, 3, 46, 58), 'result': '0.05412303578779002', 'result_long': None, 'result_double': None}] Qualite : 0.05412303578779002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201529 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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}" where mtr_portfolio_id = 25201529 and dashboard_run_id = 2009242 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`=25201529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961692, 0.05412303578779002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, '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 = 25201927 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': 3323150, 'mtr_portfolio_id': 25201927, 'created_at': datetime.datetime(2025, 7, 23, 4, 1, 1), 'result': '0.067160575223373', 'result_long': None, 'result_double': None}] Qualite : 0.067160575223373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201927 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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}" where mtr_portfolio_id = 25201927 and dashboard_run_id = 2009242 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`=25201927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961693, 0.067160575223373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, '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 = 25202358 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': 3323230, 'mtr_portfolio_id': 25202358, 'created_at': datetime.datetime(2025, 7, 23, 4, 16, 58), 'result': '0.0588588347259472', 'result_long': None, 'result_double': None}] Qualite : 0.0588588347259472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202358 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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}" where mtr_portfolio_id = 25202358 and dashboard_run_id = 2009242 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`=25202358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961694, 0.0588588347259472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, '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 = 25202820 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': 3323286, 'mtr_portfolio_id': 25202820, 'created_at': datetime.datetime(2025, 7, 23, 4, 30, 56), 'result': '0.030636916095391813', 'result_long': None, 'result_double': None}] Qualite : 0.030636916095391813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202820 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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}" where mtr_portfolio_id = 25202820 and dashboard_run_id = 2009242 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`=25202820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961695, 0.030636916095391813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, '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 = 25203148 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': 3323342, 'mtr_portfolio_id': 25203148, 'created_at': datetime.datetime(2025, 7, 23, 4, 46, 30), 'result': '0.04546662090987921', 'result_long': None, 'result_double': None}] Qualite : 0.04546662090987921 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203148 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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}" where mtr_portfolio_id = 25203148 and dashboard_run_id = 2009242 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`=25203148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961697, 0.04546662090987921, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, '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 = 25203440 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': 3323427, 'mtr_portfolio_id': 25203440, 'created_at': datetime.datetime(2025, 7, 23, 5, 0, 32), 'result': '0.034047892328201164', 'result_long': None, 'result_double': None}] Qualite : 0.034047892328201164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203440 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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}" where mtr_portfolio_id = 25203440 and dashboard_run_id = 2009242 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`=25203440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961698, 0.034047892328201164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, '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 = 25203705 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 = 25203705 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 = 25203705 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 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 = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3323504, 'mtr_portfolio_id': 25203705, 'created_at': datetime.datetime(2025, 7, 23, 5, 17), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203705 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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}" where mtr_portfolio_id = 25203705 and dashboard_run_id = 2009242 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`=25203705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961699, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, '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 = 25204069 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': 3323569, 'mtr_portfolio_id': 25204069, 'created_at': datetime.datetime(2025, 7, 23, 5, 33, 1), 'result': '0.037719252713798175', 'result_long': None, 'result_double': None}] Qualite : 0.037719252713798175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204069 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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}" where mtr_portfolio_id = 25204069 and dashboard_run_id = 2009242 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`=25204069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961701, 0.037719252713798175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, '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 = 25204338 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': 3323609, 'mtr_portfolio_id': 25204338, 'created_at': datetime.datetime(2025, 7, 23, 9, 59, 57), 'result': '0.040491279234443775', 'result_long': None, 'result_double': None}] Qualite : 0.040491279234443775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_09_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204338 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_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}" where mtr_portfolio_id = 25204338 and dashboard_run_id = 2009242 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`=25204338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961702, 0.040491279234443775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, '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 = 25204675 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': 3323828, 'mtr_portfolio_id': 25204675, 'created_at': datetime.datetime(2025, 7, 23, 6, 0, 58), 'result': '0.043333880846648694', 'result_long': None, 'result_double': None}] Qualite : 0.043333880846648694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204675 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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}" where mtr_portfolio_id = 25204675 and dashboard_run_id = 2009242 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`=25204675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961703, 0.043333880846648694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, '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 = 25205033 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': 3323904, 'mtr_portfolio_id': 25205033, 'created_at': datetime.datetime(2025, 7, 23, 6, 16, 31), 'result': '0.04369284895710229', 'result_long': None, 'result_double': None}] Qualite : 0.04369284895710229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205033 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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}" where mtr_portfolio_id = 25205033 and dashboard_run_id = 2009242 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`=25205033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961704, 0.04369284895710229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, '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 = 25205470 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': 3323965, 'mtr_portfolio_id': 25205470, 'created_at': datetime.datetime(2025, 7, 23, 6, 30, 58), 'result': '0.037566501258232576', 'result_long': None, 'result_double': None}] Qualite : 0.037566501258232576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205470 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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}" where mtr_portfolio_id = 25205470 and dashboard_run_id = 2009242 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`=25205470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961706, 0.037566501258232576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, '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 = 25205786 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': 3324023, 'mtr_portfolio_id': 25205786, 'created_at': datetime.datetime(2025, 7, 23, 6, 46, 29), 'result': '0.020481238383310903', 'result_long': None, 'result_double': None}] Qualite : 0.020481238383310903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205786 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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}" where mtr_portfolio_id = 25205786 and dashboard_run_id = 2009242 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`=25205786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961707, 0.020481238383310903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, '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 = 25206122 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': 3324089, 'mtr_portfolio_id': 25206122, 'created_at': datetime.datetime(2025, 7, 23, 7, 0, 59), 'result': '0.05796048878129634', 'result_long': None, 'result_double': None}] Qualite : 0.05796048878129634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206122 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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}" where mtr_portfolio_id = 25206122 and dashboard_run_id = 2009242 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`=25206122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961708, 0.05796048878129634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, '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 = 25206518 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': 3324164, 'mtr_portfolio_id': 25206518, 'created_at': datetime.datetime(2025, 7, 23, 7, 16, 58), 'result': '0.07099667329341938', 'result_long': None, 'result_double': None}] Qualite : 0.07099667329341938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206518 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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}" where mtr_portfolio_id = 25206518 and dashboard_run_id = 2009242 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`=25206518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961709, 0.07099667329341938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, '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 = 25206990 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': 3324258, 'mtr_portfolio_id': 25206990, 'created_at': datetime.datetime(2025, 7, 23, 7, 33), 'result': '0.04000680346490748', 'result_long': None, 'result_double': None}] Qualite : 0.04000680346490748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206990 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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}" where mtr_portfolio_id = 25206990 and dashboard_run_id = 2009242 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`=25206990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961710, 0.04000680346490748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, '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 = 25207467 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': 3324327, 'mtr_portfolio_id': 25207467, 'created_at': datetime.datetime(2025, 7, 23, 7, 46, 59), 'result': '0.06197151389701075', 'result_long': None, 'result_double': None}] Qualite : 0.06197151389701075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25207467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25207467 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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}" where mtr_portfolio_id = 25207467 and dashboard_run_id = 2009242 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`=25207467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961712, 0.06197151389701075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, '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 = 25208004 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': 3324425, 'mtr_portfolio_id': 25208004, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 59), 'result': '0.045073214150807984', 'result_long': None, 'result_double': None}] Qualite : 0.045073214150807984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208004 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_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}" where mtr_portfolio_id = 25208004 and dashboard_run_id = 2009242 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`=25208004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961713, 0.045073214150807984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, '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 = 25208494 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': 3324523, 'mtr_portfolio_id': 25208494, 'created_at': datetime.datetime(2025, 7, 23, 8, 16, 58), 'result': '0.039640742541190085', 'result_long': None, 'result_double': None}] Qualite : 0.039640742541190085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208494 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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}" where mtr_portfolio_id = 25208494 and dashboard_run_id = 2009242 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`=25208494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961714, 0.039640742541190085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, '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 = 25209251 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': 3324702, 'mtr_portfolio_id': 25209251, 'created_at': datetime.datetime(2025, 7, 23, 8, 30, 58), 'result': '0.03862680704665533', 'result_long': None, 'result_double': None}] Qualite : 0.03862680704665533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209251 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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}" where mtr_portfolio_id = 25209251 and dashboard_run_id = 2009242 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`=25209251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961715, 0.03862680704665533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, '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 = 25209884 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': 3324906, 'mtr_portfolio_id': 25209884, 'created_at': datetime.datetime(2025, 7, 23, 8, 46, 30), 'result': '0.041345462400560466', 'result_long': None, 'result_double': None}] Qualite : 0.041345462400560466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209884 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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}" where mtr_portfolio_id = 25209884 and dashboard_run_id = 2009242 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`=25209884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961716, 0.041345462400560466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, '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 = 25210669 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': 3325103, 'mtr_portfolio_id': 25210669, 'created_at': datetime.datetime(2025, 7, 23, 9, 0, 57), 'result': '0.05059198256762291', 'result_long': None, 'result_double': None}] Qualite : 0.05059198256762291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25210669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_09_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25210669 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_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, 'pht': 3726}}" where mtr_portfolio_id = 25210669 and dashboard_run_id = 2009242 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`=25210669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961717, 0.05059198256762291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, '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 = 25211266 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 = 25211266 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 = 25211266 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25211266 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 = 25211266 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3325223, 'mtr_portfolio_id': 25211266, 'created_at': datetime.datetime(2025, 7, 23, 9, 16, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25211266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25211266_23-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25211266 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_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, 'pht': 3726}}" where mtr_portfolio_id = 25211266 and dashboard_run_id = 2009242 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`=25211266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961718, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, '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 = 25212119 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 = 25212119 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 = 25212119 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25212119 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 = 25212119 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3325379, 'mtr_portfolio_id': 25212119, 'created_at': datetime.datetime(2025, 7, 23, 9, 32, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25212119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212119_23-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25212119 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_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, 'pht': 3726}}" where mtr_portfolio_id = 25212119 and dashboard_run_id = 2009242 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`=25212119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961719, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, '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 = 25212818 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': 3325479, 'mtr_portfolio_id': 25212818, 'created_at': datetime.datetime(2025, 7, 23, 9, 46, 59), 'result': '0.013747771416496747', 'result_long': None, 'result_double': None}] Qualite : 0.013747771416496747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25212818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212818_23-07-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25212818 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_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, 'pht': 3726}}" where mtr_portfolio_id = 25212818 and dashboard_run_id = 2009242 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`=25212818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961720, 0.013747771416496747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, '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 = 25213405 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': 3325550, 'mtr_portfolio_id': 25213405, 'created_at': datetime.datetime(2025, 7, 23, 10, 2, 57), 'result': '0.02853943853269189', 'result_long': None, 'result_double': None}] Qualite : 0.02853943853269189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25213405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25213405_23-07-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25213405 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_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, 'pht': 3726}}" where mtr_portfolio_id = 25213405 and dashboard_run_id = 2009242 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`=25213405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961721, 0.02853943853269189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, '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 = 25214060 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': 3325682, 'mtr_portfolio_id': 25214060, 'created_at': datetime.datetime(2025, 7, 23, 12, 59, 57), 'result': '0.05478514273375941', 'result_long': None, 'result_double': None}] Qualite : 0.05478514273375941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25214060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214060_23-07-2025_12_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25214060 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_P25214060_23-07-2025_12_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, 'pht': 3726}}" where mtr_portfolio_id = 25214060 and dashboard_run_id = 2009242 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`=25214060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961722, 0.05478514273375941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214060_23-07-2025_12_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, '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 = 25214880 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': 3325839, 'mtr_portfolio_id': 25214880, 'created_at': datetime.datetime(2025, 7, 23, 10, 30, 59), 'result': '0.03268004116190537', 'result_long': None, 'result_double': None}] Qualite : 0.03268004116190537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25214880 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214880_23-07-2025_10_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25214880 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_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, 'pht': 3726}}" where mtr_portfolio_id = 25214880 and dashboard_run_id = 2009242 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`=25214880 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961723, 0.03268004116190537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, '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 = 25215593 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': 3325940, 'mtr_portfolio_id': 25215593, 'created_at': datetime.datetime(2025, 7, 23, 10, 47), 'result': '0.033317620992429714', 'result_long': None, 'result_double': None}] Qualite : 0.033317620992429714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25215593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25215593_23-07-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25215593 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_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, 'pht': 3726}}" where mtr_portfolio_id = 25215593 and dashboard_run_id = 2009242 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`=25215593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961724, 0.033317620992429714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, '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 = 25216187 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': 3326045, 'mtr_portfolio_id': 25216187, 'created_at': datetime.datetime(2025, 7, 23, 11, 1), 'result': '0.060307244709620324', 'result_long': None, 'result_double': None}] Qualite : 0.060307244709620324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25216187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216187_23-07-2025_11_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25216187 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_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, 'pht': 3726}}" where mtr_portfolio_id = 25216187 and dashboard_run_id = 2009242 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`=25216187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961725, 0.060307244709620324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, '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 = 25216765 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': 3326205, 'mtr_portfolio_id': 25216765, 'created_at': datetime.datetime(2025, 7, 23, 11, 17, 27), 'result': '0.04528198762322184', 'result_long': None, 'result_double': None}] Qualite : 0.04528198762322184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25216765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216765_23-07-2025_11_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25216765 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_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, 'pht': 3726}}" where mtr_portfolio_id = 25216765 and dashboard_run_id = 2009242 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`=25216765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961726, 0.04528198762322184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, '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 = 25217393 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': 3326303, 'mtr_portfolio_id': 25217393, 'created_at': datetime.datetime(2025, 7, 23, 11, 31), 'result': '0.027977561572364487', 'result_long': None, 'result_double': None}] Qualite : 0.027977561572364487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25217393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217393_23-07-2025_11_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25217393 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_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, 'pht': 3726}}" where mtr_portfolio_id = 25217393 and dashboard_run_id = 2009242 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`=25217393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961727, 0.027977561572364487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, '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 = 25217954 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': 3326430, 'mtr_portfolio_id': 25217954, 'created_at': datetime.datetime(2025, 7, 23, 11, 46, 31), 'result': '0.0169894377098985', 'result_long': None, 'result_double': None}] Qualite : 0.0169894377098985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25217954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217954_23-07-2025_11_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25217954 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_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, 'pht': 3726}}" where mtr_portfolio_id = 25217954 and dashboard_run_id = 2009242 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`=25217954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961728, 0.0169894377098985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, '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 = 25218560 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': 3326552, 'mtr_portfolio_id': 25218560, 'created_at': datetime.datetime(2025, 7, 23, 12, 0, 32), 'result': '0.03352360847730685', 'result_long': None, 'result_double': None}] Qualite : 0.03352360847730685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25218560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218560_23-07-2025_12_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25218560 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_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, 'pht': 3726}}" where mtr_portfolio_id = 25218560 and dashboard_run_id = 2009242 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`=25218560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961729, 0.03352360847730685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, '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 = 25218980 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': 3326663, 'mtr_portfolio_id': 25218980, 'created_at': datetime.datetime(2025, 7, 23, 12, 16, 29), 'result': '0.035797371577831534', 'result_long': None, 'result_double': None}] Qualite : 0.035797371577831534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25218980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25218980 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_P25218980_23-07-2025_12_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, 'pht': 3726}}" where mtr_portfolio_id = 25218980 and dashboard_run_id = 2009242 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`=25218980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961730, 0.035797371577831534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_16_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, '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 = 25219641 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': 3326802, 'mtr_portfolio_id': 25219641, 'created_at': datetime.datetime(2025, 7, 23, 12, 30, 58), 'result': '0.01926747286512207', 'result_long': None, 'result_double': None}] Qualite : 0.01926747286512207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25219641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25219641_23-07-2025_12_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25219641 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_P25219641_23-07-2025_12_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25219649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25219650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25219652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25219653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25219654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25219656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25219657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25219658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25219660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25219661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25219662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25219664, 'pht': 3726}}" where mtr_portfolio_id = 25219641 and dashboard_run_id = 2009242 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`=25219641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961731, 0.01926747286512207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25219641_23-07-2025_12_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25219649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25219650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25219652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25219653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25219654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25219656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25219657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25219658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25219660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25219661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25219662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25219664, '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 = 25220158 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': 3326921, 'mtr_portfolio_id': 25220158, 'created_at': datetime.datetime(2025, 7, 23, 12, 46, 58), 'result': '0.031422476443354455', 'result_long': None, 'result_double': None}] Qualite : 0.031422476443354455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25220158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25220158_23-07-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25220158 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_P25220158_23-07-2025_12_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25220170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25220174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220181, 'pht': 3726}}" where mtr_portfolio_id = 25220158 and dashboard_run_id = 2009242 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`=25220158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961732, 0.031422476443354455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25220158_23-07-2025_12_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25220170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25220174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220181, '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 = 25220705 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': 3327038, 'mtr_portfolio_id': 25220705, 'created_at': datetime.datetime(2025, 7, 23, 13, 0, 31), 'result': '0.23524524160580648', 'result_long': None, 'result_double': None}] Qualite : 0.23524524160580648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25220705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25220705_23-07-2025_13_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25220705 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_P25220705_23-07-2025_13_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25220718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25220727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220729, 'pht': 3726}}" where mtr_portfolio_id = 25220705 and dashboard_run_id = 2009242 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`=25220705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961733, 0.23524524160580648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25220705_23-07-2025_13_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25220718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25220719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25220720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25220721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25220722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25220723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25220724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25220725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25220726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25220727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25220728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25220729, '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 = 25221214 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': 3327163, 'mtr_portfolio_id': 25221214, 'created_at': datetime.datetime(2025, 7, 23, 13, 17), 'result': '0.10170244742035121', 'result_long': None, 'result_double': None}] Qualite : 0.10170244742035121 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25221214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25221214_23-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25221214 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_P25221214_23-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221272, 'pht': 3726}}" where mtr_portfolio_id = 25221214 and dashboard_run_id = 2009242 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`=25221214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961734, 0.10170244742035121, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25221214_23-07-2025_13_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221272, '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 = 25221749 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': 3327236, 'mtr_portfolio_id': 25221749, 'created_at': datetime.datetime(2025, 7, 23, 13, 30, 58), 'result': '0.03188898466399477', 'result_long': None, 'result_double': None}] Qualite : 0.03188898466399477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25221749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25221749_23-07-2025_13_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25221749 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_P25221749_23-07-2025_13_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221785, 'pht': 3726}}" where mtr_portfolio_id = 25221749 and dashboard_run_id = 2009242 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`=25221749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961735, 0.03188898466399477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25221749_23-07-2025_13_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25221772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25221773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25221774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25221776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25221778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25221779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25221780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25221781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25221782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25221783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25221784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25221785, '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 = 25222386 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': 3327398, 'mtr_portfolio_id': 25222386, 'created_at': datetime.datetime(2025, 7, 23, 13, 46, 59), 'result': '0.04217209928872659', 'result_long': None, 'result_double': None}] Qualite : 0.04217209928872659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25222386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25222386_23-07-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25222386 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_P25222386_23-07-2025_13_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222413, 'pht': 3726}}" where mtr_portfolio_id = 25222386 and dashboard_run_id = 2009242 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`=25222386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961736, 0.04217209928872659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25222386_23-07-2025_13_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222413, '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 = 25222912 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': 3327518, 'mtr_portfolio_id': 25222912, 'created_at': datetime.datetime(2025, 7, 23, 14, 1, 1), 'result': '0.041825679864125505', 'result_long': None, 'result_double': None}] Qualite : 0.041825679864125505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25222912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25222912_23-07-2025_14_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25222912 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_P25222912_23-07-2025_14_01_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222961, 'pht': 3726}}" where mtr_portfolio_id = 25222912 and dashboard_run_id = 2009242 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`=25222912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961737, 0.041825679864125505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25222912_23-07-2025_14_01_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25222950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25222951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25222952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25222953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25222954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25222955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25222956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25222957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25222958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25222959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25222960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25222961, '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 = 25223291 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': 3327616, 'mtr_portfolio_id': 25223291, 'created_at': datetime.datetime(2025, 7, 23, 14, 16, 59), 'result': '0.03662516740441209', 'result_long': None, 'result_double': None}] Qualite : 0.03662516740441209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25223291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25223291_23-07-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25223291 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_P25223291_23-07-2025_14_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25223292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25223293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25223294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25223295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25223296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25223297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25223298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25223299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25223300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25223301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25223302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25223303, 'pht': 3726}}" where mtr_portfolio_id = 25223291 and dashboard_run_id = 2009242 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`=25223291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961738, 0.03662516740441209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25223291_23-07-2025_14_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25223292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25223293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25223294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25223295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25223296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25223297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25223298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25223299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25223300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25223301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25223302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25223303, '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 = 25224098 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': 3327755, 'mtr_portfolio_id': 25224098, 'created_at': datetime.datetime(2025, 7, 23, 14, 32, 30), 'result': '0.022303443808859933', 'result_long': None, 'result_double': None}] Qualite : 0.022303443808859933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25224098 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25224098_23-07-2025_14_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25224098 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_P25224098_23-07-2025_14_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224126, 'pht': 3726}}" where mtr_portfolio_id = 25224098 and dashboard_run_id = 2009242 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`=25224098 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961739, 0.022303443808859933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25224098_23-07-2025_14_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224126, '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 = 25224782 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': 3327875, 'mtr_portfolio_id': 25224782, 'created_at': datetime.datetime(2025, 7, 23, 14, 46, 58), 'result': '0.04195744752694726', 'result_long': None, 'result_double': None}] Qualite : 0.04195744752694726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25224782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25224782_23-07-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25224782 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_P25224782_23-07-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224800, 'pht': 3726}}" where mtr_portfolio_id = 25224782 and dashboard_run_id = 2009242 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`=25224782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961740, 0.04195744752694726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25224782_23-07-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25224789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25224790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25224791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25224792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25224793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25224794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25224795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25224796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25224797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25224798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25224799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25224800, '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 = 25225215 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': 3327967, 'mtr_portfolio_id': 25225215, 'created_at': datetime.datetime(2025, 7, 23, 15, 0, 30), 'result': '0.03157125838234763', 'result_long': None, 'result_double': None}] Qualite : 0.03157125838234763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25225215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25225215_23-07-2025_15_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25225215 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_P25225215_23-07-2025_15_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225263, 'pht': 3726}}" where mtr_portfolio_id = 25225215 and dashboard_run_id = 2009242 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`=25225215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961741, 0.03157125838234763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25225215_23-07-2025_15_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225263, '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 = 25225724 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': 3328082, 'mtr_portfolio_id': 25225724, 'created_at': datetime.datetime(2025, 7, 23, 15, 16, 57), 'result': '0.053021935465229944', 'result_long': None, 'result_double': None}] Qualite : 0.053021935465229944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25225724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25225724_23-07-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25225724 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_P25225724_23-07-2025_15_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225749, 'pht': 3726}}" where mtr_portfolio_id = 25225724 and dashboard_run_id = 2009242 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`=25225724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961742, 0.053021935465229944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25225724_23-07-2025_15_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25225738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25225739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25225740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25225741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25225742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25225743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25225744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25225745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25225746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25225747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25225748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25225749, '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 = 25226259 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': 3328182, 'mtr_portfolio_id': 25226259, 'created_at': datetime.datetime(2025, 7, 23, 16, 0, 58), 'result': '0.05487839123671901', 'result_long': None, 'result_double': None}] Qualite : 0.05487839123671901 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25226259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25226259_23-07-2025_16_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25226259 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_P25226259_23-07-2025_16_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25226295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226307, 'pht': 3726}}" where mtr_portfolio_id = 25226259 and dashboard_run_id = 2009242 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`=25226259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961743, 0.05487839123671901, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25226259_23-07-2025_16_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25226295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226307, '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 = 25226821 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': 3328281, 'mtr_portfolio_id': 25226821, 'created_at': datetime.datetime(2025, 7, 23, 15, 46, 59), 'result': '0.02862592349465109', 'result_long': None, 'result_double': None}] Qualite : 0.02862592349465109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25226821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25226821_23-07-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25226821 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_P25226821_23-07-2025_15_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25226839, 'pht': 3726}}" where mtr_portfolio_id = 25226821 and dashboard_run_id = 2009242 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`=25226821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961744, 0.02862592349465109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25226821_23-07-2025_15_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25226828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25226829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25226830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25226831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25226832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25226833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25226834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25226835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25226836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25226837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25226838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25226839, '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 = 25227315 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': 3328386, 'mtr_portfolio_id': 25227315, 'created_at': datetime.datetime(2025, 7, 23, 16, 1, 31), 'result': '0.06814735842754031', 'result_long': None, 'result_double': None}] Qualite : 0.06814735842754031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25227315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25227315_23-07-2025_16_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25227315 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_P25227315_23-07-2025_16_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227362, 'pht': 3726}}" where mtr_portfolio_id = 25227315 and dashboard_run_id = 2009242 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`=25227315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961745, 0.06814735842754031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25227315_23-07-2025_16_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227362, '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 = 25227770 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': 3328510, 'mtr_portfolio_id': 25227770, 'created_at': datetime.datetime(2025, 7, 23, 16, 16, 29), 'result': '0.021511406727823205', 'result_long': None, 'result_double': None}] Qualite : 0.021511406727823205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25227770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25227770_23-07-2025_16_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25227770 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_P25227770_23-07-2025_16_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227799, 'pht': 3726}}" where mtr_portfolio_id = 25227770 and dashboard_run_id = 2009242 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`=25227770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961746, 0.021511406727823205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25227770_23-07-2025_16_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25227788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25227789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25227790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25227791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25227792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25227793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25227794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25227795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25227796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25227797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25227798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25227799, '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 = 25228479 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': 3328670, 'mtr_portfolio_id': 25228479, 'created_at': datetime.datetime(2025, 7, 23, 16, 32, 59), 'result': '0.04075936379631898', 'result_long': None, 'result_double': None}] Qualite : 0.04075936379631898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25228479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25228479_23-07-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25228479 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_P25228479_23-07-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228491, 'pht': 3726}}" where mtr_portfolio_id = 25228479 and dashboard_run_id = 2009242 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`=25228479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961747, 0.04075936379631898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25228479_23-07-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228491, '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 = 25228923 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': 3328760, 'mtr_portfolio_id': 25228923, 'created_at': datetime.datetime(2025, 7, 23, 16, 46, 30), 'result': '0.04923440064191227', 'result_long': None, 'result_double': None}] Qualite : 0.04923440064191227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25228923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25228923_23-07-2025_16_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25228923 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_P25228923_23-07-2025_16_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228952, 'pht': 3726}}" where mtr_portfolio_id = 25228923 and dashboard_run_id = 2009242 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`=25228923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961748, 0.04923440064191227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25228923_23-07-2025_16_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25228941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25228942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25228943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25228944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25228945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25228946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25228947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25228948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25228949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25228950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25228951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25228952, '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 = 25229375 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': 3328864, 'mtr_portfolio_id': 25229375, 'created_at': datetime.datetime(2025, 7, 23, 17, 2, 58), 'result': '0.04315749362360905', 'result_long': None, 'result_double': None}] Qualite : 0.04315749362360905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25229375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25229375_23-07-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25229375 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_P25229375_23-07-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229393, 'pht': 3726}}" where mtr_portfolio_id = 25229375 and dashboard_run_id = 2009242 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`=25229375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961749, 0.04315749362360905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25229375_23-07-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229393, '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 = 25229869 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': 3328949, 'mtr_portfolio_id': 25229869, 'created_at': datetime.datetime(2025, 7, 23, 17, 16, 58), 'result': '0.03180840473354136', 'result_long': None, 'result_double': None}] Qualite : 0.03180840473354136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25229869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25229869_23-07-2025_17_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25229869 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_P25229869_23-07-2025_17_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229932, 'pht': 3726}}" where mtr_portfolio_id = 25229869 and dashboard_run_id = 2009242 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`=25229869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961750, 0.03180840473354136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25229869_23-07-2025_17_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25229921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25229922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25229923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25229924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25229925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25229926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25229927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25229928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25229929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25229930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25229931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25229932, '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 = 25230553 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': 3329071, 'mtr_portfolio_id': 25230553, 'created_at': datetime.datetime(2025, 7, 23, 17, 30, 58), 'result': '0.05363164451994715', 'result_long': None, 'result_double': None}] Qualite : 0.05363164451994715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25230553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25230553_23-07-2025_17_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25230553 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_P25230553_23-07-2025_17_30_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25230563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25230564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25230565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25230566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25230567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25230568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25230569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25230570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25230571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25230572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25230573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25230574, 'pht': 3726}}" where mtr_portfolio_id = 25230553 and dashboard_run_id = 2009242 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`=25230553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961751, 0.05363164451994715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25230553_23-07-2025_17_30_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25230563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25230564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25230565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25230566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25230567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25230568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25230569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25230570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25230571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25230572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25230573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25230574, '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 = 25231017 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': 3329176, 'mtr_portfolio_id': 25231017, 'created_at': datetime.datetime(2025, 7, 23, 17, 46, 58), 'result': '0.04296163478659932', 'result_long': None, 'result_double': None}] Qualite : 0.04296163478659932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25231017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231017_23-07-2025_17_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25231017 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_P25231017_23-07-2025_17_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25231018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231029, 'pht': 3726}}" where mtr_portfolio_id = 25231017 and dashboard_run_id = 2009242 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`=25231017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961752, 0.04296163478659932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231017_23-07-2025_17_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25231018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231029, '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 = 25231491 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': 3329260, 'mtr_portfolio_id': 25231491, 'created_at': datetime.datetime(2025, 7, 23, 18, 1, 1), 'result': '0.03328963950840787', 'result_long': None, 'result_double': None}] Qualite : 0.03328963950840787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25231491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231491_23-07-2025_18_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25231491 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_P25231491_23-07-2025_18_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231528, 'pht': 3726}}" where mtr_portfolio_id = 25231491 and dashboard_run_id = 2009242 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`=25231491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961753, 0.03328963950840787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231491_23-07-2025_18_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231528, '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 = 25231855 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': 3329371, 'mtr_portfolio_id': 25231855, 'created_at': datetime.datetime(2025, 7, 23, 18, 16, 31), 'result': '0.057341275049961206', 'result_long': None, 'result_double': None}] Qualite : 0.057341275049961206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25231855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231855_23-07-2025_18_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25231855 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_P25231855_23-07-2025_18_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231867, 'pht': 3726}}" where mtr_portfolio_id = 25231855 and dashboard_run_id = 2009242 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`=25231855 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961754, 0.057341275049961206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25231855_23-07-2025_18_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25231856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25231857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25231858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25231859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25231860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25231861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25231862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25231863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25231864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25231865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25231866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25231867, '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 = 25232576 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': 3329478, 'mtr_portfolio_id': 25232576, 'created_at': datetime.datetime(2025, 7, 23, 18, 30, 56), 'result': '0.022620738343660372', 'result_long': None, 'result_double': None}] Qualite : 0.022620738343660372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25232576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25232576_23-07-2025_18_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25232576 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_P25232576_23-07-2025_18_30_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25232587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25232588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25232589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25232590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25232591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25232592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25232593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25232594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25232595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25232596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25232597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25232598, 'pht': 3726}}" where mtr_portfolio_id = 25232576 and dashboard_run_id = 2009242 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`=25232576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961755, 0.022620738343660372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25232576_23-07-2025_18_30_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25232587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25232588, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25232589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25232590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25232591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25232592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25232593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25232594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25232595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25232596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25232597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25232598, '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 = 25233041 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': 3329555, 'mtr_portfolio_id': 25233041, 'created_at': datetime.datetime(2025, 7, 23, 18, 47, 32), 'result': '0.01671107003044802', 'result_long': None, 'result_double': None}] Qualite : 0.01671107003044802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25233041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25233041_23-07-2025_18_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25233041 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_P25233041_23-07-2025_18_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25233046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25233047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25233048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25233049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25233050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25233051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25233052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25233053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25233054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25233055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25233056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25233057, 'pht': 3726}}" where mtr_portfolio_id = 25233041 and dashboard_run_id = 2009242 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`=25233041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12961756, 0.01671107003044802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25233041_23-07-2025_18_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25233046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25233047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25233048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25233049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25233050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25233051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25233052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25233053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25233054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25233055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25233056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25233057, '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 = 25233451 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 = 25233451 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 = 25233451 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25233451 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 = 25233451 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 = 25233451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25233451_23-07-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25233451 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_P25233451_23-07-2025_18_48_59.pdf'}" where mtr_portfolio_id = 25233451 and dashboard_run_id = 2009242 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25197613,25197615,25197619,25197657,25197783,25198343,25198784,25199165,25199515,25199911,25200162,25200433,25200785,25201192,25201529,25201927,25202358,25202820,25203148,25203440,25203705,25204069,25204338,25204675,25205033,25205470,25205786,25206122,25206518,25206990,25207467,25208004,25208494,25209251,25209884,25210669,25211266,25212119,25212818,25213405,25214060,25214880,25215593,25216187,25216765,25217393,25217954,25218560,25218980,25219641,25220158,25220705,25221214,25221749,25222386,25222912,25223291,25224098,25224782,25225215,25225724,25226259,25226821,25227315,25227770,25228479,25228923,25229375,25229869,25230553,25231017,25231491,25231855,25232576,25233041,25233451) result : ((1373217415,), (1373217416,), (1373217419,), (1373217422,), (1373217428,), (1373217434,), (1373217436,), (1373217439,), (1373217441,), (1373217446,), (1373217449,), (1373217453,), (1373217457,), (1373217462,), (1373217596,), (1373217833,), (1373218054,), (1373218126,), (1373218320,), (1373217468,), (1373217469,), (1373217472,), (1373217478,), (1373217480,), (1373217486,), (1373217487,), (1373217490,), (1373217495,), (1373217499,), (1373217504,), (1373217506,), (1373217509,), (1373217510,), (1373217516,), (1373217592,), (1373217840,), (1373218072,), (1373218163,), (1373218297,), (1373217520,), (1373217526,), (1373217530,), (1373217531,), (1373217538,), (1373217543,), (1373217545,), (1373217548,), (1373217550,), (1373217553,), (1373217554,), (1373217560,), (1373217562,), (1373217566,), (1373217569,), (1373217624,), (1373217875,), (1373218078,), (1373218272,), (1373218344,), (1373234778,), (1373217741,), (1373217828,), (1373218043,), (1373218129,), (1373218279,), (1373218359,), (1373218425,), (1373218426,), (1373218427,), (1373218430,), (1373218437,), (1373218840,), (1373234776,), (1373218854,), (1373218893,), (1373218897,), (1373218901,), (1373218904,), (1373218907,), (1373218914,), (1373218944,), (1373218948,), (1373218951,), (1373218954,), (1373218956,), (1373218959,), (1373219138,), (1373219163,), (1373219211,), (1373219263,), (1373219311,), (1373219364,), (1373219907,), (1373220252,), (1373220270,), (1373220298,), (1373220325,), (1373220351,), (1373220378,), (1373220599,), (1373220631,), (1373220658,), (1373220684,), (1373220708,), (1373220734,), (1373221226,), (1373221254,), (1373221282,), (1373221318,), (1373221355,), (1373221403,), (1373221814,), (1373221845,), (1373221866,), (1373221868,), (1373221870,), (1373221871,), (1373222037,), (1373222052,), (1373222056,), (1373222058,), (1373222060,), (1373222063,), (1373222089,), (1373222093,), (1373222096,), (1373222100,), (1373222104,), (1373222106,), (1373222123,), (1373222127,), (1373222132,), (1373222135,), (1373222137,), (1373222139,), (1373222158,), (1373222161,), (1373222163,), (1373222165,), (1373222167,), (1373222170,), (1373222199,), (1373222205,), (1373222210,), (1373222214,), (1373222216,), (1373222218,), (1373222231,), (1373222256,), (1373222259,), (1373222263,), (1373222266,), (1373222269,), (1373222271,), (1373222292,), (1373222296,), (1373222299,), (1373222302,), (1373222304,), (1373222306,), (1373222336,), (1373222346,), (1373222349,), (1373222352,), (1373222354,), (1373222355,), (1373222376,), (1373222379,), (1373222382,), (1373222384,), (1373222386,), (1373222388,), (1373222469,), (1373222498,), (1373222526,), (1373222555,), (1373222586,), (1373222621,), (1373222898,), (1373222926,), (1373222955,), (1373222982,), (1373223006,), (1373223032,), (1373223263,), (1373223265,), (1373223267,), (1373223268,), (1373223270,), (1373223273,), (1373223563,), (1373223642,), (1373223720,), (1373223779,), (1373223828,), (1373223875,), (1373224558,), (1373224611,), (1373224666,), (1373224717,), (1373224765,), (1373224814,), (1373225228,), (1373225282,), (1373225333,), (1373225386,), (1373225436,), (1373225566,), (1373226091,), (1373226258,), (1373226260,), (1373226263,), (1373226264,), (1373226265,), (1373226268,), (1373226504,), (1373226564,), (1373226612,), (1373226660,), (1373226707,), (1373226763,), (1373227293,), (1373227317,), (1373227340,), (1373227371,), (1373227448,), (1373227481,), (1373227698,), (1373227730,), (1373227757,), (1373227783,), (1373227806,), (1373227853,), (1373228139,), (1373228147,), (1373228152,), (1373228154,), (1373228169,), (1373228183,), (1373228223,), (1373228227,), (1373228231,), (1373228235,), (1373228240,), (1373228244,), (1373228507,), (1373228521,), (1373228543,), (1373228560,), (1373228562,), (1373228563,), (1373228677,), (1373228711,), (1373228741,), (1373228762,), (1373228785,), (1373228809,), (1373229086,), (1373229300,), (1373229334,), (1373229337,), (1373229340,), (1373229351,), (1373229382,), (1373229465,), (1373229497,), (1373229528,), (1373229554,), (1373229579,), (1373229604,), (1373230037,), (1373230081,), (1373230122,), (1373230166,), (1373230211,), (1373230257,), (1373230492,), (1373230513,), (1373230541,), (1373230551,), (1373230560,), (1373230594,), (1373230885,), (1373230919,), (1373230951,), (1373230976,), (1373231000,), (1373231026,), (1373231383,), (1373231411,), (1373231464,), (1373231505,), (1373231533,), (1373231562,), (1373231879,), (1373231906,), (1373231944,), (1373231949,), (1373231971,), (1373231998,), (1373232358,), (1373232406,), (1373232459,), (1373232501,), (1373232528,), (1373232565,), (1373232717,), (1373232744,), (1373232752,), (1373232756,), (1373232778,), (1373232806,), (1373232831,), (1373232861,), (1373232862,), (1373232863,), (1373232864,), (1373232865,), (1373232867,), (1373232886,), (1373232889,), (1373232893,), (1373232896,), (1373232897,), (1373232900,), (1373233001,), (1373233052,), (1373233108,), (1373233166,), (1373233223,), (1373233280,), (1373233878,), (1373234222,), (1373234223,), (1373234228,), (1373234240,), (1373234246,), (1373234248,), (1373234282,), (1373234285,), (1373234308,), (1373234347,), (1373234374,), (1373234402,), (1373234673,), (1373234678,), (1373234684,), (1373234711,), (1373234722,), (1373234738,), (1373234784,), (1373234788,), (1373234791,), (1373234796,), (1373234797,), (1373234802,), (1373234813,), (1373234816,), (1373234818,), (1373234820,), (1373234822,), (1373234824,), (1373234848,), (1373234852,), (1373234855,), (1373234857,), (1373234860,), (1373234865,), (1373234891,), (1373234894,), (1373234897,), (1373234899,), (1373234900,), (1373234901,), (1373234927,), (1373234929,), (1373234932,), (1373234934,), (1373234935,), (1373234936,), (1373234955,), (1373234959,), (1373234963,), (1373234966,), (1373234968,), (1373234996,), (1373236879,), (1373237558,), (1373237572,), (1373237576,), (1373237594,), (1373237625,), (1373237717,), (1373237742,), (1373237770,), (1373237797,), (1373237823,), (1373237857,), (1373238159,), (1373238193,), (1373238229,), (1373238266,), (1373238294,), (1373238321,), (1373238552,), (1373238555,), (1373238573,), (1373238601,), (1373238620,), (1373238625,), (1373238683,), (1373238707,), (1373238709,), (1373238712,), (1373238715,), (1373238718,), (1373238720,), (1373238732,), (1373238736,), (1373238740,), (1373238745,), (1373238747,), (1373238750,), (1373238774,), (1373238779,), (1373238784,), (1373238788,), (1373238790,), (1373238793,), (1373238829,), (1373238867,), (1373238900,), (1373238904,), (1373238907,), (1373238910,), (1373238914,), (1373238918,), (1373238956,), (1373238963,), (1373238966,), (1373238968,), (1373238972,), (1373238974,), (1373239085,), (1373239112,), (1373239124,), (1373239127,), (1373239130,), (1373239131,), (1373239161,), (1373239165,), (1373239167,), (1373239170,), (1373239172,), (1373239174,), (1373239196,), (1373256806,), (1373256852,), (1373239224,), (1373239229,), (1373239232,), (1373239235,), (1373239237,), (1373239240,), (1373239321,), (1373239355,), (1373239391,), (1373239403,), (1373239406,), (1373239424,), (1373239503,), (1373239505,), (1373239513,), (1373239525,), (1373239527,), (1373239529,), (1373239552,), (1373239554,), (1373239557,), (1373239560,), (1373239564,), (1373239567,), (1373239595,), (1373239598,), (1373239602,), (1373239607,), (1373239608,), (1373239610,), (1373239628,), (1373239631,), (1373239634,), (1373239635,), (1373239637,), (1373239638,), (1373239829,), (1373239859,), (1373239892,), (1373239921,), (1373239966,), (1373240018,), (1373240158,), (1373240187,), (1373240192,), (1373240194,), (1373240215,), (1373240216,), (1373240257,), (1373240260,), (1373240263,), (1373240264,), (1373240265,), (1373240266,), (1373240284,), (1373240312,), (1373240316,), (1373240319,), (1373240322,), (1373240323,), (1373240325,), (1373240341,), (1373240344,), (1373240347,), (1373240350,), (1373240353,), (1373240357,), (1373240418,), (1373240423,), (1373240424,), (1373240427,), (1373240430,), (1373240434,), (1373240458,), (1373240460,), (1373240463,), (1373240465,), (1373240467,), (1373240470,), (1373240501,), (1373240505,), (1373240508,), (1373240510,), (1373240511,), (1373240514,), (1373240549,), (1373240551,), (1373240553,), (1373240554,), (1373240556,), (1373240558,), (1373240584,), (1373240617,), (1373240618,), (1373240620,), (1373240622,), (1373240624,), (1373240627,), (1373240656,), (1373240658,), (1373240660,), (1373240662,), (1373240663,), (1373240666,), (1373240689,), (1373240691,), (1373240693,), (1373240697,), (1373240699,), (1373240701,), (1373240732,), (1373240762,), (1373240765,), (1373240767,), (1373240768,), (1373240769,), (1373240772,), (1373240796,), (1373240799,), (1373240802,), (1373240805,), (1373240807,), (1373240809,), (1373240855,), (1373240876,), (1373240885,), (1373240894,), (1373240899,), (1373240901,), (1373240966,), (1373240967,), (1373240982,), (1373240988,), (1373240989,), (1373240991,), (1373241026,), (1373241029,), (1373241032,), (1373241034,), (1373241037,), (1373241040,), (1373241067,), (1373241071,), (1373241076,), (1373241078,), (1373241080,), (1373241082,), (1373241108,), (1373241140,), (1373241144,), (1373241148,), (1373241151,), (1373241154,), (1373241157,), (1373241191,), (1373241209,), (1373241211,), (1373241213,), (1373241214,), (1373241215,), (1373241217,), (1373241226,), (1373241230,), (1373241235,), (1373241238,), (1373241243,), (1373241247,), (1373241405,), (1373241437,), (1373241464,), (1373241493,), (1373241519,), (1373241547,), (1373241644,), (1373241668,), (1373241671,), (1373241675,), (1373241686,), (1373241688,), (1373241911,), (1373241948,), (1373241987,), (1373241989,), (1373241990,), (1373242004,), (1373242072,), (1373242076,), (1373242080,), (1373242083,), (1373242087,), (1373242090,), (1373242114,), (1373242118,), (1373242121,), (1373242124,), (1373242128,), (1373242130,), (1373242149,), (1373242153,), (1373242157,), (1373242159,), (1373242160,), (1373242162,), (1373242179,), (1373242189,), (1373242194,), (1373242197,), (1373242200,), (1373242203,), (1373242223,), (1373242580,), (1373242589,), (1373242596,), (1373242602,), (1373242604,), (1373242607,), (1373242620,), (1373242624,), (1373242629,), (1373242631,), (1373242634,), (1373242637,), (1373243156,), (1373243246,), (1373243323,), (1373243394,), (1373243466,), (1373243538,), (1373244656,), (1373244855,), (1373244858,), (1373244861,), (1373244863,), (1373244867,), (1373244891,), (1373244895,), (1373244899,), (1373244902,), (1373244905,), (1373244908,), (1373244925,), (1373245100,), (1373245667,), (1373245726,), (1373245793,), (1373245835,), (1373245885,), (1373245939,), (1373246478,), (1373246948,), (1373247018,), (1373247089,), (1373247139,), (1373247182,), (1373247215,), (1373247519,), (1373247525,), (1373247528,), (1373247530,), (1373247537,), (1373247563,), (1373247758,), (1373247762,), (1373247768,), (1373247771,), (1373247773,), (1373247775,), (1373247798,), (1373247799,), (1373247801,), (1373247802,), (1373247803,), (1373247806,), (1373247833,), (1373247836,), (1373247838,), (1373247841,), (1373247844,), (1373247847,), (1373247874,), (1373247879,), (1373247884,), (1373247887,), (1373247889,), (1373247891,), (1373247906,), (1373247910,), (1373247913,), (1373247916,), (1373247918,), (1373247920,), (1373247941,), (1373247945,), (1373247948,), (1373247949,), (1373247952,), (1373247955,), (1373247973,), (1373248009,), (1373248022,), (1373248030,), (1373248031,), (1373248033,), (1373248034,), (1373248053,), (1373248086,), (1373248103,), (1373248106,), (1373248107,), (1373248109,), (1373248112,), (1373248152,), (1373248177,), (1373248205,), (1373248228,), (1373248250,), (1373248293,), (1373248797,), (1373248841,), (1373248890,), (1373248939,), (1373248986,), (1373249032,), (1373249420,), (1373249466,), (1373249511,), (1373249535,), (1373249561,), (1373249587,), (1373249807,), (1373249824,), (1373249826,), (1373249840,), (1373249841,), (1373249842,), (1373249863,), (1373249892,), (1373249896,), (1373249905,), (1373249908,), (1373249913,), (1373249917,), (1373249935,), (1373249952,), (1373249961,), (1373249964,), (1373249965,), (1373249966,), (1373249969,), (1373249983,), (1373249987,), (1373249991,), (1373249993,), (1373249996,), (1373249998,), (1373250017,), (1373250022,), (1373250028,), (1373250031,), (1373250034,), (1373250037,), (1373250063,), (1373250080,), (1373250094,), (1373250103,), (1373250109,), (1373250113,), (1373250118,), (1373250133,), (1373250138,), (1373250142,), (1373250146,), (1373250150,), (1373250153,), (1373250173,), (1373250180,), (1373250192,), (1373250198,), (1373250201,), (1373250206,), (1373250229,), (1373250232,), (1373250235,), (1373250237,), (1373250239,), (1373250241,), (1373250282,), (1373250284,), (1373250287,), (1373250290,), (1373250292,), (1373250295,), (1373250318,), (1373250421,), (1373250437,), (1373250443,), (1373250446,), (1373250447,), (1373250464,), (1373250524,), (1373250527,), (1373250529,), (1373250532,), (1373250534,), (1373250537,), (1373250798,), (1373250834,), (1373250865,), (1373250889,), (1373250913,), (1373250946,), (1373251329,), (1373251380,), (1373251428,), (1373251489,), (1373251530,), (1373251575,), (1373251894,), (1373251957,), (1373252015,), (1373252056,), (1373252093,), (1373252125,), (1373252441,), (1373252444,), (1373252453,), (1373252467,), (1373252486,), (1373252510,), (1373252742,), (1373252757,), (1373252765,), (1373252768,), (1373252770,), (1373252772,), (1373252791,), (1373252795,), (1373252799,), (1373252803,), (1373252805,), (1373252808,), (1373252822,), (1373252831,), (1373252842,), (1373252850,), (1373252854,), (1373252857,), (1373252881,), (1373252910,), (1373252918,), (1373252925,), (1373252929,), (1373252932,), (1373252935,), (1373252973,), (1373252975,), (1373252978,), (1373252980,), (1373252982,), (1373252986,), (1373253115,), (1373253140,), (1373253165,), (1373253189,), (1373253213,), (1373253240,), (1373253407,), (1373253425,), (1373253429,), (1373253440,), (1373253463,), (1373253486,), (1373253738,), (1373253764,), (1373253799,), (1373253841,), (1373253870,), (1373253899,), (1373254244,), (1373254841,), (1373254845,), (1373254849,), (1373254858,), (1373254866,), (1373254891,), (1373255093,), (1373255558,), (1373255582,), (1373255608,), (1373255634,), (1373255667,), (1373255696,), (1373255856,), (1373255980,), (1373255983,), (1373255985,), (1373255987,), (1373255988,), (1373255990,), (1373256016,), (1373256020,), (1373256023,), (1373256026,), (1373256029,), (1373256033,), (1373256052,), (1373256059,), (1373256068,), (1373256072,), (1373256075,), (1373256080,), (1373256766,), (1373257757,), (1373258372,), (1373258399,), (1373258433,), (1373258442,), (1373258471,), (1373258502,), (1373258771,), (1373258776,), (1373258788,), (1373258801,), (1373258808,), (1373258813,), (1373258889,), (1373258905,), (1373258909,), (1373258913,), (1373258915,), (1373258919,), (1373258937,), (1373258963,), (1373258966,), (1373258975,), (1373258988,), (1373258992,), (1373258994,), (1373259020,), (1373259023,), (1373259025,), (1373259026,), (1373259027,), (1373259030,), (1373259059,), (1373259062,), (1373259066,), (1373259068,), (1373259070,), (1373259072,), (1373259117,), (1373259120,), (1373259123,), (1373259125,), (1373259128,), (1373259130,), (1373259326,), (1373259387,), (1373259444,), (1373259502,), (1373259545,), (1373259592,), (1373260009,), (1373260033,), (1373260080,), (1373260117,), (1373260150,), (1373260181,), (1373260294,), (1373260305,), (1373260315,), (1373260318,), (1373260321,), (1373260336,), (1373260571,), (1373260699,), (1373260705,), (1373260709,), (1373260713,), (1373260716,), (1373260724,), (1373260998,), (1373261032,), (1373261040,), (1373261044,), (1373261046,), (1373261047,), (1373261049,), (1373261101,), (1373261106,), (1373261110,), (1373261113,), (1373261115,), (1373261117,), (1373261146,), (1373261184,), (1373261217,), (1373261243,), (1373261268,), (1373261290,), (1373261428,), (1373261457,), (1373261464,), (1373261470,), (1373261472,), (1373261475,), (1373261477,), (1373261592,), (1373261867,), (1373261880,), (1373261894,), (1373261897,), (1373261898,), (1373261905,), (1373261974,), (1373261978,), (1373261982,), (1373261985,), (1373261989,), (1373261992,), (1373262016,), (1373262020,), (1373262024,), (1373262025,), (1373262028,), (1373262031,), (1373262049,), (1373262054,), (1373262059,), (1373262063,), (1373262067,), (1373262076,), (1373262100,), (1373262132,), (1373262185,), (1373262190,), (1373262194,), (1373262197,), (1373262202,), (1373262205,), (1373262222,), (1373262226,), (1373262231,), (1373262235,), (1373262237,), (1373262240,), (1373262276,), (1373262279,), (1373262282,), (1373262284,), (1373262286,), (1373262289,), (1373262319,), (1373262323,), (1373262327,), (1373262329,), (1373262330,), (1373262332,), (1373262356,), (1373262361,), (1373262365,), (1373262369,), (1373262373,), (1373262376,), (1373262401,), (1373262404,), (1373262406,), (1373262408,), (1373262409,), (1373262411,), (1373262434,), (1373262436,), (1373262438,), (1373262440,), (1373262441,), (1373262442,), (1373262468,), (1373262502,), (1373262506,), (1373262521,), (1373262525,), (1373262529,), (1373262530,), (1373262554,), (1373262559,), (1373262564,), (1373262567,), (1373262570,), (1373262574,), (1373262596,), (1373262599,), (1373262608,), (1373262618,), (1373262627,), (1373262629,), (1373262659,), (1373262661,), (1373262664,), (1373262665,), (1373262666,), (1373262667,), (1373262690,), (1373262708,), (1373262716,), (1373262719,), (1373262722,), (1373262724,), (1373262773,), (1373262777,), (1373262779,), (1373262780,), (1373262781,), (1373262784,), (1373262798,), (1373262809,), (1373262820,), (1373262824,), (1373262827,), (1373262829,), (1373262853,), (1373262856,), (1373262860,), (1373262863,), (1373262866,), (1373262869,), (1373262891,), (1373262901,), (1373262904,), (1373262907,), (1373262910,), (1373262911,), (1373262941,), (1373262967,), (1373262974,), (1373262977,), (1373262980,), (1373262982,), (1373262984,), (1373263005,), (1373263009,), (1373263011,), (1373263013,), (1373263015,), (1373263019,), (1373263046,), (1373263050,), (1373263053,), (1373263054,), (1373263057,), (1373263059,), (1373263088,), (1373263091,), (1373263093,), (1373263095,), (1373263097,), (1373263099,), (1373263118,), (1373263122,), (1373263126,), (1373263128,), (1373263130,), (1373263133,), (1373263169,), (1373263170,), (1373263173,), (1373263176,), (1373263178,), (1373263183,), (1373263208,), (1373263214,), (1373263217,), (1373263220,), (1373263222,), (1373263224,), (1373263241,), (1373263243,), (1373263245,), (1373263247,), (1373263250,), (1373263254,), (1373263282,), (1373263296,), (1373263297,), (1373263299,), (1373263301,), (1373263303,), (1373263336,), (1373263342,), (1373263345,), (1373263346,), (1373263348,), (1373263349,), (1373263370,), (1373263397,), (1373263402,), (1373263406,), (1373263409,), (1373263412,), (1373263416,), (1373263477,), (1373263509,), (1373263536,), (1373263585,), (1373263610,), (1373263638,), (1373264288,), (1373264321,), (1373264804,), (1373264831,), (1373264855,), (1373264878,), (1373264903,), (1373265325,), (1373265379,), (1373265417,), (1373265448,), (1373265486,), (1373265488,), (1373265589,), (1373265605,), (1373265634,), (1373265652,), (1373265655,), (1373265677,), (1373265707,), (1373265711,), (1373265714,), (1373265716,), (1373265718,), (1373265722,), (1373265744,), (1373265749,), (1373265752,), (1373265756,), (1373265761,), (1373265765,), (1373265782,), (1373265814,), (1373265852,), (1373265892,), (1373265895,), (1373265898,), (1373265901,), (1373265902,), (1373265905,), (1373265922,), (1373265926,), (1373265930,), (1373265931,), (1373265934,), (1373265937,), (1373265955,), (1373265958,), (1373265962,), (1373265964,), (1373265967,), (1373265969,), (1373265989,), (1373265994,), (1373265996,), (1373266002,), (1373266005,), (1373266010,), (1373266030,), (1373266068,), (1373266091,), (1373266094,), (1373266096,), (1373266097,), (1373266099,), (1373266101,), (1373266121,), (1373266148,), (1373266150,), (1373266152,), (1373266153,), (1373266154,), (1373266156,), (1373266174,), (1373266175,), (1373266176,), (1373266177,), (1373266179,), (1373266181,), (1373266311,), (1373266333,), (1373266357,), (1373266427,), (1373266464,), (1373266513,), (1373266917,), (1373266942,), (1373266972,), (1373266997,), (1373267022,), (1373267046,), (1373267476,), (1373267489,), (1373267515,), (1373267518,), (1373267519,), (1373267520,), (1373267659,), (1373267693,), (1373267727,), (1373267748,), (1373267755,), (1373267758,), (1373267853,), (1373267883,), (1373267891,), (1373267893,), (1373267894,), (1373267895,), (1373267896,), (1373267917,), (1373267920,), (1373267922,), (1373267925,), (1373267926,), (1373267927,), (1373267944,), (1373267974,), (1373267977,), (1373267979,), (1373267981,), (1373267983,), (1373267985,), (1373268006,), (1373268011,), (1373268013,), (1373268015,), (1373268017,), (1373268019,), (1373268037,), (1373268068,), (1373268071,), (1373268075,), (1373268076,), (1373268079,), (1373268082,), (1373268102,), (1373268106,), (1373268109,), (1373268113,), (1373268115,), (1373268117,), (1373268129,), (1373268133,), (1373268135,), (1373268138,), (1373268139,), (1373268140,), (1373268203,), (1373268231,), (1373268261,), (1373268288,), (1373268314,), (1373268336,), (1373268606,), (1373268636,), (1373268689,), (1373268736,), (1373268764,), (1373268799,), (1373269080,), (1373269107,), (1373269133,), (1373269159,), (1373269182,), (1373269206,), (1373269316,), (1373269472,), (1373269476,), (1373269480,), (1373269483,), (1373269485,), (1373269488,), (1373269507,), (1373269519,), (1373269524,), (1373269526,), (1373269527,), (1373269528,), (1373269537,), (1373269541,), (1373269546,), (1373269547,), (1373269549,), (1373269551,), (1373269569,), (1373269577,), (1373269584,), (1373269588,), (1373269592,), (1373269593,), (1373269623,), (1373269625,), (1373269628,), (1373269629,), (1373269630,), (1373269631,), (1373269660,), (1373269662,), (1373269665,), (1373269666,), (1373269667,), (1373269668,), (1373269687,), (1373269688,), (1373269690,), (1373269691,), (1373269692,), (1373269693,), (1373269716,), (1373269726,), (1373269736,), (1373269741,), (1373269742,), (1373269745,), (1373269757,), (1373269760,), (1373269762,), (1373269764,), (1373269765,), (1373269766,), (1373275143,), (1373298819,), (1373269799,), (1373269816,), (1373269821,), (1373269824,), (1373269825,), (1373269827,), (1373269829,), (1373269850,), (1373269855,), (1373269859,), (1373269861,), (1373269863,), (1373269865,), (1373269886,), (1373269913,), (1373269917,), (1373269921,), (1373269923,), (1373269928,), (1373269931,), (1373269949,), (1373269952,), (1373269955,), (1373269956,), (1373269958,), (1373269962,), (1373269979,), (1373269982,), (1373269997,), (1373270023,), (1373270050,), (1373270075,), (1373270328,), (1373270353,), (1373270378,), (1373270402,), (1373270426,), (1373270449,), (1373270585,), (1373270593,), (1373270622,), (1373270656,), (1373270679,), (1373270705,), (1373270799,), (1373270820,), (1373270843,), (1373270850,), (1373270851,), (1373270852,), (1373270866,), (1373270883,), (1373270910,), (1373271407,), (1373271461,), (1373271517,), (1373271567,), (1373271592,), (1373271618,), (1373272107,), (1373272163,), (1373272202,), (1373272229,), (1373272256,), (1373272302,), (1373272512,), (1373272536,), (1373272547,), (1373272557,), (1373272576,), (1373272591,), (1373272807,), (1373273005,), (1373273032,), (1373273063,), (1373273089,), (1373273112,), (1373273140,), (1373273415,), (1373273441,), (1373273466,), (1373273489,), (1373273514,), (1373273539,), (1373273646,), (1373273885,), (1373273891,), (1373273895,), (1373273897,), (1373273900,), (1373273903,), (1373274135,), (1373274169,), (1373274199,), (1373274225,), (1373274247,), (1373274271,), (1373274528,), (1373274552,), (1373274591,), (1373274599,), (1373274601,), (1373274604,), (1373274728,), (1373274756,), (1373274782,), (1373274785,), (1373274787,), (1373274811,), (1373274884,), (1373274886,), (1373274888,), (1373274889,), (1373274890,), (1373274891,), (1373274926,), (1373274930,), (1373274933,), (1373274934,), (1373274935,), (1373274936,), (1373274966,), (1373274969,), (1373274972,), (1373274974,), (1373274977,), (1373274980,), (1373275010,), (1373275013,), (1373275017,), (1373275021,), (1373275023,), (1373275025,), (1373275045,), (1373275049,), (1373275053,), (1373275055,), (1373275056,), (1373275057,), (1373275083,), (1373275084,), (1373275086,), (1373275088,), (1373275091,), (1373275094,), (1373275113,), (1373275117,), (1373275119,), (1373275123,), (1373275127,), (1373275131,), (1373275153,), (1373275160,), (1373275167,), (1373275171,), (1373275175,), (1373275200,), (1373275447,), (1373275477,), (1373275526,), (1373275573,), (1373275628,), (1373275665,), (1373276038,), (1373276069,), (1373276099,), (1373276133,), (1373276159,), (1373276184,), (1373276337,), (1373276557,), (1373276563,), (1373276566,), (1373276585,), (1373276610,), (1373276632,), (1373276680,), (1373276682,), (1373276685,), (1373276688,), (1373276691,), (1373276694,), (1373276722,), (1373276733,), (1373276743,), (1373276745,), (1373276746,), (1373276748,), (1373276775,), (1373276778,), (1373276780,), (1373276781,), (1373276784,), (1373276786,), (1373276809,), (1373276844,), (1373276848,), (1373276850,), (1373276853,), (1373276858,), (1373276860,), (1373276883,), (1373276892,), (1373276897,), (1373276898,), (1373276899,), (1373276900,), (1373276927,), (1373276932,), (1373276934,), (1373276936,), (1373276937,), (1373276940,), (1373276960,), (1373276965,), (1373276971,), (1373276973,), (1373276976,), (1373276978,), (1373277007,), (1373277011,), (1373277015,), (1373277016,), (1373277017,), (1373277018,), (1373277046,), (1373277049,), (1373277052,), (1373277054,), (1373277055,), (1373277058,), (1373277080,), (1373277083,), (1373277088,), (1373277091,), (1373277094,), (1373277098,), (1373277122,), (1373277130,), (1373277136,), (1373277139,), (1373277142,), (1373277147,), (1373277172,), (1373277202,), (1373277205,), (1373277210,), (1373277211,), (1373277212,), (1373277214,), (1373277251,), (1373277295,), (1373277305,), (1373277310,), (1373277313,), (1373277314,), (1373277316,), (1373277339,), (1373277375,), (1373277379,), (1373277383,), (1373277386,), (1373277389,), (1373277393,), (1373277411,), (1373277413,), (1373277416,), (1373277417,), (1373277419,), (1373277420,), (1373277451,), (1373277454,), (1373277458,), (1373277461,), (1373277464,), (1373277468,), (1373277493,), (1373277496,), (1373277500,), (1373277502,), (1373277505,), (1373277508,), (1373277538,), (1373277544,), (1373277554,), (1373277561,), (1373277562,), (1373277566,), (1373277586,), (1373277614,), (1373277617,), (1373277622,), (1373277636,), (1373277638,), (1373277642,), (1373277675,), (1373277677,), (1373277680,), (1373277681,), (1373277682,), (1373277683,), (1373277710,), (1373277712,), (1373277720,), (1373277728,), (1373277735,), (1373277738,), (1373277763,), (1373277767,), (1373277771,), (1373277773,), (1373277777,), (1373277781,), (1373277812,), (1373277816,), (1373277819,), (1373277821,), (1373277822,), (1373277823,), (1373277841,), (1373277844,), (1373277847,), (1373277849,), (1373277851,), (1373277857,), (1373277888,), (1373277929,), (1373277932,), (1373277935,), (1373277937,), (1373277939,), (1373277941,), (1373277967,), (1373277975,), (1373277984,), (1373277985,), (1373277987,), (1373277989,), (1373277995,), (1373277996,), (1373278014,), (1373278019,), (1373278021,), (1373278024,), (1373278026,), (1373278028,), (1373278045,), (1373278069,), (1373278073,), (1373278075,), (1373278086,), (1373278109,), (1373278140,), (1373278283,), (1373278285,), (1373278288,), (1373278290,), (1373278292,), (1373278294,), (1373278378,), (1373278413,), (1373278459,), (1373278507,), (1373278554,), (1373278608,), (1373279059,), (1373279545,), (1373279576,), (1373279622,), (1373279656,), (1373279681,), (1373279712,), (1373279773,), (1373279800,), (1373279828,), (1373279854,), (1373279882,), (1373279903,), (1373280017,), (1373280018,), (1373280021,), (1373280023,), (1373280025,), (1373280029,), (1373280053,), (1373280056,), (1373280057,), (1373280059,), (1373280061,), (1373280063,), (1373280082,), (1373280307,), (1373280343,), (1373280377,), (1373280401,), (1373280427,), (1373280454,), (1373280584,), (1373280588,), (1373280617,), (1373280655,), (1373280702,), (1373280746,), (1373280895,), (1373280898,), (1373280900,), (1373280903,), (1373280925,), (1373280951,), (1373281141,), (1373281167,), (1373281193,), (1373281216,), (1373281240,), (1373281263,), (1373281279,), (1373281283,), (1373281287,), (1373281290,), (1373281291,), (1373281295,), (1373281313,), (1373281316,), (1373281321,), (1373281332,), (1373281334,), (1373281335,), (1373281355,), (1373281364,), (1373281370,), (1373281371,), (1373281373,), (1373281379,), (1373281436,), (1373281462,), (1373281490,), (1373281512,), (1373281521,), (1373281526,), (1373281540,), (1373281543,), (1373281546,), (1373281548,), (1373281549,), (1373281551,), (1373281576,), (1373281765,), (1373281777,), (1373281783,), (1373281790,), (1373281792,), (1373281797,), (1373281818,), (1373281915,), (1373281943,), (1373281969,), (1373281979,), (1373281983,), (1373281999,), (1373282030,), (1373282035,), (1373282040,), (1373282043,), (1373282047,), (1373282051,), (1373282129,), (1373282132,), (1373282136,), (1373282142,), (1373282167,), (1373282170,), (1373282217,), (1373282247,), (1373282273,), (1373282296,), (1373282299,), (1373282303,), (1373282331,), (1373282338,), (1373282349,), (1373282352,), (1373282357,), (1373282361,), (1373282380,), (1373282383,), (1373282387,), (1373282390,), (1373282392,), (1373282395,), (1373282419,), (1373282426,), (1373282429,), (1373282432,), (1373282434,), (1373282437,), (1373282457,), (1373282458,), (1373282461,), (1373282463,), (1373282465,), (1373282468,), (1373282629,), (1373282901,), (1373282902,), (1373282903,), (1373282904,), (1373282905,), (1373282929,), (1373283166,), (1373283192,), (1373283216,), (1373283242,), (1373283264,), (1373283287,), (1373283408,), (1373283410,), (1373283427,), (1373283439,), (1373283441,), (1373283458,), (1373283497,), (1373283500,), (1373283506,), (1373283511,), (1373283513,), (1373283517,), (1373283549,), (1373283551,), (1373283553,), (1373283554,), (1373283555,), (1373283557,), (1373283609,), (1373283614,), (1373283623,), (1373283625,), (1373283626,), (1373283630,), (1373283760,), (1373283762,), (1373283764,), (1373283766,), (1373283768,), (1373283771,), (1373284011,), (1373284470,), (1373284477,), (1373284481,), (1373284483,), (1373284497,), (1373284500,), (1373284868,), (1373285251,), (1373285483,), (1373285539,), (1373285542,), (1373285545,), (1373285548,), (1373285549,), (1373285551,), (1373285576,), (1373285582,), (1373285586,), (1373285587,), (1373285589,), (1373285593,), (1373285678,), (1373285681,), (1373285684,), (1373285685,), (1373285688,), (1373285692,), (1373285715,), (1373285721,), (1373285731,), (1373285735,), (1373285738,), (1373285744,), (1373285766,), (1373285768,), (1373285771,), (1373285774,), (1373285775,), (1373285780,), (1373285822,), (1373285829,), (1373285834,), (1373285837,), (1373285840,), (1373285842,), (1373285866,), (1373285870,), (1373285875,), (1373285876,), (1373285878,), (1373285880,), (1373285912,), (1373286046,), (1373286049,), (1373286052,), (1373286053,), (1373286054,), (1373286056,), (1373286081,), (1373286088,), (1373286110,), (1373286136,), (1373286163,), (1373286192,), (1373286381,), (1373286415,), (1373286444,), (1373286479,), (1373286505,), (1373286536,), (1373286821,), (1373286850,), (1373286879,), (1373286907,), (1373286938,), (1373286967,), (1373287275,), (1373287327,), (1373287397,), (1373287441,), (1373287494,), (1373287543,), (1373287783,), (1373287790,), (1373287796,), (1373287799,), (1373287803,), (1373287807,), (1373287827,), (1373287831,), (1373287841,), (1373287843,), (1373287845,), (1373287847,), (1373287871,), (1373287877,), (1373287885,), (1373287892,), (1373287895,), (1373287898,), (1373287934,), (1373287938,), (1373287942,), (1373287944,), (1373287948,), (1373287951,), (1373287970,), (1373287973,), (1373287977,), (1373287978,), (1373287982,), (1373287987,), (1373288011,), (1373288019,), (1373288027,), (1373288031,), (1373288033,), (1373288037,), (1373288072,), (1373288079,), (1373288082,), (1373288084,), (1373288086,), (1373288090,), (1373288112,), (1373288116,), (1373288121,), (1373288125,), (1373288128,), (1373288132,), (1373288152,), (1373288156,), (1373288188,), (1373288222,), (1373288250,), (1373288275,), (1373288542,), (1373288586,), (1373288614,), (1373288639,), (1373288663,), (1373288695,), (1373288886,), (1373289033,), (1373289035,), (1373289037,), (1373289039,), (1373289041,), (1373289044,), (1373289189,), (1373289564,), (1373289593,), (1373289635,), (1373289659,), (1373289683,), (1373289725,), (1373289975,), (1373289977,), (1373289979,), (1373289981,), (1373289982,), (1373289986,), (1373290272,), (1373290312,), (1373290339,), (1373290367,), (1373290409,), (1373290480,), (1373290823,), (1373290871,), (1373290923,), (1373290971,), (1373290994,), (1373291021,), (1373291295,), (1373291306,), (1373291308,), (1373291310,), (1373291312,), (1373291314,), (1373291478,), (1373291509,), (1373291535,), (1373291544,), (1373291548,), (1373291550,), (1373291668,), (1373291670,), (1373291673,), (1373291674,), (1373291677,), (1373291680,), (1373291840,), (1373292212,), (1373292240,), (1373292272,), (1373292299,), (1373292307,), (1373292310,), (1373292442,), (1373292457,), (1373292458,), (1373292461,), (1373292462,), (1373292467,), (1373292488,), (1373292493,), (1373292497,), (1373292500,), (1373292504,), (1373292506,), (1373292521,), (1373292523,), (1373292525,), (1373292528,), (1373292530,), (1373292531,), (1373292555,), (1373292558,), (1373292561,), (1373292562,), (1373292563,), (1373292566,), (1373292586,), (1373292589,), (1373292593,), (1373292595,), (1373292598,), (1373292602,), (1373292619,), (1373292622,), (1373292625,), (1373292627,), (1373292630,), (1373292634,), (1373292659,), (1373292662,), (1373292665,), (1373292668,), (1373292671,), (1373292676,), (1373292696,), (1373292725,), (1373292757,), (1373292780,), (1373292805,), (1373292832,), (1373293101,), (1373293126,), (1373293151,), (1373293176,), (1373293200,), (1373293229,), (1373293325,), (1373293345,), (1373293376,), (1373293401,), (1373293431,), (1373293456,), (1373293614,), (1373293645,), (1373293650,), (1373293651,), (1373293652,), (1373293654,), (1373293658,), (1373293688,), (1373293722,), (1373293725,), (1373293728,), (1373293729,), (1373293733,), (1373293737,), (1373293760,), (1373293773,), (1373293777,), (1373293779,), (1373293782,), (1373293785,), (1373293806,), (1373293814,), (1373293819,), (1373293820,), (1373293821,), (1373293824,), (1373293848,), (1373293851,), (1373293854,), (1373293855,), (1373293856,), (1373293859,), (1373293884,), (1373293889,), (1373293895,), (1373293911,), (1373293920,), (1373293926,), (1373293959,), (1373293962,), (1373293966,), (1373293969,), (1373293972,), (1373293976,), (1373294031,), (1373294057,), (1373294082,), (1373294109,), (1373294135,), (1373294158,), (1373294436,), (1373294463,), (1373294491,), (1373294517,), (1373294541,), (1373294569,), (1373294675,), (1373294692,), (1373294702,), (1373294705,), (1373294724,), (1373294762,), (1373295149,), (1373295184,), (1373295231,), (1373295279,), (1373295304,), (1373295331,), (1373295491,), (1373295513,), (1373295524,), (1373295526,), (1373295527,), (1373295529,), (1373295554,), (1373295556,), (1373295559,), (1373295561,), (1373295564,), (1373295569,), (1373295605,), (1373295612,), (1373295616,), (1373295618,), (1373295621,), (1373295624,), (1373295679,), (1373295683,), (1373295687,), (1373295689,), (1373295690,), (1373295693,), (1373295765,), (1373295770,), (1373295773,), (1373295774,), (1373295775,), (1373295777,), (1373296027,), (1373296054,), (1373296078,), (1373296111,), (1373296112,), (1373296141,), (1373296226,), (1373296231,), (1373296236,), (1373296260,), (1373296283,), (1373296309,), (1373296346,), (1373296355,), (1373296359,), (1373296361,), (1373296362,), (1373296365,), (1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,), (1373298011,), (1373298015,), (1373298017,), (1373298019,), (1373298021,), (1373298023,), (1373298041,), (1373298043,), (1373298046,), (1373298048,), (1373298051,), (1373298054,), (1373298078,), (1373298082,), (1373298086,), (1373298088,), (1373298094,), (1373298119,), (1373298395,), (1373298427,), (1373298455,), (1373298485,), (1373298505,), (1373298511,), (1373298791,), (1373299247,), (1373299278,), (1373299305,), (1373299329,), (1373299346,), (1373299476,), (1373299489,), (1373299496,), (1373299497,), (1373299498,), (1373299502,), (1373299538,), (1373299540,), (1373299541,), (1373299542,), (1373299543,), (1373299545,), (1373299795,), (1373299825,), (1373299854,), (1373299879,), (1373299905,), (1373299935,), (1373300086,), (1373300108,), (1373300136,), (1373300150,), (1373300161,), (1373300166,), (1373300186,), (1373300190,), (1373300194,), (1373300198,), (1373300200,), (1373300211,), (1373300492,), (1373300518,), (1373300545,), (1373300568,), (1373300593,), (1373300618,), (1373300757,), (1373300760,), (1373300763,), (1373300779,), (1373300807,), (1373300835,), (1373300927,), (1373301272,), (1373301300,), (1373301326,), (1373301353,), (1373301380,), (1373301415,), (1373301809,), (1373301814,), (1373301818,), (1373301847,), (1373301871,), (1373301920,), (1373302170,), (1373302174,), (1373302180,), (1373302208,), (1373302222,), (1373302227,), (1373302247,), (1373302251,), (1373302254,), (1373302256,), (1373302258,), (1373302262,), (1373302283,), (1373302289,), (1373302295,), (1373302299,), (1373302302,), (1373302305,), (1373302514,), (1373302519,), (1373302523,), (1373302524,), (1373302528,), (1373302560,), (1373302701,), (1373302720,), (1373302727,), (1373302730,), (1373302733,), (1373302736,), (1373302753,), (1373302762,), (1373302793,), (1373302824,), (1373302855,), (1373302882,), (1373302984,), (1373303003,), (1373303013,), (1373303022,), (1373303024,), (1373303037,), (1373303094,), (1373303097,), (1373303100,), (1373303117,), (1373303142,), (1373303166,), (1373303244,), (1373303246,), (1373303248,), (1373303249,), (1373303252,), (1373303256,), (1373303495,), (1373303499,), (1373303503,), (1373303529,), (1373303553,), (1373303575,), (1373303694,), (1373303697,), (1373303700,), (1373303719,), (1373303742,), (1373303767,), (1373304045,), (1373304062,), (1373304066,), (1373304069,), (1373304076,), (1373304078,), (1373304104,), (1373304107,), (1373304110,), (1373304113,), (1373304117,), (1373304122,), (1373304328,), (1373304357,), (1373304386,), (1373304413,), (1373304436,), (1373304462,), (1373304621,), (1373304625,), (1373304654,), (1373304700,), (1373304744,), (1373304789,), (1373305033,), (1373305065,), (1373305092,), (1373305124,), (1373305163,), (1373305173,), (1373305191,), (1373305193,), (1373305195,), (1373305196,), (1373305198,), (1373305199,), (1373305233,), (1373305488,), (1373305507,), (1373305509,), (1373305512,), (1373305516,), (1373305522,), (1373305622,), (1373305644,), (1373305647,), (1373305654,), (1373305677,), (1373305704,), (1373305730,), (1373305879,), (1373305890,), (1373305897,), (1373305928,), (1373305932,), (1373305937,), (1373305959,), (1373305962,), (1373305964,), (1373305965,), (1373305967,), (1373305969,), (1373305993,), (1373305995,), (1373305997,), (1373305999,), (1373306000,), (1373306002,), (1373306235,), (1373306238,), (1373306248,), (1373306274,), (1373306299,), (1373306311,), (1373306400,), (1373306403,), (1373306407,), (1373306410,), (1373306412,), (1373306415,), (1373306436,), (1373306440,), (1373306444,), (1373306446,), (1373306448,), (1373306451,), (1373306631,), (1373306658,), (1373306668,), (1373306670,), (1373306672,), (1373306683,), (1373306817,), (1373306819,), (1373306823,), (1373306824,), (1373306827,), (1373306831,), (1373306855,), (1373306857,), (1373306865,), (1373306893,), (1373306919,), (1373306945,), (1373307077,), (1373307092,), (1373307120,), (1373307125,), (1373307127,), (1373307130,), (1373307240,), (1373307244,), (1373307248,), (1373307253,), (1373307274,), (1373307275,), (1373307352,), (1373307355,), (1373307358,), (1373307373,), (1373307399,), (1373307416,), (1373307618,), (1373307853,), (1373307865,), (1373307873,), (1373307875,), (1373307877,), (1373307905,), (1373307978,), (1373307982,), (1373307986,), (1373307989,), (1373307991,), (1373307995,), (1373308029,), (1373308032,), (1373308036,), (1373308038,), (1373308040,), (1373308044,), (1373308172,), (1373308198,), (1373308225,), (1373308249,), (1373308273,), (1373308303,), (1373308580,), (1373308584,), (1373308587,), (1373308611,), (1373308637,), (1373308660,), (1373309105,), (1373309112,), (1373309116,), (1373309134,), (1373309158,), (1373309178,), (1373309551,), (1373309603,), (1373309647,), (1373309672,), (1373309697,), (1373309724,), (1373309775,), (1373309779,), (1373309782,), (1373309783,), (1373309795,), (1373309820,), (1373310051,), (1373310075,), (1373310080,), (1373310082,), (1373310102,), (1373310132,), (1373310498,), (1373310527,), (1373310551,), (1373310577,), (1373310590,), (1373310594,), (1373310738,), (1373310763,), (1373310773,), (1373310774,), (1373310775,), (1373310777,), (1373310947,), (1373310955,), (1373310958,), (1373310962,), (1373310964,), (1373310968,), (1373311000,), (1373311003,), (1373311006,), (1373311022,), (1373311046,), (1373311070,), (1373311920,), (1373311948,), (1373311976,), (1373312005,), (1373312041,), (1373312086,), (1373312382,), (1373312769,), (1373312798,), (1373312826,), (1373312853,), (1373312887,), (1373312934,), (1373313253,), (1373313428,), (1373313451,), (1373313475,), (1373313491,), (1373313501,), (1373313506,), (1373313700,), (1373313739,), (1373313764,), (1373313788,), (1373313814,), (1373313850,), (1373314260,), (1373314287,), (1373314314,), (1373314364,), (1373314405,), (1373314436,), (1373314744,), (1373314747,), (1373314749,), (1373314751,), (1373314752,), (1373314754,), (1373314912,), (1373314953,), (1373314977,), (1373315017,), (1373315026,), (1373315043,), (1373315332,), (1373315339,), (1373315352,), (1373315372,), (1373315374,), (1373315376,), (1373315400,), (1373315403,), (1373315404,), (1373315406,), (1373315407,), (1373315409,), (1373315445,), (1373315449,), (1373315453,), (1373315456,), (1373315483,), (1373315531,), (1373315793,), (1373315819,), (1373315845,), (1373315858,), (1373315860,), (1373315862,), (1373315996,), (1373316021,), (1373316047,), (1373316073,), (1373316099,), (1373316122,), (1373316226,), (1373316229,), (1373316232,), (1373316234,), (1373316237,), (1373316242,), (1373316398,), (1373316431,), (1373316459,), (1373316485,), (1373316511,), (1373316537,), (1373328627,), (1373316700,), (1373316729,), (1373316753,), (1373316779,), (1373316823,), (1373316872,), (1373317192,), (1373317224,), (1373317252,), (1373317257,), (1373317264,), (1373317289,), (1373317453,), (1373317456,), (1373317458,), (1373317459,), (1373317461,), (1373317463,), (1373317483,), (1373317492,), (1373317493,), (1373317494,), (1373317496,), (1373317498,), (1373317650,), (1373318126,), (1373318141,), (1373318142,), (1373318145,), (1373318146,), (1373318149,), (1373318271,), (1373318274,), (1373318276,), (1373318278,), (1373318281,), (1373318284,), (1373318312,), (1373318321,), (1373318343,), (1373318369,), (1373318392,), (1373318417,), (1373318573,), (1373318576,), (1373318579,), (1373318598,), (1373318620,), (1373318625,), (1373318654,), (1373318657,), (1373318660,), (1373318661,), (1373318664,), (1373318668,), (1373318695,), (1373318697,), (1373318700,), (1373318701,), (1373318704,), (1373318711,), (1373318912,), (1373318924,), (1373318948,), (1373318973,), (1373318988,), (1373318990,), (1373319105,), (1373319107,), (1373319109,), (1373319110,), (1373319111,), (1373319113,), (1373319143,), (1373319144,), (1373319146,), (1373319147,), (1373319149,), (1373319154,), (1373319188,), (1373319190,), (1373319192,), (1373319195,), (1373319197,), (1373319200,), (1373319225,), (1373319227,), (1373319228,), (1373319230,), (1373319231,), (1373319233,), (1373319339,), (1373319364,), (1373319388,), (1373319417,), (1373319444,), (1373319470,), (1373319736,), (1373319769,), (1373319798,), (1373319827,), (1373319851,), (1373319876,), (1373320159,), (1373320165,), (1373320169,), (1373320171,), (1373320174,), (1373320177,), (1373320351,), (1373320354,), (1373320360,), (1373320386,), (1373320415,), (1373320425,), (1373320471,), (1373320481,), (1373320490,), (1373320496,), (1373320498,), (1373320502,), (1373320521,), (1373320530,), (1373320533,), (1373320534,), (1373320536,), (1373320539,), (1373320705,), (1373320735,), (1373320760,), (1373320787,), (1373320812,), (1373320835,), (1373320947,), (1373320955,), (1373320968,), (1373320972,), (1373320974,), (1373320979,), (1373321004,), (1373321009,), (1373321012,), (1373321016,), (1373321018,), (1373321022,), (1373321047,), (1373321048,), (1373321050,), (1373321051,), (1373321053,), (1373321055,), (1373321144,), (1373321164,), (1373321168,), (1373321169,), (1373321192,), (1373321205,), (1373321281,), (1373321284,), (1373321293,), (1373321315,), (1373321337,), (1373321353,), (1373321373,), (1373321377,), (1373321384,), (1373321385,), (1373321388,), (1373321391,), (1373321464,), (1373321467,), (1373321469,), (1373321472,), (1373321475,), (1373321479,), (1373321499,), (1373321502,), (1373321506,), (1373321509,), (1373321513,), (1373321517,), (1373321541,), (1373321574,), (1373321578,), (1373321581,), (1373321583,), (1373321586,), (1373321591,), (1373321614,), (1373321623,), (1373321627,), (1373321628,), (1373321630,), (1373321633,), (1373321659,), (1373321671,), (1373321680,), (1373321681,), (1373321684,), (1373321688,), (1373321715,), (1373321717,), (1373321719,), (1373321720,), (1373321722,), (1373321725,), (1373321743,), (1373321746,), (1373321749,), (1373321751,), (1373321755,), (1373321757,), (1373321821,), (1373321826,), (1373321829,), (1373321830,), (1373321832,), (1373321835,), (1373321989,), (1373321992,), (1373321995,), (1373322000,), (1373322024,), (1373322053,), (1373322121,), (1373322141,), (1373322171,), (1373322198,), (1373322209,), (1373322213,), (1373322233,), (1373322237,), (1373322240,), (1373322242,), (1373322245,), (1373322249,), (1373322269,), (1373322272,), (1373322275,), (1373322278,), (1373322281,), (1373322285,), (1373322312,), (1373322319,), (1373322322,), (1373322325,), (1373322329,), (1373322333,), (1373322370,), (1373322744,), (1373322789,), (1373322818,), (1373322844,), (1373322892,), (1373323144,), (1373323151,), (1373323157,), (1373323188,), (1373323234,), (1373323281,), (1373323425,), (1373323431,), (1373323441,), (1373323444,), (1373323446,), (1373323449,), (1373323612,), (1373323640,), (1373323679,), (1373323704,), (1373323730,), (1373323759,), (1373323985,), (1373323989,), (1373323993,), (1373324003,), (1373324034,), (1373324063,), (1373324200,), (1373324205,), (1373324209,), (1373324212,), (1373324214,), (1373324217,), (1373324441,), (1373324471,), (1373324498,), (1373324524,), (1373324549,), (1373324573,), (1373324751,), (1373324773,), (1373324800,), (1373324827,), (1373324851,), (1373324862,), (1373325009,), (1373325015,), (1373325021,), (1373325023,), (1373325025,), (1373325028,), (1373325180,), (1373325208,), (1373325210,), (1373325213,), (1373325218,), (1373325223,), (1373325329,), (1373325425,), (1373325435,), (1373325438,), (1373325439,), (1373325442,), (1373325445,), (1373325476,), (1373325479,), (1373325482,), (1373325484,), (1373325486,), (1373325490,), (1373325529,), (1373325531,), (1373325536,), (1373325540,), (1373325543,), (1373325548,), (1373325577,), (1373325578,), (1373325580,), (1373325581,), (1373325582,), (1373325584,), (1373325622,), (1373325626,), (1373325629,), (1373325631,), (1373325632,), (1373325635,), (1373325665,), (1373325668,), (1373325671,), (1373325673,), (1373325674,), (1373325677,), (1373325707,), (1373325711,), (1373325713,), (1373325717,), (1373325719,), (1373325722,), (1373325744,), (1373325747,), (1373325750,), (1373325751,), (1373325752,), (1373325755,), (1373325786,), (1373325790,), (1373325794,), (1373325796,), (1373325798,), (1373325801,), (1373325913,), (1373325916,), (1373325918,), (1373325919,), (1373325921,), (1373325924,), (1373325942,), (1373325945,), (1373325948,), (1373325950,), (1373325953,), (1373325956,), (1373325982,), (1373326018,), (1373326026,), (1373326036,), (1373326038,), (1373326040,), (1373326043,), (1373326063,), (1373326074,), (1373326083,), (1373326091,), (1373326092,), (1373326094,), (1373326121,), (1373326125,), (1373326128,), (1373326131,), (1373326132,), (1373326136,), (1373326158,), (1373326167,), (1373326174,), (1373326176,), (1373326177,), (1373326179,), (1373326202,), (1373326209,), (1373326212,), (1373326213,), (1373326214,), (1373326216,), (1373326232,), (1373326235,), (1373326238,), (1373326239,), (1373326241,), (1373326244,), (1373326271,), (1373326275,), (1373326279,), (1373326282,), (1373326285,), (1373326289,), (1373326314,), (1373326316,), (1373326318,), (1373326320,), (1373326321,), (1373326324,), (1373326348,), (1373326351,), (1373326354,), (1373326356,), (1373326357,), (1373326361,), (1373326385,), (1373326389,), (1373326392,), (1373326393,), (1373326396,), (1373326400,), (1373326429,), (1373326431,), (1373326432,), (1373326434,), (1373326436,), (1373326439,), (1373326456,), (1373326461,), (1373326466,), (1373326469,), (1373326472,), (1373326478,), (1373326504,), (1373326507,), (1373326510,), (1373326511,), (1373326513,), (1373326516,), (1373326538,), (1373326540,), (1373326543,), (1373326544,), (1373326547,), (1373326551,), (1373326592,), (1373326594,), (1373326596,), (1373326597,), (1373326598,), (1373326601,), (1373326626,), (1373326627,), (1373326628,), (1373326629,), (1373326631,), (1373326634,), (1373326661,), (1373326664,), (1373326667,), (1373326669,), (1373326677,), (1373326679,), (1373326706,), (1373326708,), (1373326731,), (1373326756,), (1373326772,), (1373326775,), (1373326851,), (1373326854,), (1373326858,), (1373326860,), (1373326862,), (1373326865,), (1373327045,), (1373327051,), (1373327058,), (1373327060,), (1373327062,), (1373327065,), (1373327090,), (1373327098,), (1373327102,), (1373327104,), (1373327106,), (1373327109,), (1373327176,), (1373327184,), (1373327188,), (1373327190,), (1373327193,), (1373327197,), (1373327293,), (1373327316,), (1373327345,), (1373327356,), (1373327358,), (1373327365,), (1373327464,), (1373327473,), (1373327490,), (1373327494,), (1373327495,), (1373327499,), (1373327623,), (1373327625,), (1373327628,), (1373327631,), (1373327632,), (1373327636,), (1373327662,), (1373327672,), (1373327678,), (1373327683,), (1373327685,), (1373327688,), (1373327717,), (1373327719,), (1373327721,), (1373327722,), (1373327726,), (1373327753,), (1373328026,), (1373328050,), (1373328073,), (1373328090,), (1373328093,), (1373328095,), (1373328120,), (1373328124,), (1373328126,), (1373328128,), (1373328129,), (1373328132,), (1373328160,), (1373328163,), (1373328166,), (1373328167,), (1373328170,), (1373328172,), (1373328204,), (1373328213,), (1373328217,), (1373328219,), (1373328222,), (1373328226,), (1373328266,), (1373328312,), (1373328316,), (1373328319,), (1373328321,), (1373328322,), (1373328324,), (1373328343,), (1373328348,), (1373328352,), (1373328354,), (1373328356,), (1373328358,), (1373328383,), (1373328387,), (1373328390,), (1373328391,), (1373328392,), (1373328404,), (1373328596,), (1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,), (1373332798,), (1373332815,), (1373332818,), (1373332836,), (1373332840,), (1373332845,), (1373332871,), (1373332877,), (1373332903,), (1373332908,), (1373332910,), (1373332913,), (1373332936,), (1373332939,), (1373332942,), (1373332944,), (1373332947,), (1373332950,), (1373332978,), (1373332982,), (1373332984,), (1373332988,), (1373332992,), (1373332994,), (1373333016,), (1373333020,), (1373333024,), (1373333026,), (1373333028,), (1373333032,), (1373333056,), (1373333062,), (1373333066,), (1373333069,), (1373333072,), (1373333077,), (1373333100,), (1373333125,), (1373333132,), (1373333140,), (1373333147,), (1373333150,), (1373333155,), (1373333170,), (1373333172,), (1373333175,), (1373333176,), (1373333179,), (1373333182,), (1373333215,), (1373333223,), (1373333225,), (1373333226,), (1373333228,), (1373333230,), (1373333256,), (1373333258,), (1373333260,), (1373333261,), (1373333264,), (1373333267,), (1373333294,), (1373333298,), (1373333302,), (1373333304,), (1373333306,), (1373333309,), (1373333334,), (1373333338,), (1373333342,), (1373333343,), (1373333345,), (1373333348,), (1373333374,), (1373333376,), (1373333378,), (1373333381,), (1373333384,), (1373333387,), (1373333408,), (1373333410,), (1373333412,), (1373333413,), (1373333415,), (1373333419,), (1373333440,), (1373333444,), (1373333448,), (1373333451,), (1373333454,), (1373333461,), (1373333486,), (1373333488,), (1373333490,), (1373333492,), (1373333493,), (1373333496,), (1373333514,), (1373333520,), (1373333523,), (1373333524,), (1373333527,), (1373333530,), (1373333557,), (1373333558,), (1373333561,), (1373333564,), (1373333567,), (1373333573,), (1373333594,), (1373333597,), (1373333600,), (1373333603,), (1373333605,), (1373333610,), (1373333638,), (1373333642,), (1373333646,), (1373333650,), (1373333652,), (1373333655,), (1373333672,), (1373333677,), (1373333681,), (1373333684,), (1373333686,), (1373333690,), (1373333712,), (1373333752,), (1373333754,), (1373333757,), (1373333764,), (1373333770,), (1373333775,), (1373333818,), (1373333823,), (1373333824,), (1373333825,), (1373333826,), (1373333828,), (1373333858,), (1373333862,), (1373333865,), (1373333867,), (1373333870,), (1373333871,), (1373333900,), (1373333902,), (1373333916,), (1373333926,), (1373333930,), (1373333932,), (1373334037,), (1373334040,), (1373334062,), (1373334069,), (1373334094,), (1373334143,), (1373334255,), (1373334263,), (1373334266,), (1373334268,), (1373334269,), (1373334283,), (1373334489,), (1373334496,), (1373334502,), (1373334503,), (1373334507,), (1373334511,), (1373334535,), (1373334551,), (1373334580,), (1373334594,), (1373334604,), (1373334609,), (1373334691,), (1373334723,), (1373334756,), (1373334778,), (1373334781,), (1373334785,), (1373334860,), (1373334861,), (1373334864,), (1373334866,), (1373334867,), (1373334871,), (1373335023,), (1373335025,), (1373335027,), (1373335041,), (1373335045,), (1373335055,), (1373335078,), (1373335080,), (1373335083,), (1373335084,), (1373335086,), (1373335089,), (1373335117,), (1373335120,), (1373335122,), (1373335124,), (1373335125,), (1373335127,), (1373335170,), (1373335307,), (1373335312,), (1373335313,), (1373335314,), (1373335316,), (1373335322,), (1373335364,), (1373335365,), (1373335366,), (1373335367,), (1373335369,), (1373335374,), (1373335405,), (1373335414,), (1373335417,), (1373335420,), (1373335439,), (1373335465,), (1373335555,), (1373335564,), (1373335567,), (1373335569,), (1373335570,), (1373335572,), (1373335591,), (1373335593,), (1373335594,), (1373335595,), (1373335597,), (1373335601,), (1373335623,), (1373335625,), (1373335627,), (1373335629,), (1373335631,), (1373335634,), (1373335655,), (1373335659,), (1373335661,), (1373335664,), (1373335665,), (1373335671,), (1373336572,), (1373336629,), (1373336673,), (1373336707,), (1373336737,), (1373336766,), (1373337256,), (1373337907,), (1373337910,), (1373337924,), (1373337950,), (1373337958,), (1373337964,), (1373338185,), (1373338209,), (1373338220,), (1373338225,), (1373338230,), (1373338235,), (1373338396,), (1373338399,), (1373338404,), (1373338410,), (1373338439,), (1373338442,), (1373338504,), (1373338506,), (1373338509,), (1373338510,), (1373338544,), (1373338553,), (1373338704,), (1373338769,), (1373338770,), (1373338772,), (1373338775,), (1373338778,), (1373338806,), (1373338814,), (1373338817,), (1373338819,), (1373338822,), (1373338825,), (1373338851,), (1373338854,), (1373338858,), (1373338860,), (1373338862,), (1373338866,), (1373338885,), (1373338887,), (1373338890,), (1373338891,), (1373338892,), (1373338901,), (1373339048,), (1373339056,), (1373339065,), (1373339070,), (1373339072,), (1373339076,), (1373339120,), (1373339121,), (1373339123,), (1373339124,), (1373339125,), (1373339128,), (1373339149,), (1373339150,), (1373339154,), (1373339166,), (1373339170,), (1373339174,), (1373339306,), (1373339335,), (1373339360,), (1373339385,), (1373339411,), (1373339437,), (1373339744,), (1373339745,), (1373339746,), (1373339747,), (1373339748,), (1373339750,), (1373339786,), (1373339788,), (1373339791,), (1373339792,), (1373339794,), (1373339796,), (1373339827,), (1373339830,), (1373339831,), (1373339832,), (1373339835,), (1373339840,), (1373339864,), (1373339906,), (1373339910,), (1373339911,), (1373339913,), (1373339916,), (1373339921,), (1373339944,), (1373339951,), (1373339952,), (1373339956,), (1373339960,), (1373339964,), (1373339992,), (1373339997,), (1373339999,), (1373340002,), (1373340004,), (1373340007,), (1373340038,), (1373340040,), (1373340042,), (1373340043,), (1373340045,), (1373340047,), (1373340067,), (1373340069,), (1373340071,), (1373340074,), (1373340077,), (1373340083,), (1373340110,), (1373340118,), (1373340121,), (1373340124,), (1373340127,), (1373340129,), (1373340165,), (1373340167,), (1373340171,), (1373340173,), (1373340175,), (1373340179,), (1373340200,), (1373340211,), (1373340216,), (1373340217,), (1373340220,), (1373340223,), (1373340247,), (1373340256,), (1373340260,), (1373340262,), (1373340277,), (1373340281,), (1373340297,), (1373340303,), (1373340306,), (1373340310,), (1373340313,), (1373340316,), (1373340343,), (1373340346,), (1373340350,), (1373340352,), (1373340354,), (1373340356,), (1373340428,), (1373340432,), (1373340442,), (1373340445,), (1373340448,), (1373340452,), (1373340507,), (1373340518,), (1373340525,), (1373340527,), (1373340530,), (1373340534,), (1373340581,), (1373340703,), (1373340764,), (1373340794,), (1373340797,), (1373340800,), (1373340802,), (1373340823,), (1373340826,), (1373340828,), (1373340830,), (1373340832,), (1373340835,), (1373340869,), (1373340879,), (1373340883,), (1373340885,), (1373340887,), (1373340891,), (1373340914,), (1373340920,), (1373340922,), (1373340925,), (1373340930,), (1373340934,), (1373340958,), (1373340967,), (1373340974,), (1373340977,), (1373340980,), (1373340983,), (1373341005,), (1373341010,), (1373341013,), (1373341015,), (1373341017,), (1373341020,), (1373341047,), (1373341052,), (1373341055,), (1373341056,), (1373341057,), (1373341059,), (1373341088,), (1373341092,), (1373341095,), (1373341098,), (1373341108,), (1373341114,), (1373341148,), (1373341155,), (1373341160,), (1373341161,), (1373341163,), (1373341166,), (1373341245,), (1373341247,), (1373341250,), (1373341253,), (1373341255,), (1373341260,), (1373341280,), (1373341287,), (1373341291,), (1373341293,), (1373341297,), (1373341301,), (1373341318,), (1373341328,), (1373341338,), (1373341342,), (1373341344,), (1373341348,), (1373341375,), (1373341379,), (1373341382,), (1373341383,), (1373341386,), (1373341388,), (1373341411,), (1373341418,), (1373341419,), (1373341420,), (1373341421,), (1373341423,), (1373341453,), (1373341456,), (1373341459,), (1373341462,), (1373341466,), (1373341471,), (1373341510,), (1373341556,), (1373341558,), (1373341561,), (1373341563,), (1373341566,), (1373341571,), (1373341598,), (1373341605,), (1373341636,), (1373341638,), (1373341650,), (1373341654,), (1373341697,), (1373341763,), (1373341765,), (1373341768,), (1373341770,), (1373341772,), (1373341795,), (1373341804,), (1373341810,), (1373341814,), (1373341816,), (1373341821,), (1373341847,), (1373341850,), (1373341852,), (1373341855,), (1373341857,), (1373341862,), (1373341892,), (1373341894,), (1373341896,), (1373341897,), (1373341899,), (1373341903,), (1373341926,), (1373341930,), (1373341933,), (1373341936,), (1373341940,), (1373341944,), (1373341967,), (1373341975,), (1373341978,), (1373341989,), (1373341992,), (1373341994,), (1373342011,), (1373342015,), (1373342018,), (1373342020,), (1373342023,), (1373342027,), (1373342047,), (1373342051,), (1373342056,), (1373342058,), (1373342061,), (1373342064,), (1373342092,), (1373342096,), (1373342099,), (1373342101,), (1373342103,), (1373342107,), (1373343084,), (1373343424,), (1373343430,), (1373343458,), (1373343506,), (1373343547,), (1373343888,), (1373343916,), (1373343941,), (1373343965,), (1373343992,), (1373344109,), (1373344227,), (1373344234,), (1373344238,), (1373344270,), (1373344272,), (1373344278,), (1373344447,), (1373344453,), (1373344457,), (1373344493,), (1373344507,), (1373344509,), (1373344547,), (1373344552,), (1373344624,), (1373344627,), (1373344633,), (1373344637,), (1373344651,), (1373344656,), (1373344658,), (1373344707,), (1373344732,), (1373344737,), (1373344763,), (1373344790,), (1373344791,), (1373344802,), (1373344806,), (1373344820,), (1373344835,), (1373344861,), (1373344868,), (1373344870,), (1373344871,), (1373344872,), (1373344876,), (1373344942,), (1373344946,), (1373344955,), (1373344956,), (1373344958,), (1373344962,), (1373345074,), (1373345078,), (1373345080,), (1373345100,), (1373345105,), (1373345107,), (1373345238,), (1373345266,), (1373345291,), (1373345352,), (1373345364,), (1373345369,), (1373345450,), (1373345457,), (1373345463,), (1373345469,), (1373345472,), (1373345478,), (1373345648,), (1373345653,), (1373345677,), (1373345682,), (1373345694,), (1373345715,), (1373346009,), (1373346044,), (1373346077,), (1373346128,), (1373346169,), (1373346225,), (1373346418,), (1373346496,), (1373346525,), (1373346552,), (1373346582,), (1373346611,), (1373346647,), (1373346674,), (1373346707,), (1373346715,), (1373346717,), (1373346721,), (1373346801,), (1373346804,), (1373346807,), (1373346810,), (1373346814,), (1373346817,), (1373346867,), (1373346870,), (1373346873,), (1373346874,), (1373346875,), (1373346878,), (1373346918,), (1373346922,), (1373346939,), (1373346944,), (1373346948,), (1373346952,), (1373347040,), (1373347074,), (1373347093,), (1373347104,), (1373347106,), (1373347113,), (1373347117,), (1373347400,), (1373347433,), (1373347468,), (1373347501,), (1373347517,), (1373347520,), (1373347644,), (1373347648,), (1373347651,), (1373347693,), (1373347695,), (1373347718,), (1373347748,), (1373347753,), (1373347756,), (1373347758,), (1373347761,), (1373347770,), (1373347852,), (1373347861,), (1373347865,), (1373347868,), (1373347872,), (1373347875,), (1373348045,), (1373348056,), (1373348061,), (1373348078,), (1373348083,), (1373348086,), (1373348113,), (1373348115,), (1373348117,), (1373348119,), (1373348120,), (1373348124,), (1373348157,), (1373348160,), (1373348163,), (1373348164,), (1373348168,), (1373348172,), (1373348201,), (1373348206,), (1373348211,), (1373348214,), (1373348217,), (1373348221,), (1373348252,), (1373348286,), (1373348290,), (1373348292,), (1373348293,), (1373348304,), (1373348309,), (1373348353,), (1373348357,), (1373348360,), (1373348364,), (1373348366,), (1373348368,), (1373348514,), (1373348539,), (1373348545,), (1373348549,), (1373348551,), (1373348554,), (1373348558,), (1373348591,), (1373348595,), (1373348604,), (1373348609,), (1373348613,), (1373348617,), (1373348651,), (1373348657,), (1373348661,), (1373348694,), (1373348739,), (1373348743,), (1373348758,), (1373348762,), (1373348766,), (1373348769,), (1373348771,), (1373348774,), (1373348800,), (1373348807,), (1373348810,), (1373348811,), (1373348813,), (1373348827,), (1373348854,), (1373348881,), (1373348882,), (1373348883,), (1373348884,), (1373348886,), (1373348889,), (1373348901,), (1373348906,), (1373348914,), (1373348916,), (1373348919,), (1373348923,), (1373348942,), (1373348951,), (1373348955,), (1373348957,), (1373348959,), (1373348962,), (1373348987,), (1373348991,), (1373348994,), (1373348997,), (1373348998,), (1373349001,), (1373349027,), (1373349030,), (1373349034,), (1373349036,), (1373349038,), (1373349044,), (1373349072,), (1373349078,), (1373349081,), (1373349083,), (1373349086,), (1373349090,), (1373349111,), (1373349120,), (1373349122,), (1373349124,), (1373349127,), (1373349130,), (1373349149,), (1373349152,), (1373349155,), (1373349157,), (1373349159,), (1373349162,), (1373349188,), (1373349222,), (1373349230,), (1373349233,), (1373349236,), (1373349240,), (1373349244,), (1373349265,), (1373349271,), (1373349275,), (1373349276,), (1373349278,), (1373349282,), (1373349302,), (1373349305,), (1373349308,), (1373349310,), (1373349313,), (1373349318,), (1373349341,), (1373349348,), (1373349353,), (1373349355,), (1373349358,), (1373349364,), (1373349389,), (1373349396,), (1373349399,), (1373349403,), (1373349407,), (1373349410,), (1373349428,), (1373349431,), (1373349433,), (1373349435,), (1373349438,), (1373349441,), (1373349468,), (1373349470,), (1373349472,), (1373349474,), (1373349476,), (1373349479,), (1373349507,), (1373349522,), (1373349525,), (1373349528,), (1373349529,), (1373349531,), (1373349556,), (1373349560,), (1373349562,), (1373349563,), (1373349565,), (1373349568,), (1373349843,), (1373349873,), (1373349900,), (1373349928,), (1373349961,), (1373349988,), (1373350276,), (1373350306,), (1373350339,), (1373350369,), (1373350398,), (1373350425,), (1373350558,), (1373350584,), (1373350588,), (1373350591,), (1373350614,), (1373350644,), (1373350746,), (1373350774,), (1373350801,), (1373350827,), (1373350855,), (1373350881,), (1373351153,), (1373351182,), (1373351210,), (1373351240,), (1373351266,), (1373351291,), (1373351598,), (1373351627,), (1373351649,), (1373351677,), (1373351703,), (1373351729,), (1373352054,), (1373352091,), (1373352122,), (1373352151,), (1373352192,), (1373352246,), (1373352749,), (1373353095,), (1373353107,), (1373353121,), (1373353135,), (1373353137,), (1373353139,), (1373353241,), (1373353353,), (1373353357,), (1373353360,), (1373353364,), (1373353367,), (1373353393,), (1373353418,), (1373353437,), (1373353446,), (1373353450,), (1373353452,), (1373353454,), (1373353457,), (1373353489,), (1373353490,), (1373353491,), (1373353492,), (1373353494,), (1373353496,), (1373353528,), (1373353538,), (1373353545,), (1373353547,), (1373353549,), (1373353551,), (1373353612,), (1373353615,), (1373353618,), (1373353621,), (1373353622,), (1373353624,), (1373353700,), (1373353705,), (1373353708,), (1373353710,), (1373353713,), (1373353717,), (1373353743,), (1373353749,), (1373353755,), (1373353756,), (1373353757,), (1373353759,), (1373353790,), (1373353792,), (1373353795,), (1373353797,), (1373353799,), (1373353801,), (1373353832,), (1373353835,), (1373353838,), (1373353840,), (1373353843,), (1373353847,), (1373353874,), (1373353879,), (1373353883,), (1373353888,), (1373353893,), (1373353895,), (1373353972,), (1373353999,), (1373354007,), (1373354009,), (1373354010,), (1373354013,), (1373354017,), (1373354043,), (1373354045,), (1373354047,), (1373354054,), (1373354063,), (1373354082,), (1373354137,), (1373354150,), (1373354153,), (1373354154,), (1373354155,), (1373354165,), (1373354176,), (1373354179,), (1373354182,), (1373354185,), (1373354188,), (1373354191,), (1373354220,), (1373354227,), (1373354229,), (1373354231,), (1373354232,), (1373354236,), (1373354263,), (1373354265,), (1373354267,), (1373354269,), (1373354270,), (1373354273,), (1373354293,), (1373354294,), (1373354297,), (1373354299,), (1373354303,), (1373354308,), (1373354331,), (1373354333,), (1373354335,), (1373354336,), (1373354338,), (1373354342,), (1373354408,), (1373354413,), (1373354416,), (1373354418,), (1373354420,), (1373354449,), (1373356716,), (1373354504,), (1373354508,), (1373354509,), (1373354510,), (1373354512,), (1373354513,), (1373354532,), (1373354540,), (1373354546,), (1373354547,), (1373354549,), (1373354553,), (1373354573,), (1373354576,), (1373354579,), (1373354590,), (1373354595,), (1373354598,), (1373354622,), (1373354625,), (1373354627,), (1373354629,), (1373354631,), (1373354634,), (1373354663,), (1373354714,), (1373354723,), (1373354726,), (1373354734,), (1373354736,), (1373354749,), (1373354781,), (1373354814,), (1373354817,), (1373354819,), (1373354822,), (1373354863,), (1373354901,), (1373354930,), (1373354932,), (1373354934,), (1373354935,), (1373354936,), (1373354939,), (1373354992,), (1373355006,), (1373355016,), (1373355019,), (1373355022,), (1373355028,), (1373355204,), (1373355206,), (1373355228,), (1373355230,), (1373355237,), (1373355264,), (1373355311,), (1373355352,), (1373355360,), (1373355362,), (1373355364,), (1373355365,), (1373355368,), (1373355408,), (1373355415,), (1373355418,), (1373355421,), (1373355423,), (1373355426,), (1373355466,), (1373355468,), (1373355478,), (1373355501,), (1373355513,), (1373355521,), (1373355545,), (1373355547,), (1373355562,), (1373355589,), (1373355616,), (1373355644,), (1373355783,), (1373355820,), (1373355824,), (1373355827,), (1373355837,), (1373355841,), (1373355855,), (1373355876,), (1373355902,), (1373355926,), (1373355955,), (1373355969,), (1373355991,), (1373355995,), (1373355998,), (1373356001,), (1373356002,), (1373356004,), (1373356029,), (1373356031,), (1373356034,), (1373356036,), (1373356038,), (1373356043,), (1373356072,), (1373356075,), (1373356079,), (1373356081,), (1373356084,), (1373356091,), (1373356179,), (1373356214,), (1373356251,), (1373356252,), (1373356255,), (1373356257,), (1373356258,), (1373356261,), (1373356280,), (1373356282,), (1373356284,), (1373356285,), (1373356287,), (1373356292,), (1373356325,), (1373356327,), (1373356330,), (1373356332,), (1373356334,), (1373356338,), (1373356367,), (1373356370,), (1373356372,), (1373356380,), (1373356384,), (1373356388,), (1373356433,), (1373356438,), (1373356441,), (1373356443,), (1373356446,), (1373356450,), (1373356689,), (1373357224,), (1373357278,), (1373357313,), (1373357340,), (1373357366,), (1373357840,), (1373358333,), (1373358360,), (1373358395,), (1373358434,), (1373358493,), (1373358590,), (1373358952,), (1373358997,), (1373359024,), (1373359049,), (1373359079,), (1373359105,), (1373359494,), (1373359497,), (1373359500,), (1373359513,), (1373359536,), (1373359540,), (1373359611,), (1373359939,), (1373359952,), (1373359978,), (1373360006,), (1373360012,), (1373360020,), (1373360131,), (1373360140,), (1373360150,), (1373360154,), (1373360157,), (1373360161,), (1373360239,), (1373360241,), (1373360243,), (1373360244,), (1373360247,), (1373360249,), (1373360278,), (1373360284,), (1373360286,), (1373360287,), (1373360289,), (1373360291,), (1373360368,), (1373360370,), (1373360373,), (1373360391,), (1373360447,), (1373360451,), (1373360519,), (1373360542,), (1373360545,), (1373360548,), (1373360551,), (1373360552,), (1373360555,), (1373360581,), (1373360583,), (1373360585,), (1373360586,), (1373360588,), (1373360593,), (1373360847,), (1373360848,), (1373360869,), (1373360871,), (1373360877,), (1373360881,), (1373360911,), (1373360916,), (1373360917,), (1373360918,), (1373360929,), (1373360934,), (1373360952,), (1373360954,), (1373360955,), (1373360957,), (1373360959,), (1373360963,), (1373360987,), (1373360991,), (1373360994,), (1373360997,), (1373360999,), (1373361003,), (1373361028,), (1373361037,), (1373361046,), (1373361049,), (1373361052,), (1373361055,), (1373361099,), (1373361102,), (1373361104,), (1373361106,), (1373361107,), (1373361140,), (1373361196,), (1373361216,), (1373361223,), (1373361225,), (1373361228,), (1373361231,), (1373361430,), (1373361642,), (1373361687,), (1373361691,), (1373361693,), (1373361696,), (1373361700,), (1373361705,), (1373361730,), (1373361735,), (1373361739,), (1373361741,), (1373361744,), (1373361748,), (1373361773,), (1373361777,), (1373361781,), (1373361784,), (1373361788,), (1373361791,), (1373361814,), (1373361817,), (1373361823,), (1373361826,), (1373361829,), (1373361832,), (1373361856,), (1373361865,), (1373361867,), (1373361870,), (1373361874,), (1373361878,), (1373361942,), (1373361950,), (1373361960,), (1373361964,), (1373361968,), (1373362032,), (1373362065,), (1373362068,), (1373362071,), (1373362072,), (1373362105,), (1373362148,), (1373362227,), (1373362230,), (1373362243,), (1373362275,), (1373362277,), (1373362280,), (1373362308,), (1373362409,), (1373362412,), (1373362445,), (1373362468,), (1373362471,), (1373362473,), (1373362518,), (1373362522,), (1373362524,), (1373362526,), (1373362528,), (1373362530,), (1373362548,), (1373362555,), (1373362564,), (1373362572,), (1373362575,), (1373362578,), (1373362707,), (1373362734,), (1373362758,), (1373362785,), (1373362810,), (1373362828,), (1373362844,), (1373362870,), (1373362877,), (1373362882,), (1373362884,), (1373362886,), (1373362891,), (1373362933,), (1373362939,), (1373362941,), (1373362943,), (1373362945,), (1373362948,), (1373363013,), (1373363019,), (1373363029,), (1373363031,), (1373363033,), (1373363035,), (1373363178,), (1373363242,), (1373363278,), (1373363281,), (1373363285,), (1373363289,), (1373363290,), (1373363294,), (1373363330,), (1373363335,), (1373363338,), (1373363342,), (1373363344,), (1373363348,), (1373363372,), (1373363376,), (1373363380,), (1373363382,), (1373363385,), (1373363388,), (1373363420,), (1373363424,), (1373363428,), (1373363432,), (1373363435,), (1373363439,), (1373363462,), (1373363466,), (1373363468,), (1373363471,), (1373363473,), (1373363476,), (1373363506,), (1373363510,), (1373363532,), (1373363535,), (1373363538,), (1373363541,), (1373363583,), (1373363595,), (1373363603,), (1373363607,), (1373363608,), (1373363614,), (1373363688,), (1373363700,), (1373363707,), (1373363711,), (1373363731,), (1373363755,), (1373363795,), (1373363797,), (1373363800,), (1373363803,), (1373363808,), (1373363812,), (1373363849,), (1373363946,), (1373363948,), (1373363950,), (1373363952,), (1373363955,), (1373363961,), (1373363984,), (1373364006,), (1373364011,), (1373364016,), (1373364020,), (1373364022,), (1373364033,), (1373364038,), (1373364057,), (1373364069,), (1373364076,), (1373364079,), (1373364086,), (1373364090,), (1373364094,), (1373364130,), (1373364168,), (1373364174,), (1373364214,), (1373364240,), (1373364242,), (1373364246,), (1373364272,), (1373364295,), (1373364319,), (1373365003,), (1373365037,), (1373365069,), (1373365096,), (1373365126,), (1373365155,), (1373365568,), (1373365628,), (1373365657,), (1373365685,), (1373365708,), (1373365735,), (1373366153,), (1373366336,), (1373366341,), (1373366351,), (1373366377,), (1373366400,), (1373366402,), (1373366455,), (1373366459,), (1373366462,), (1373366464,), (1373366466,), (1373366468,), (1373366490,), (1373366498,), (1373366501,), (1373366504,), (1373366509,), (1373366512,), (1373366525,), (1373366527,), (1373366530,), (1373366533,), (1373366536,), (1373366540,), (1373366586,), (1373366590,), (1373366594,), (1373366600,), (1373366602,), (1373366605,), (1373366626,), (1373366629,), (1373366631,), (1373366632,), (1373366635,), (1373366638,), (1373366673,), (1373366675,), (1373366677,), (1373366679,), (1373366681,), (1373366685,), (1373366710,), (1373366712,), (1373366715,), (1373366717,), (1373366719,), (1373366723,), (1373366770,), (1373366772,), (1373366776,), (1373366783,), (1373366787,), (1373366789,), (1373366814,), (1373366849,), (1373366860,), (1373366866,), (1373366869,), (1373366872,), (1373366875,), (1373366898,), (1373366901,), (1373366903,), (1373366905,), (1373366907,), (1373366910,), (1373366940,), (1373366947,), (1373366950,), (1373366952,), (1373366955,), (1373366957,), (1373366986,), (1373366992,), (1373366997,), (1373367000,), (1373367003,), (1373367005,), (1373367033,), (1373367044,), (1373367051,), (1373367060,), (1373367061,), (1373367064,), (1373367086,), (1373367088,), (1373367092,), (1373367096,), (1373367101,), (1373367106,), (1373367132,), (1373367134,), (1373367136,), (1373367138,), (1373367140,), (1373367143,), (1373367164,), (1373367171,), (1373367173,), (1373367174,), (1373367175,), (1373367178,), (1373367238,), (1373367246,), (1373367249,), (1373367250,), (1373367251,), (1373367254,), (1373367276,), (1373367297,), (1373367298,), (1373367299,), (1373367300,), (1373367303,), (1373367308,), (1373367354,), (1373367357,), (1373367360,), (1373367362,), (1373367363,), (1373367366,), (1373367437,), (1373367445,), (1373367456,), (1373367467,), (1373367470,), (1373367471,), (1373367486,), (1373367493,), (1373367499,), (1373367501,), (1373367503,), (1373367506,), (1373367529,), (1373367538,), (1373367548,), (1373367553,), (1373367554,), (1373367557,), (1373367588,), (1373367592,), (1373367595,), (1373367607,), (1373367610,), (1373367613,), (1373367617,), (1373367628,), (1373367630,), (1373367632,), (1373367635,), (1373367639,), (1373367657,), (1373367661,), (1373367667,), (1373367671,), (1373367672,), (1373367677,), (1373367724,), (1373367752,), (1373367786,), (1373367787,), (1373367788,), (1373367790,), (1373367791,), (1373367794,), (1373367816,), (1373367826,), (1373367835,), (1373367836,), (1373367838,), (1373367841,), (1373367856,), (1373367859,), (1373367863,), (1373367866,), (1373367867,), (1373367871,), (1373367892,), (1373367898,), (1373367900,), (1373367914,), (1373367920,), (1373367924,), (1373367938,), (1373367940,), (1373367942,), (1373367944,), (1373367947,), (1373367950,), (1373367973,), (1373367984,), (1373367993,), (1373367996,), (1373367998,), (1373368000,), (1373368029,), (1373368036,), (1373368048,), (1373368059,), (1373368061,), (1373368064,), (1373368090,), (1373368098,), (1373368109,), (1373368111,), (1373368114,), (1373368118,), (1373368190,), (1373368200,), (1373368203,), (1373368205,), (1373368208,), (1373368210,), (1373368313,), (1373368338,), (1373368349,), (1373368358,), (1373368360,), (1373368363,), (1373368367,), (1373368390,), (1373368399,), (1373368406,), (1373368408,), (1373368410,), (1373368413,), (1373368433,), (1373368437,), (1373368441,), (1373368444,), (1373368445,), (1373368449,), (1373368469,), (1373368477,), (1373368491,), (1373368493,), (1373368495,), (1373368497,), (1373368523,), (1373368560,), (1373368565,), (1373368566,), (1373368569,), (1373368572,), (1373368575,), (1373368632,), (1373368702,), (1373368705,), (1373368713,), (1373368728,), (1373368737,), (1373368743,), (1373368777,), (1373368778,), (1373368779,), (1373368781,), (1373368783,), (1373368787,), (1373368824,), (1373368864,), (1373368871,), (1373368886,), (1373368896,), (1373368903,), (1373368907,), (1373368933,), (1373368942,), (1373368953,), (1373368955,), (1373368958,), (1373368961,), (1373368981,), (1373368984,), (1373368987,), (1373368990,), (1373368992,), (1373368996,), (1373369014,), (1373369018,), (1373369021,), (1373369024,), (1373369026,), (1373369029,), (1373369047,), (1373369050,), (1373369052,), (1373369054,), (1373369056,), (1373369058,), (1373369071,), (1373369074,), (1373369077,), (1373369078,), (1373369080,), (1373369083,), (1373369439,), (1373370114,), (1373370138,), (1373370150,), (1373370152,), (1373370170,), (1373370562,), (1373370940,), (1373370964,), (1373370998,), (1373371032,), (1373371063,), (1373371110,), (1373371210,), (1373371213,), (1373371238,), (1373371273,), (1373371297,), (1373371322,), (1373371448,), (1373371454,), (1373371458,), (1373371469,), (1373371475,), (1373371484,), (1373371571,), (1373371575,), (1373371590,), (1373371601,), (1373371604,), (1373371607,), (1373371625,), (1373371631,), (1373371637,), (1373371650,), (1373371652,), (1373371655,), (1373371682,), (1373371687,), (1373371691,), (1373371693,), (1373371696,), (1373371700,), (1373371721,), (1373371749,), (1373371762,), (1373371771,), (1373371773,), (1373371775,), (1373371779,), (1373371828,), (1373371832,), (1373371834,), (1373371838,), (1373371847,), (1373371856,), (1373371980,), (1373372040,), (1373372043,), (1373372046,), (1373372050,), (1373372054,), (1373372058,), (1373372072,), (1373372100,), (1373372105,), (1373372109,), (1373372113,), (1373372115,), (1373372148,), (1373372178,), (1373372186,), (1373372198,), (1373372206,), (1373372235,), (1373372264,), (1373372479,), (1373372500,), (1373372508,), (1373372513,), (1373372524,), (1373372527,), (1373372607,), (1373372673,), (1373372677,), (1373372681,), (1373372705,), (1373372731,), (1373372826,), (1373372829,), (1373372845,), (1373372870,), (1373372886,), (1373372891,), (1373372931,), (1373372934,), (1373372945,), (1373372978,), (1373373004,), (1373373028,), (1373373321,), (1373373455,), (1373373460,), (1373373463,), (1373373466,), (1373373468,), (1373373471,), (1373373486,), (1373373489,), (1373373491,), (1373373493,), (1373373495,), (1373373499,), (1373373517,), (1373373521,), (1373373525,), (1373373527,), (1373373530,), (1373373533,), (1373373551,), (1373373553,), (1373373555,), (1373373557,), (1373373561,), (1373373566,), (1373373592,), (1373373601,), (1373373604,), (1373373606,), (1373373608,), (1373373613,), (1373373649,), (1373373651,), (1373373653,), (1373373656,), (1373373658,), (1373373664,), (1373373691,), (1373373694,), (1373373696,), (1373373699,), (1373373701,), (1373373704,), (1373373726,), (1373373733,), (1373373738,), (1373373740,), (1373373742,), (1373373745,), (1373373769,), (1373373779,), (1373373784,), (1373373786,), (1373373788,), (1373373791,), (1373373830,), (1373373834,), (1373373837,), (1373373839,), (1373373843,), (1373373846,), (1373373868,), (1373373887,), (1373373889,), (1373373891,), (1373373893,), (1373373895,), (1373373899,), (1373373929,), (1373373949,), (1373373952,), (1373373953,), (1373373956,), (1373373958,), (1373373981,), (1373373983,), (1373373986,), (1373373988,), (1373373990,), (1373373993,), (1373374012,), (1373374015,), (1373374017,), (1373374018,), (1373374020,), (1373374023,), (1373374042,), (1373374046,), (1373374049,), (1373374052,), (1373374055,), (1373374057,), (1373374088,), (1373374097,), (1373374110,), (1373374114,), (1373374123,), (1373374131,), (1373374227,), (1373374232,), (1373374236,), (1373374238,), (1373374241,), (1373374244,), (1373374262,), (1373374266,), (1373374270,), (1373374272,), (1373374281,), (1373374286,), (1373374319,), (1373374676,), (1373374825,), (1373374829,), (1373374832,), (1373374834,), (1373374836,), (1373374838,), (1373374889,), (1373374899,), (1373374903,), (1373374905,), (1373374907,), (1373374911,), (1373374923,), (1373374927,), (1373374930,), (1373374931,), (1373374934,), (1373374937,), (1373374959,), (1373374962,), (1373374964,), (1373374965,), (1373374967,), (1373374969,), (1373375065,), (1373375067,), (1373375069,), (1373375071,), (1373375074,), (1373375079,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23072025': {'nb_upload': 12, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25233451]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] map_info['map_portfolio_photo'] : {25233451: [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065, 1373374969, 1373374967, 1373374965, 1373374964, 1373374962, 1373374959]} final : True mtd_id 4302 list_pids : [1373375079, 1373375074, 1373375071, 1373375069, 1373375067, 1373375065] Looping around the photos to save general results len do output : 1 /25233451Didn'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, '3329657') ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657') ('4302', None, None, None, None, None, None, None, '3329657') ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657') 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', None, '25233451', 'None', None, None, None, None, '3329657'), ('4302', '25233451', '1373375079', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375074', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375071', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375069', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375067', None, None, None, None, None, '3329657'), ('4302', '25233451', '1373375065', None, None, None, None, None, '3329657')] time used for this insertion : 0.020510196685791016 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.079009532928467 time spend to save output : 0.02066946029663086 total time spend for step 5 : 6.099678993225098 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 (3329657) 1.98user 2.45system 0:11.23elapsed 39%CPU (0avgtext+0avgdata 157928maxresident)k 624inputs+4400outputs (20major+63835minor)pagefaults 0swaps