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 : 3512242 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 (2800872) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2800872) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711348 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2800872'] with mtr_portfolio_ids : ['22711348'] and first list_photo_ids : [] new path : /proc/3512242/ Name: python3 Umask: 0002 State: R (running) Tgid: 3512242 Ngid: 0 Pid: 3512242 PPid: 3512241 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3512242 NSpid: 3512242 NSpgid: 3507625 NSsid: 3507625 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99040 kB VmRSS: 99040 kB RssAnon: 60192 kB RssFile: 38848 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 47 nonvoluntary_ctxt_switches: 70 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3512242', 'Ngid': '0', 'Pid': '3512242', 'PPid': '3512241', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3512242', 'NSpid': '3512242', 'NSpgid': '3507625', 'NSsid': '3507625', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99040 kB', 'VmRSS': '99040 kB', 'RssAnon': '60192 kB', 'RssFile': '38848 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '47', 'nonvoluntary_ctxt_switches': '70'} ('datou_batch_current', '3512242', '1107228', '0', '1107228', '865976', '99040', b'', 'marlene', '2800872') 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 (22711348) 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 (2800872 ) ) 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 (22711348) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356321447, 'portfolio_id': 22711348}, {'photo_id': 1356312109, 'portfolio_id': 22711348}, {'photo_id': 1356312105, 'portfolio_id': 22711348}, {'photo_id': 1356312102, 'portfolio_id': 22711348}, {'photo_id': 1356312090, 'portfolio_id': 22711348}, {'photo_id': 1356312027, 'portfolio_id': 22711348}, {'photo_id': 1356312020, 'portfolio_id': 22711348}, {'photo_id': 1356312008, 'portfolio_id': 22711348}, {'photo_id': 1356311972, 'portfolio_id': 22711348}, {'photo_id': 1356311718, 'portfolio_id': 22711348}, {'photo_id': 1356311705, 'portfolio_id': 22711348}, {'photo_id': 1356311698, 'portfolio_id': 22711348}, {'photo_id': 1356311689, 'portfolio_id': 22711348}, {'photo_id': 1356311678, 'portfolio_id': 22711348}] map_portfolio_id_photo_id: {22711348: [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678]} ##### 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.027817487716674805 #### 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 May 7 05:42: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22711348) 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 : 22711348 get user id for portfolio 22711348 get sub ptf for main ptf 22711348, type 3726 and hashtags ['metal', 'mal_croppe', 'Carton_gris', 'papier', 'environnement', 'autre_refus', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'flou', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22711348 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','papier','environnement','autre_refus','plastique','cartonnette','Teint_Dans_La_Masse','kraft','flou','Carton_brun')) 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`=22711348 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','papier','environnement','autre_refus','plastique','cartonnette','Teint_Dans_La_Masse','kraft','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22711348, 'sub_port_id': 22711398, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128289, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'environnement': {'main_port_id': 22711348, 'sub_port_id': 22711399, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128290, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'metal': {'main_port_id': 22711348, 'sub_port_id': 22711400, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128291, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'mal_croppe': {'main_port_id': 22711348, 'sub_port_id': 22711401, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128292, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'flou': {'main_port_id': 22711348, 'sub_port_id': 22711402, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128293, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'plastique': {'main_port_id': 22711348, 'sub_port_id': 22711403, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128294, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'cartonnette': {'main_port_id': 22711348, 'sub_port_id': 22711404, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128295, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'Carton_gris': {'main_port_id': 22711348, 'sub_port_id': 22711405, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128296, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'Carton_brun': {'main_port_id': 22711348, 'sub_port_id': 22711406, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128297, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22711348, 'sub_port_id': 22711407, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128298, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'autre_refus': {'main_port_id': 22711348, 'sub_port_id': 22711408, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128299, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}, 'papier': {'main_port_id': 22711348, 'sub_port_id': 22711409, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128300, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22711398 , 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=22711348 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 (22711398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711399 , 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=22711348 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 (22711399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711400 , 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=22711348 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 (22711400) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711401 , 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=22711348 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 (22711401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711402 , 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=22711348 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 (22711402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711403 , 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=22711348 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 (22711403) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711404 , 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=22711348 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 (22711404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711405 , 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=22711348 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 (22711405) result : ((1356312282,), (1356312283,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711406 , 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=22711348 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 (22711406) result : ((1356312284,), (1356316102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711407 , 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=22711348 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 (22711407) result : ((1356312281,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711408 , 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=22711348 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 (22711408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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 22711409 , 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=22711348 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 (22711409) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22711348) result : ((1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,)) 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`=22711348 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','papier','environnement','autre_refus','plastique','cartonnette','Teint_Dans_La_Masse','kraft','flou','Carton_brun')) 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`=22711348 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','papier','environnement','autre_refus','plastique','cartonnette','Teint_Dans_La_Masse','kraft','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22711348, 'sub_port_id': 22711410, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128301, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'environnement': {'main_port_id': 22711348, 'sub_port_id': 22711411, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128302, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'metal': {'main_port_id': 22711348, 'sub_port_id': 22711412, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128303, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'mal_croppe': {'main_port_id': 22711348, 'sub_port_id': 22711413, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128304, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'flou': {'main_port_id': 22711348, 'sub_port_id': 22711414, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128305, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'plastique': {'main_port_id': 22711348, 'sub_port_id': 22711415, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128306, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'cartonnette': {'main_port_id': 22711348, 'sub_port_id': 22711416, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128307, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'Carton_gris': {'main_port_id': 22711348, 'sub_port_id': 22711417, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128308, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'Carton_brun': {'main_port_id': 22711348, 'sub_port_id': 22711418, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128309, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22711348, 'sub_port_id': 22711419, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128310, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'autre_refus': {'main_port_id': 22711348, 'sub_port_id': 22711420, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128311, 'last_updated_at': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 9, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}, 'papier': {'main_port_id': 22711348, 'sub_port_id': 22711421, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15128312, 'last_updated_at': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 9, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22711421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22711409 lien utilise dans velours : https://www.fotonower.com/velours/22711410,22711411,22711412,22711413,22711414,22711415,22711416,22711417,22711418,22711419,22711420,22711421?tags=kraft,environnement,metal,mal_croppe,flou,plastique,cartonnette,Carton_gris,Carton_brun,Teint_Dans_La_Masse,autre_refus,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22711348]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] map_info['map_portfolio_photo'] : {22711348: [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678]} final : False mtd_id 4302 list_pids : [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] Looping around the photos to save general results len do output : 1 /22711348. 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, '2800872') ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22711348', "{'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409}", None, None, None, None, '2800872'), ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872')] time used for this insertion : 0.015316486358642578 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7402641773223877 time spend to save output : 0.01555633544921875 total time spend for step 1 : 1.7558205127716064 step2:final Wed May 7 05:42:02 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 (22711348) 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 22711348 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356311718,1356311705,1356311698,1356311689,1356311678,1356312027,1356312020,1356312008,1356311972,1356312109,1356312105,1356312102,1356312090,1356321447); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22711348]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} new output for save of step final : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] map_info['map_portfolio_photo'] : {22711348: [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678]} final : False mtd_id 4302 list_pids : [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] Looping around the photos to save general results len do output : 14 /1356321447.Didn't retrieve data . /1356312109.Didn't retrieve data . /1356312105.Didn't retrieve data . /1356312102.Didn't retrieve data . /1356312090.Didn't retrieve data . /1356312027.Didn't retrieve data . /1356312020.Didn't retrieve data . /1356312008.Didn't retrieve data . /1356311972.Didn't retrieve data . /1356311718.Didn't retrieve data . /1356311705.Didn't retrieve data . /1356311698.Didn't retrieve data . /1356311689.Didn't retrieve data . /1356311678.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, '2800872') ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22711348', '1356321447', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312109', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312105', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312102', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312090', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312027', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312020', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356312008', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311972', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311718', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311705', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311698', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311689', '0.029305356586870474', None, None, None, None, '2800872'), ('4302', '22711348', '1356311678', '0.029305356586870474', None, None, None, None, '2800872')] time used for this insertion : 0.014567852020263672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.059743642807006836 time spend to save output : 0.014933347702026367 total time spend for step 2 : 0.0746769905090332 step3:velours_tree Wed May 7 05:42:02 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 : {22711348: [{'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409}]} input_args_next_step : {22711348: ()} output_args : {22711348: [{'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409}]} args : 22711348 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 : ({'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22711348) 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([22711348]) 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.308243989944458 time spend to save output : 6.4849853515625e-05 total time spend for step 3 : 0.30830883979797363 step4:send_mail_cod Wed May 7 05:42:02 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 : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} input_args_next_step : {1356321447: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356321447 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312109 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312105 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312102 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312090 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312027 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312020 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356312008 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311972 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311718 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311705 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311698 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311689 depend.output_id : 0 input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ()} output_args : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',)} args : 1356311678 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 : {22711348: [{'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409}]} input_args_next_step : {1356321447: ('0.029305356586870474',), 1356312109: ('0.029305356586870474',), 1356312105: ('0.029305356586870474',), 1356312102: ('0.029305356586870474',), 1356312090: ('0.029305356586870474',), 1356312027: ('0.029305356586870474',), 1356312020: ('0.029305356586870474',), 1356312008: ('0.029305356586870474',), 1356311972: ('0.029305356586870474',), 1356311718: ('0.029305356586870474',), 1356311705: ('0.029305356586870474',), 1356311698: ('0.029305356586870474',), 1356311689: ('0.029305356586870474',), 1356311678: ('0.029305356586870474',), 22711348: ()} output_args : {22711348: [{'kraft': 22711398, 'environnement': 22711399, 'metal': 22711400, 'mal_croppe': 22711401, 'flou': 22711402, 'plastique': 22711403, 'cartonnette': 22711404, 'Carton_gris': 22711405, 'Carton_brun': 22711406, 'Teint_Dans_La_Masse': 22711407, 'autre_refus': 22711408, 'papier': 22711409}]} args : 22711348 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 :15, first value : ('0.029305356586870474',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22711348) 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 (1356321447,1356312109,1356312105,1356312102,1356312090,1356312027,1356312020,1356312008,1356311972,1356311718,1356311705,1356311698,1356311689,1356311678) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356311678 begin to download photo : 1356311705 begin to download photo : 1356312008 begin to download photo : 1356312090 begin to download photo : 1356312109 download finish for photo 1356311705 begin to download photo : 1356311718 download finish for photo 1356312090 begin to download photo : 1356312102 download finish for photo 1356311678 begin to download photo : 1356311689 download finish for photo 1356312109 begin to download photo : 1356321447 download finish for photo 1356312008 begin to download photo : 1356312020 download finish for photo 1356312102 begin to download photo : 1356312105 download finish for photo 1356321447 download finish for photo 1356311718 begin to download photo : 1356311972 download finish for photo 1356312020 begin to download photo : 1356312027 download finish for photo 1356311689 begin to download photo : 1356311698 download finish for photo 1356312105 download finish for photo 1356312027 download finish for photo 1356311698 download finish for photo 1356311972 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette227113981746589323/ imagette227114001746589323/ imagette227114011746589323/ imagette227114021746589323/ imagette227114031746589323/ imagette227114041746589323/ imagette227114081746589323/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22711348_07-05-2025_05_42_03.pdf 22711398 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=22711398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227113981746589323 22711400 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=22711400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114001746589323 22711401 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=22711401 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114011746589323 22711402 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=22711402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114021746589323 22711403 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=22711403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114031746589323 22711404 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=22711404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114041746589323 22711408 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=22711408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227114081746589323 22711405 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=22711405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356312282: '1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269551_0.png', 1356312283: '1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/47fb3258b41340fa612fb358eb3bf1ef_87776234.png change filename to text .imagette227114051746589323/ imagette227114051746589323/1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269549_0.png.png imagette227114051746589323/1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269551_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/eb4853065bd7d3294e13d4ada86a401f_51154699.png imagette227114051746589323 22711406 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=22711406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356312284: '1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269544_0.png', 1356316102: '1746517633_1437371_1356311689_20f9983953c532cef58073e812dc5e8c_rle_crop_3786294076_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4c79461abd66ef1e5e1bdba8479bc2b9_39581401.png change filename to text .imagette227114061746589323/ imagette227114061746589323/1746517633_1437371_1356311689_20f9983953c532cef58073e812dc5e8c_rle_crop_3786294076_0.png.png imagette227114061746589323/1746515171_1418911_1356312008_de80f5c2f60774435cef010e5436625e_rle_crop_3786269544_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9354245149fed819930c3fd26be7375e_88723106.png imagette227114061746589323 22711407 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=22711407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356312281: '1746515171_1418911_1356311972_9dbfc9a79432a4cfbf3a722ce1197dbe_rle_crop_3786269557_0.png'} change filename to text .imagette227114071746589323/ imagette227114071746589323/1746515171_1418911_1356311972_9dbfc9a79432a4cfbf3a722ce1197dbe_rle_crop_3786269557_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/cd672ef3872c6908bcfc2b1535bcc774_82572903.png imagette227114071746589323 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22711348 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22711410,22711411,22711412,22711413,22711414,22711415,22711416,22711417,22711418,22711419,22711420,22711421?tags=kraft,environnement,metal,mal_croppe,flou,plastique,cartonnette,Carton_gris,Carton_brun,Teint_Dans_La_Masse,autre_refus,papier your option no_mail is active, we will not send the real mail to your client args[1356321447] : ('0.029305356586870474',) no score found for photo 1356321447 We are sending mail with results at report@fotonower.com args[1356312109] : ('0.029305356586870474',) no score found for photo 1356312109 We are sending mail with results at report@fotonower.com args[1356312105] : ('0.029305356586870474',) no score found for photo 1356312105 We are sending mail with results at report@fotonower.com args[1356312102] : ('0.029305356586870474',) no score found for photo 1356312102 We are sending mail with results at report@fotonower.com args[1356312090] : ('0.029305356586870474',) no score found for photo 1356312090 We are sending mail with results at report@fotonower.com args[1356312027] : ('0.029305356586870474',) no score found for photo 1356312027 We are sending mail with results at report@fotonower.com args[1356312020] : ('0.029305356586870474',) no score found for photo 1356312020 We are sending mail with results at report@fotonower.com args[1356312008] : ('0.029305356586870474',) no score found for photo 1356312008 We are sending mail with results at report@fotonower.com args[1356311972] : ('0.029305356586870474',) no score found for photo 1356311972 We are sending mail with results at report@fotonower.com args[1356311718] : ('0.029305356586870474',) no score found for photo 1356311718 We are sending mail with results at report@fotonower.com args[1356311705] : ('0.029305356586870474',) no score found for photo 1356311705 We are sending mail with results at report@fotonower.com args[1356311698] : ('0.029305356586870474',) no score found for photo 1356311698 We are sending mail with results at report@fotonower.com args[1356311689] : ('0.029305356586870474',) no score found for photo 1356311689 We are sending mail with results at report@fotonower.com args[1356311678] : ('0.029305356586870474',) no score found for photo 1356311678 We are sending mail with results at report@fotonower.com refus_total : 0.029305356586870474 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=22711348 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_P22711348_07-05-2025_05_42_03.pdf results_Auto_P22711348_07-05-2025_05_42_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_07-05-2025_05_42_03.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','22711348','results_Auto_P22711348_07-05-2025_05_42_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_07-05-2025_05_42_03.pdf','pdf','','0.14','0.029305356586870474') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22711348]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] map_info['map_portfolio_photo'] : {22711348: [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678]} final : False mtd_id 4302 list_pids : [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] 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, '2800872') ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22711348', '1356321447', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872')] time used for this insertion : 0.014330625534057617 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4641480445861816 time spend to save output : 0.014594554901123047 total time spend for step 4 : 2.4787425994873047 step5:split_time_score Wed May 7 05:42:05 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 : ['22711348'] 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 : [('22711348',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22711348) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356312109: {'path': 'temp/1746589322_3512242_1356312109_d38aec122a2880182179ea6763736059.jpg', 'extension': 'jpg'}, 1356321447: {'path': 'temp/1746589322_3512242_1356321447_604fa7679df888c08395687540c115ca.jpg', 'extension': 'jpg'}, 1356312090: {'path': 'temp/1746589322_3512242_1356312090_d7525f9fa6163ce96c74d28725b42952.jpg', 'extension': 'jpg'}, 1356312102: {'path': 'temp/1746589322_3512242_1356312102_1a332b74ad43818be8759315b2f3cc82.jpg', 'extension': 'jpg'}, 1356312105: {'path': 'temp/1746589322_3512242_1356312105_dad200f2cd3071fac02936bdeb41459f.jpg', 'extension': 'jpg'}, 1356312008: {'path': 'temp/1746589322_3512242_1356312008_de80f5c2f60774435cef010e5436625e.jpg', 'extension': 'jpg'}, 1356312020: {'path': 'temp/1746589322_3512242_1356312020_463d226a674206d4fa0774e356fe091b.jpg', 'extension': 'jpg'}, 1356312027: {'path': 'temp/1746589322_3512242_1356312027_9fcaad50fb35028ef6f30d5ca4464eea.jpg', 'extension': 'jpg'}, 1356311678: {'path': 'temp/1746589322_3512242_1356311678_2900c961354bf0c0fd2fdea00b2f28c2.jpg', 'extension': 'jpg'}, 1356311689: {'path': 'temp/1746589322_3512242_1356311689_20f9983953c532cef58073e812dc5e8c.jpg', 'extension': 'jpg'}, 1356311698: {'path': 'temp/1746589322_3512242_1356311698_6a7f0469e01fabdcbb0baf17957c08fe.jpg', 'extension': 'jpg'}, 1356311705: {'path': 'temp/1746589322_3512242_1356311705_7ce7cc6173fb4873f479603ee59a974d.jpg', 'extension': 'jpg'}, 1356311718: {'path': 'temp/1746589322_3512242_1356311718_5985d31b30e819956584cbb7eaefc577.jpg', 'extension': 'jpg'}, 1356311972: {'path': 'temp/1746589322_3512242_1356311972_9dbfc9a79432a4cfbf3a722ce1197dbe.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 = 22711348; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 22711348 group by h (('09', 14),) 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=22711348 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 (22711348) 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 (22711348) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06052025 22711348 Nombre de photos uploadées : 14 / 23040 (0%) 06052025 22711348 Nombre de photos taguées (types de déchets): 0 / 14 (0%) 06052025 22711348 Nombre de photos taguées (volume) : 0 / 14 (0%) [{'photo_id': 1356311718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/5985d31b30e819956584cbb7eaefc577.jpg', 'username': None, 'uploaded_at': 1746514867, 'text': 'image_06052025_09_00_04_010175m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1356311705, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7ce7cc6173fb4873f479603ee59a974d.jpg', 'username': None, 'uploaded_at': 1746514867, 'text': 'image_06052025_09_00_13_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356311698, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6a7f0469e01fabdcbb0baf17957c08fe.jpg', 'username': None, 'uploaded_at': 1746514867, 'text': 'image_06052025_09_00_23_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1356311689, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/20f9983953c532cef58073e812dc5e8c.jpg', 'username': None, 'uploaded_at': 1746514867, 'text': 'image_06052025_09_00_33_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007503032684326172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22711348, '2025-05-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1777292,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02295708656311035 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= 1777292 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22701347, 'dashboard_result_id': 10364015, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_07-05-2025_05_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22702995, 'dashboard_result_id': 10364016, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_07-05-2025_05_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22703230, 'dashboard_result_id': 10364017, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_07-05-2025_05_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22703472, 'dashboard_result_id': 10364018, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_07-05-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22704016, 'dashboard_result_id': 10364019, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_07-05-2025_05_36_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22704427, 'dashboard_result_id': 10364020, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_07-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22704969, 'dashboard_result_id': 10364021, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_07-05-2025_05_37_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22705529, 'dashboard_result_id': 10364022, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_07-05-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22705714, 'dashboard_result_id': 10364023, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_07-05-2025_05_38_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22706282, 'dashboard_result_id': 10364024, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_07-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22707050, 'dashboard_result_id': 10364025, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22707600, 'dashboard_result_id': 10364026, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_07-05-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22708159, 'dashboard_result_id': 10364027, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_07-05-2025_05_40_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22708833, 'dashboard_result_id': 10364028, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_07-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22709529, 'dashboard_result_id': 10364029, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_07-05-2025_05_41_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22710140, 'dashboard_result_id': 10364030, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_07-05-2025_05_41_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22710502, 'dashboard_result_id': 10364031, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_07-05-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22711348, 'dashboard_result_id': 10364032, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22716068, 'dashboard_result_id': 10364033, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22716393, 'dashboard_result_id': 10364034, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716393_06-05-2025_19_56_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716432, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725101, 'dashboard_result_id': 10364035, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725101_06-05-2025_20_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22725491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725502, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725102, 'dashboard_result_id': 10364036, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725102_06-05-2025_20_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725573, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725103, 'dashboard_result_id': 10364037, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725103_06-05-2025_20_02_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725671, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725140, 'dashboard_result_id': 10364038, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725140_06-05-2025_20_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725459, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725153, 'dashboard_result_id': 10364039, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725153_06-05-2025_19_56_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22725186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725197, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725154, 'dashboard_result_id': 10364040, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725154_06-05-2025_19_59_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725381, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725167, 'dashboard_result_id': 10364041, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725167_06-05-2025_20_00_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22725394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725405, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725180, 'dashboard_result_id': 10364042, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725180_06-05-2025_19_58_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725333, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725184, 'dashboard_result_id': 10364043, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725184_06-05-2025_19_58_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725273, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725185, 'dashboard_result_id': 10364044, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725185_06-05-2025_19_57_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725225, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22718167, 'dashboard_result_id': 10364045, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22718167_06-05-2025_19_57_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22718263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22718264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22718265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22718266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22718267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22718268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22718269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22718270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22718271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22718272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22718273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22718274, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22717631, 'dashboard_result_id': 10364046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22717631_06-05-2025_17_43_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22717720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22717721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22717722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22717723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22717724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22717725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22717726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22717727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22717728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22717729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22717730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22717731, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22716945, 'dashboard_result_id': 10364047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716945_06-05-2025_17_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22717033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22717034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22717035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22717036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22717037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22717038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22717039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22717040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22717041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22717042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22717043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22717044, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22716946, 'dashboard_result_id': 10364048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22719615, 'dashboard_result_id': 10364049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22720089, 'dashboard_result_id': 10364050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22720474, 'dashboard_result_id': 10364051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22721235, 'dashboard_result_id': 10364052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22721783, 'dashboard_result_id': 10364053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721783_06-05-2025_19_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22721864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721865, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22722673, 'dashboard_result_id': 10364054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22722673_06-05-2025_19_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22722740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22722741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22722742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22722743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22722744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22722745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22722746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22722747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22722748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22722749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22722750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22722751, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22723569, 'dashboard_result_id': 10364055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22723569_06-05-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22723697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22723698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22723699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22723700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22723701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22723702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22723703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22723704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22723705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22723706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22723707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22723708, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22724626, 'dashboard_result_id': 10364056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22724626_06-05-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22724657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22724658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22724659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22724660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22724661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22724662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22724663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22724664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22724665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22724666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22724667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22724668, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22725684, 'dashboard_result_id': 10364057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725684_06-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22725730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725741, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22726759, 'dashboard_result_id': 10364058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22726759_06-05-2025_20_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22726762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22726763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22726764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22726765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22726766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22726767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22726768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22726769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22726770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22726771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22726772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22726773, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22727587, 'dashboard_result_id': 10364059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22727587_06-05-2025_21_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22727619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22727620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22727622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22727623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22727624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22727625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22727626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22727627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22727628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22727629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22727630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22727631, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22729050, 'dashboard_result_id': 10364060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22729050_06-05-2025_21_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22729147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22729148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22729149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22729150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22729151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22729152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22729153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22729154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22729155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22729156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22729157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22729158, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22730128, 'dashboard_result_id': 10364061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22730128_06-05-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22730228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22730229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22730230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22730231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22730232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22730233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22730234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22730235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22730236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22730237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22730238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22730239, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22731403, 'dashboard_result_id': 10364062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22731403_06-05-2025_21_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22731457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22731458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22731459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22731460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22731461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22731462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22731463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22731464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22731465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22731466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22731467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22731468, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22732329, 'dashboard_result_id': 10364063, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22732329_06-05-2025_22_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22732382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22732384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22732385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22732386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22732387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22732389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22732390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22732391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22732393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22732394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22732395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22732397, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22733454, 'dashboard_result_id': 10364064, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22733454_06-05-2025_22_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22733496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22733497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22733498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22733499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22733500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22733501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22733502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22733503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22733504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22733505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22733506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22733507, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22734536, 'dashboard_result_id': 10364065, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22734536_06-05-2025_22_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22734599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22734600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22734601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22734602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22734603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22734604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22734605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22734606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22734607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22734608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22734609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22734610, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22735169, 'dashboard_result_id': 10364066, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22735169_06-05-2025_22_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22735236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22735237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22735238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22735239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22735240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22735241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22735242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22735243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22735244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22735245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22735246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22735247, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22736253, 'dashboard_result_id': 10364067, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22737346, 'dashboard_result_id': 10364068, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22738129, 'dashboard_result_id': 10364069, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22739142, 'dashboard_result_id': 10364070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1789049, 'mtr_portfolio_id': 22739611, 'dashboard_result_id': 10364071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739611_07-05-2025_00_31_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739647, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22701347 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': 2800855, 'mtr_portfolio_id': 22701347, 'created_at': datetime.datetime(2025, 5, 7, 5, 34, 29), 'result': '0.061271229522416266', 'result_long': None, 'result_double': None}] Qualite : 0.061271229522416266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22701347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_07-05-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22701347 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_07-05-2025_05_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}" where mtr_portfolio_id = 22701347 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22701347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364015, 0.061271229522416266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_07-05-2025_05_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22702995 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': 2800856, 'mtr_portfolio_id': 22702995, 'created_at': datetime.datetime(2025, 5, 7, 5, 34, 59), 'result': '0.0684839965169909', 'result_long': None, 'result_double': None}] Qualite : 0.0684839965169909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22702995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_07-05-2025_05_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22702995 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_07-05-2025_05_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}" where mtr_portfolio_id = 22702995 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22702995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364016, 0.0684839965169909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_07-05-2025_05_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22703230 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': 2800857, 'mtr_portfolio_id': 22703230, 'created_at': datetime.datetime(2025, 5, 7, 5, 35, 29), 'result': '0.03521834160106097', 'result_long': None, 'result_double': None}] Qualite : 0.03521834160106097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_07-05-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703230 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_07-05-2025_05_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}" where mtr_portfolio_id = 22703230 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22703230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364017, 0.03521834160106097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_07-05-2025_05_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22703472 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': 2800858, 'mtr_portfolio_id': 22703472, 'created_at': datetime.datetime(2025, 5, 7, 5, 35, 59), 'result': '0.041300125509390044', 'result_long': None, 'result_double': None}] Qualite : 0.041300125509390044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_07-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_07-05-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}" where mtr_portfolio_id = 22703472 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22703472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364018, 0.041300125509390044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_07-05-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22704016 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': 2800859, 'mtr_portfolio_id': 22704016, 'created_at': datetime.datetime(2025, 5, 7, 5, 36, 31), 'result': '0.04002543704708744', 'result_long': None, 'result_double': None}] Qualite : 0.04002543704708744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_07-05-2025_05_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704016 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_07-05-2025_05_36_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}" where mtr_portfolio_id = 22704016 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22704016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364019, 0.04002543704708744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_07-05-2025_05_36_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22704427 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': 2800860, 'mtr_portfolio_id': 22704427, 'created_at': datetime.datetime(2025, 5, 7, 5, 37, 28), 'result': '0.03508880549158762', 'result_long': None, 'result_double': None}] Qualite : 0.03508880549158762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_07-05-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704427 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_07-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}" where mtr_portfolio_id = 22704427 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22704427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364020, 0.03508880549158762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_07-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22704969 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': 2800861, 'mtr_portfolio_id': 22704969, 'created_at': datetime.datetime(2025, 5, 7, 5, 37, 32), 'result': '0.04822745631611439', 'result_long': None, 'result_double': None}] Qualite : 0.04822745631611439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_07-05-2025_05_37_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704969 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_07-05-2025_05_37_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}" where mtr_portfolio_id = 22704969 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22704969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364021, 0.04822745631611439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_07-05-2025_05_37_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22705529 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': 2800862, 'mtr_portfolio_id': 22705529, 'created_at': datetime.datetime(2025, 5, 7, 5, 37, 28), 'result': '0.033804886893923414', 'result_long': None, 'result_double': None}] Qualite : 0.033804886893923414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_07-05-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705529 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_07-05-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}" where mtr_portfolio_id = 22705529 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22705529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364022, 0.033804886893923414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_07-05-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22705714 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': 2800863, 'mtr_portfolio_id': 22705714, 'created_at': datetime.datetime(2025, 5, 7, 5, 37, 57), 'result': '0.07058189542344218', 'result_long': None, 'result_double': None}] Qualite : 0.07058189542344218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_07-05-2025_05_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705714 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_07-05-2025_05_38_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}" where mtr_portfolio_id = 22705714 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22705714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364023, 0.07058189542344218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_07-05-2025_05_38_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22706282 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': 2800864, 'mtr_portfolio_id': 22706282, 'created_at': datetime.datetime(2025, 5, 7, 5, 38, 29), 'result': '0.056736355768707065', 'result_long': None, 'result_double': None}] Qualite : 0.056736355768707065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22706282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_07-05-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22706282 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_07-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}" where mtr_portfolio_id = 22706282 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22706282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364024, 0.056736355768707065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_07-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22707050 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': 2800865, 'mtr_portfolio_id': 22707050, 'created_at': datetime.datetime(2025, 5, 7, 5, 39, 32), 'result': '0.05111572723444802', 'result_long': None, 'result_double': None}] Qualite : 0.05111572723444802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707050 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}" where mtr_portfolio_id = 22707050 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22707050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364025, 0.05111572723444802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22707600 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': 2800866, 'mtr_portfolio_id': 22707600, 'created_at': datetime.datetime(2025, 5, 7, 5, 39, 30), 'result': '0.05602183345456429', 'result_long': None, 'result_double': None}] Qualite : 0.05602183345456429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_07-05-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707600 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_07-05-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}" where mtr_portfolio_id = 22707600 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22707600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364026, 0.05602183345456429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_07-05-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22708159 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': 2800867, 'mtr_portfolio_id': 22708159, 'created_at': datetime.datetime(2025, 5, 7, 5, 39, 59), 'result': '0.0392100036942268', 'result_long': None, 'result_double': None}] Qualite : 0.0392100036942268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_07-05-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708159 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_07-05-2025_05_40_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}" where mtr_portfolio_id = 22708159 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22708159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364027, 0.0392100036942268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_07-05-2025_05_40_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22708833 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': 2800868, 'mtr_portfolio_id': 22708833, 'created_at': datetime.datetime(2025, 5, 7, 5, 40, 31), 'result': '0.041458481397791506', 'result_long': None, 'result_double': None}] Qualite : 0.041458481397791506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_07-05-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708833 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_07-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}" where mtr_portfolio_id = 22708833 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22708833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364028, 0.041458481397791506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_07-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22709529 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': 2800869, 'mtr_portfolio_id': 22709529, 'created_at': datetime.datetime(2025, 5, 7, 5, 41, 1), 'result': '0.03737253155359144', 'result_long': None, 'result_double': None}] Qualite : 0.03737253155359144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22709529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_07-05-2025_05_41_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22709529 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_07-05-2025_05_41_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}" where mtr_portfolio_id = 22709529 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22709529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364029, 0.03737253155359144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_07-05-2025_05_41_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22710140 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': 2800870, 'mtr_portfolio_id': 22710140, 'created_at': datetime.datetime(2025, 5, 7, 5, 41, 32), 'result': '0.04733672272055575', 'result_long': None, 'result_double': None}] Qualite : 0.04733672272055575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_07-05-2025_05_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_07-05-2025_05_41_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}" where mtr_portfolio_id = 22710140 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22710140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364030, 0.04733672272055575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_07-05-2025_05_41_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22710502 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': 2800871, 'mtr_portfolio_id': 22710502, 'created_at': datetime.datetime(2025, 5, 7, 5, 41, 27), 'result': '0.06027834199948829', 'result_long': None, 'result_double': None}] Qualite : 0.06027834199948829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_07-05-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710502 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_07-05-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}" where mtr_portfolio_id = 22710502 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22710502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364031, 0.06027834199948829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_07-05-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22711348 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': 2800872, 'mtr_portfolio_id': 22711348, 'created_at': datetime.datetime(2025, 5, 7, 5, 42, 2), 'result': '0.029305356586870474', 'result_long': None, 'result_double': None}] Qualite : 0.029305356586870474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22711348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_07-05-2025_05_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22711348 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_07-05-2025_05_42_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}" where mtr_portfolio_id = 22711348 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22711348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364032, 0.029305356586870474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_07-05-2025_05_42_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22716068 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': 2797722, 'mtr_portfolio_id': 22716068, 'created_at': datetime.datetime(2025, 5, 6, 13, 49), 'result': '0.03906976949786384', 'result_long': None, 'result_double': None}] Qualite : 0.03906976949786384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716068 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}" where mtr_portfolio_id = 22716068 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22716068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364033, 0.03906976949786384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22716393 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': 2797747, 'mtr_portfolio_id': 22716393, 'created_at': datetime.datetime(2025, 5, 6, 19, 56, 33), 'result': '0.019573155016294187', 'result_long': None, 'result_double': None}] Qualite : 0.019573155016294187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716393_06-05-2025_19_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716393 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716393_06-05-2025_19_56_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716432, 'pht': 3726}}" where mtr_portfolio_id = 22716393 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22716393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364034, 0.019573155016294187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716393_06-05-2025_19_56_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725101 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 = 22725101 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 = 22725101 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725101 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 = 22725101 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 = 22725101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725101_06-05-2025_20_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725101 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725101_06-05-2025_20_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22725491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725502, 'pht': 3726}}" where mtr_portfolio_id = 22725101 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725102 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 = 22725102 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 = 22725102 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725102 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 = 22725102 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 = 22725102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725102_06-05-2025_20_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725102 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725102_06-05-2025_20_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725573, 'pht': 3726}}" where mtr_portfolio_id = 22725102 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725103 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 = 22725103 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 = 22725103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725103 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 = 22725103 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 = 22725103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725103_06-05-2025_20_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725103_06-05-2025_20_02_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725671, 'pht': 3726}}" where mtr_portfolio_id = 22725103 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725140 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 = 22725140 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 = 22725140 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725140 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 = 22725140 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 = 22725140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725140_06-05-2025_20_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725140_06-05-2025_20_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725459, 'pht': 3726}}" where mtr_portfolio_id = 22725140 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725153 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 = 22725153 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 = 22725153 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725153 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 = 22725153 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 = 22725153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725153_06-05-2025_19_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725153_06-05-2025_19_56_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22725186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725197, 'pht': 3726}}" where mtr_portfolio_id = 22725153 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725154 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 = 22725154 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 = 22725154 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725154 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 = 22725154 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 = 22725154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725154_06-05-2025_19_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725154 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725154_06-05-2025_19_59_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725381, 'pht': 3726}}" where mtr_portfolio_id = 22725154 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725167 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 = 22725167 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 = 22725167 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725167 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 = 22725167 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 = 22725167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725167_06-05-2025_20_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725167 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725167_06-05-2025_20_00_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22725394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725405, 'pht': 3726}}" where mtr_portfolio_id = 22725167 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725180 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 = 22725180 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 = 22725180 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725180 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 = 22725180 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 = 22725180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725180_06-05-2025_19_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725180 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725180_06-05-2025_19_58_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725333, 'pht': 3726}}" where mtr_portfolio_id = 22725180 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725184 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 = 22725184 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 = 22725184 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725184 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 = 22725184 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 = 22725184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725184_06-05-2025_19_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725184 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725184_06-05-2025_19_58_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725273, 'pht': 3726}}" where mtr_portfolio_id = 22725184 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725185 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 = 22725185 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 = 22725185 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725185 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 = 22725185 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 = 22725185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725185_06-05-2025_19_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725185_06-05-2025_19_57_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22725215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725225, 'pht': 3726}}" where mtr_portfolio_id = 22725185 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22718167 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 = 22718167 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 = 22718167 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22718167 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 = 22718167 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 = 22718167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22718167_06-05-2025_19_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22718167 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22718167_06-05-2025_19_57_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22718263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22718264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22718265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22718266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22718267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22718268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22718269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22718270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22718271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22718272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22718273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22718274, 'pht': 3726}}" where mtr_portfolio_id = 22718167 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22717631 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 = 22717631 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 = 22717631 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22717631 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 = 22717631 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 = 22717631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22717631_06-05-2025_17_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22717631 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22717631_06-05-2025_17_43_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22717720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22717721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22717722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22717723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22717724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22717725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22717726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22717727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22717728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22717729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22717730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22717731, 'pht': 3726}}" where mtr_portfolio_id = 22717631 and dashboard_run_id = 1789049 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22716945 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': 2797798, 'mtr_portfolio_id': 22716945, 'created_at': datetime.datetime(2025, 5, 6, 17, 34, 57), 'result': '0.028221559887996368', 'result_long': None, 'result_double': None}] Qualite : 0.028221559887996368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716945_06-05-2025_17_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716945 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716945_06-05-2025_17_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22717033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22717034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22717035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22717036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22717037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22717038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22717039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22717040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22717041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22717042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22717043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22717044, 'pht': 3726}}" where mtr_portfolio_id = 22716945 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22716945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364047, 0.028221559887996368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716945_06-05-2025_17_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22717033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22717034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22717035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22717036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22717037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22717038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22717039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22717040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22717041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22717042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22717043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22717044, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22716946 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': 2797799, 'mtr_portfolio_id': 22716946, 'created_at': datetime.datetime(2025, 5, 6, 17, 56, 59), 'result': '0.03760167639037917', 'result_long': None, 'result_double': None}] Qualite : 0.03760167639037917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716946 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, 'pht': 3726}}" where mtr_portfolio_id = 22716946 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22716946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364048, 0.03760167639037917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22719615 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': 2798142, 'mtr_portfolio_id': 22719615, 'created_at': datetime.datetime(2025, 5, 6, 18, 19), 'result': '0.047298723919855575', 'result_long': None, 'result_double': None}] Qualite : 0.047298723919855575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22719615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22719615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}" where mtr_portfolio_id = 22719615 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22719615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364049, 0.047298723919855575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22720089 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': 2798186, 'mtr_portfolio_id': 22720089, 'created_at': datetime.datetime(2025, 5, 6, 18, 32, 58), 'result': '0.03310221559834245', 'result_long': None, 'result_double': None}] Qualite : 0.03310221559834245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22720089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22720089 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, 'pht': 3726}}" where mtr_portfolio_id = 22720089 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22720089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364050, 0.03310221559834245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720089_06-05-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22720474 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': 2798245, 'mtr_portfolio_id': 22720474, 'created_at': datetime.datetime(2025, 5, 6, 18, 49), 'result': '0.04287539462312746', 'result_long': None, 'result_double': None}] Qualite : 0.04287539462312746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22720474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22720474 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, 'pht': 3726}}" where mtr_portfolio_id = 22720474 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22720474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364051, 0.04287539462312746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22720474_06-05-2025_18_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22720557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22720558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22720559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22720560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22720561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22720562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22720563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22720564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22720565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22720566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22720567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22720568, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22721235 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': 2798330, 'mtr_portfolio_id': 22721235, 'created_at': datetime.datetime(2025, 5, 6, 19, 2, 59), 'result': '0.03877667849535947', 'result_long': None, 'result_double': None}] Qualite : 0.03877667849535947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22721235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22721235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, 'pht': 3726}}" where mtr_portfolio_id = 22721235 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22721235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364052, 0.03877667849535947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721235_06-05-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22721266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721277, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22721783 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': 2798427, 'mtr_portfolio_id': 22721783, 'created_at': datetime.datetime(2025, 5, 6, 19, 18, 58), 'result': '0.03970524395848403', 'result_long': None, 'result_double': None}] Qualite : 0.03970524395848403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22721783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721783_06-05-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22721783 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721783_06-05-2025_19_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22721864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721865, 'pht': 3726}}" where mtr_portfolio_id = 22721783 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22721783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364053, 0.03970524395848403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22721783_06-05-2025_19_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22721854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22721855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22721856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22721857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22721858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22721859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22721860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22721861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22721862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22721863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22721864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22721865, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22722673 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': 2798493, 'mtr_portfolio_id': 22722673, 'created_at': datetime.datetime(2025, 5, 6, 19, 32, 59), 'result': '0.03327487246662916', 'result_long': None, 'result_double': None}] Qualite : 0.03327487246662916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22722673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22722673_06-05-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22722673 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22722673_06-05-2025_19_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22722740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22722741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22722742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22722743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22722744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22722745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22722746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22722747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22722748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22722749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22722750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22722751, 'pht': 3726}}" where mtr_portfolio_id = 22722673 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22722673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364054, 0.03327487246662916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22722673_06-05-2025_19_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22722740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22722741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22722742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22722743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22722744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22722745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22722746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22722747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22722748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22722749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22722750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22722751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22723569 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': 2798595, 'mtr_portfolio_id': 22723569, 'created_at': datetime.datetime(2025, 5, 6, 19, 48, 58), 'result': '0.03447077183663938', 'result_long': None, 'result_double': None}] Qualite : 0.03447077183663938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22723569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22723569_06-05-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22723569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22723569_06-05-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22723697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22723698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22723699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22723700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22723701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22723702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22723703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22723704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22723705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22723706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22723707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22723708, 'pht': 3726}}" where mtr_portfolio_id = 22723569 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22723569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364055, 0.03447077183663938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22723569_06-05-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22723697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22723698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22723699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22723700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22723701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22723702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22723703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22723704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22723705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22723706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22723707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22723708, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22724626 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': 2798670, 'mtr_portfolio_id': 22724626, 'created_at': datetime.datetime(2025, 5, 6, 20, 2, 59), 'result': '0.05047900050058231', 'result_long': None, 'result_double': None}] Qualite : 0.05047900050058231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22724626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22724626_06-05-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22724626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22724626_06-05-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22724657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22724658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22724659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22724660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22724661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22724662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22724663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22724664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22724665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22724666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22724667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22724668, 'pht': 3726}}" where mtr_portfolio_id = 22724626 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22724626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364056, 0.05047900050058231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22724626_06-05-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22724657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22724658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22724659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22724660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22724661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22724662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22724663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22724664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22724665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22724666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22724667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22724668, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22725684 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': 2798769, 'mtr_portfolio_id': 22725684, 'created_at': datetime.datetime(2025, 5, 6, 20, 16, 58), 'result': '0.04722001305710691', 'result_long': None, 'result_double': None}] Qualite : 0.04722001305710691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22725684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725684_06-05-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22725684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725684_06-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22725730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725741, 'pht': 3726}}" where mtr_portfolio_id = 22725684 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22725684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364057, 0.04722001305710691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22725684_06-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22725730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22725731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22725732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22725733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22725734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22725735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22725736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22725737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22725738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22725739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22725740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22725741, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22726759 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': 2798826, 'mtr_portfolio_id': 22726759, 'created_at': datetime.datetime(2025, 5, 6, 20, 32, 58), 'result': '0.04988150718492788', 'result_long': None, 'result_double': None}] Qualite : 0.04988150718492788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22726759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22726759_06-05-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22726759 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22726759_06-05-2025_20_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22726762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22726763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22726764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22726765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22726766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22726767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22726768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22726769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22726770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22726771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22726772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22726773, 'pht': 3726}}" where mtr_portfolio_id = 22726759 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22726759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364058, 0.04988150718492788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22726759_06-05-2025_20_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22726762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22726763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22726764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22726765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22726766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22726767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22726768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22726769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22726770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22726771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22726772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22726773, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22727587 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': 2798891, 'mtr_portfolio_id': 22727587, 'created_at': datetime.datetime(2025, 5, 6, 21, 5), 'result': '0.030531847120161736', 'result_long': None, 'result_double': None}] Qualite : 0.030531847120161736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22727587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22727587_06-05-2025_21_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22727587 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22727587_06-05-2025_21_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22727619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22727620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22727622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22727623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22727624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22727625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22727626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22727627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22727628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22727629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22727630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22727631, 'pht': 3726}}" where mtr_portfolio_id = 22727587 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22727587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364059, 0.030531847120161736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22727587_06-05-2025_21_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22727619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22727620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22727622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22727623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22727624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22727625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22727626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22727627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22727628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22727629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22727630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22727631, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22729050 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': 2799029, 'mtr_portfolio_id': 22729050, 'created_at': datetime.datetime(2025, 5, 6, 21, 16, 58), 'result': '0.023775839110349063', 'result_long': None, 'result_double': None}] Qualite : 0.023775839110349063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22729050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22729050_06-05-2025_21_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22729050 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22729050_06-05-2025_21_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22729147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22729148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22729149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22729150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22729151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22729152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22729153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22729154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22729155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22729156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22729157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22729158, 'pht': 3726}}" where mtr_portfolio_id = 22729050 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22729050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364060, 0.023775839110349063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22729050_06-05-2025_21_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22729147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22729148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22729149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22729150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22729151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22729152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22729153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22729154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22729155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22729156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22729157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22729158, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22730128 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': 2799101, 'mtr_portfolio_id': 22730128, 'created_at': datetime.datetime(2025, 5, 6, 21, 32, 59), 'result': '0.03011443818861662', 'result_long': None, 'result_double': None}] Qualite : 0.03011443818861662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22730128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22730128_06-05-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22730128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22730128_06-05-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22730228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22730229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22730230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22730231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22730232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22730233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22730234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22730235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22730236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22730237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22730238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22730239, 'pht': 3726}}" where mtr_portfolio_id = 22730128 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22730128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364061, 0.03011443818861662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22730128_06-05-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22730228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22730229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22730230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22730231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22730232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22730233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22730234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22730235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22730236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22730237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22730238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22730239, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22731403 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': 2799193, 'mtr_portfolio_id': 22731403, 'created_at': datetime.datetime(2025, 5, 6, 21, 49, 1), 'result': '0.030994923262130582', 'result_long': None, 'result_double': None}] Qualite : 0.030994923262130582 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22731403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22731403_06-05-2025_21_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22731403 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22731403_06-05-2025_21_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22731457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22731458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22731459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22731460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22731461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22731462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22731463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22731464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22731465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22731466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22731467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22731468, 'pht': 3726}}" where mtr_portfolio_id = 22731403 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22731403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364062, 0.030994923262130582, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22731403_06-05-2025_21_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22731457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22731458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22731459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22731460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22731461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22731462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22731463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22731464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22731465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22731466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22731467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22731468, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22732329 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': 2799265, 'mtr_portfolio_id': 22732329, 'created_at': datetime.datetime(2025, 5, 6, 22, 2, 59), 'result': '0.043336248952011755', 'result_long': None, 'result_double': None}] Qualite : 0.043336248952011755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22732329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22732329_06-05-2025_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22732329 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22732329_06-05-2025_22_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22732382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22732384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22732385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22732386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22732387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22732389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22732390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22732391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22732393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22732394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22732395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22732397, 'pht': 3726}}" where mtr_portfolio_id = 22732329 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22732329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364063, 0.043336248952011755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22732329_06-05-2025_22_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22732382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22732384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22732385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22732386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22732387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22732389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22732390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22732391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22732393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22732394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22732395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22732397, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22733454 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': 2799382, 'mtr_portfolio_id': 22733454, 'created_at': datetime.datetime(2025, 5, 6, 22, 21), 'result': '0.0426469238660323', 'result_long': None, 'result_double': None}] Qualite : 0.0426469238660323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22733454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22733454_06-05-2025_22_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22733454 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22733454_06-05-2025_22_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22733496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22733497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22733498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22733499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22733500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22733501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22733502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22733503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22733504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22733505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22733506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22733507, 'pht': 3726}}" where mtr_portfolio_id = 22733454 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22733454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364064, 0.0426469238660323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22733454_06-05-2025_22_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22733496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22733497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22733498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22733499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22733500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22733501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22733502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22733503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22733504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22733505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22733506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22733507, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22734536 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': 2799458, 'mtr_portfolio_id': 22734536, 'created_at': datetime.datetime(2025, 5, 6, 22, 32, 56), 'result': '0.03287405647961731', 'result_long': None, 'result_double': None}] Qualite : 0.03287405647961731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22734536 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22734536_06-05-2025_22_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22734536 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22734536_06-05-2025_22_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22734599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22734600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22734601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22734602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22734603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22734604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22734605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22734606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22734607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22734608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22734609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22734610, 'pht': 3726}}" where mtr_portfolio_id = 22734536 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22734536 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364065, 0.03287405647961731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22734536_06-05-2025_22_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22734599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22734600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22734601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22734602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22734603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22734604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22734605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22734606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22734607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22734608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22734609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22734610, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22735169 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': 2799507, 'mtr_portfolio_id': 22735169, 'created_at': datetime.datetime(2025, 5, 6, 22, 46, 30), 'result': '0.03565666237606013', 'result_long': None, 'result_double': None}] Qualite : 0.03565666237606013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22735169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22735169_06-05-2025_22_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22735169 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22735169_06-05-2025_22_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22735236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22735237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22735238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22735239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22735240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22735241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22735242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22735243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22735244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22735245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22735246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22735247, 'pht': 3726}}" where mtr_portfolio_id = 22735169 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22735169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364066, 0.03565666237606013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22735169_06-05-2025_22_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22735236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22735237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22735238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22735239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22735240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22735241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22735242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22735243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22735244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22735245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22735246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22735247, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22736253 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': 2799570, 'mtr_portfolio_id': 22736253, 'created_at': datetime.datetime(2025, 5, 6, 23, 4, 58), 'result': '0.029851973943089347', 'result_long': None, 'result_double': None}] Qualite : 0.029851973943089347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22736253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22736253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, 'pht': 3726}}" where mtr_portfolio_id = 22736253 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22736253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364067, 0.029851973943089347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22737346 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': 2799644, 'mtr_portfolio_id': 22737346, 'created_at': datetime.datetime(2025, 5, 6, 23, 18, 57), 'result': '0.050240377798854624', 'result_long': None, 'result_double': None}] Qualite : 0.050240377798854624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22737346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22737346 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, 'pht': 3726}}" where mtr_portfolio_id = 22737346 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22737346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364068, 0.050240377798854624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22738129 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': 2799689, 'mtr_portfolio_id': 22738129, 'created_at': datetime.datetime(2025, 5, 6, 23, 34, 58), 'result': '0.04109289286420502', 'result_long': None, 'result_double': None}] Qualite : 0.04109289286420502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22738129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22738129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, 'pht': 3726}}" where mtr_portfolio_id = 22738129 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22738129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364069, 0.04109289286420502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22739142 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': 2799742, 'mtr_portfolio_id': 22739142, 'created_at': datetime.datetime(2025, 5, 6, 23, 49), 'result': '0.04144634539602456', 'result_long': None, 'result_double': None}] Qualite : 0.04144634539602456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22739142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22739142 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, 'pht': 3726}}" where mtr_portfolio_id = 22739142 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22739142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364070, 0.04144634539602456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22739611 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': 2799784, 'mtr_portfolio_id': 22739611, 'created_at': datetime.datetime(2025, 5, 7, 0, 31), 'result': '0.06399666020992871', 'result_long': None, 'result_double': None}] Qualite : 0.06399666020992871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22739611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739611_07-05-2025_00_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22739611 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739611_07-05-2025_00_31_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739647, 'pht': 3726}}" where mtr_portfolio_id = 22739611 and dashboard_run_id = 1789049 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22739611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364071, 0.06399666020992871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739611_07-05-2025_00_31_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739647, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22701347,22702995,22703230,22703472,22704016,22704427,22704969,22705529,22705714,22706282,22707050,22707600,22708159,22708833,22709529,22710140,22710502,22711348,22716068,22716393,22725101,22725102,22725103,22725140,22725153,22725154,22725167,22725180,22725184,22725185,22718167,22717631,22716945,22716946,22719615,22720089,22720474,22721235,22721783,22722673,22723569,22724626,22725684,22726759,22727587,22729050,22730128,22731403,22732329,22733454,22734536,22735169,22736253,22737346,22738129,22739142,22739611) result : ((1356270985,), (1356271232,), (1356271255,), (1356271277,), (1356271367,), (1356271370,), (1356271443,), (1356271528,), (1356287898,), (1356288002,), (1356288054,), (1356288056,), (1356288057,), (1356288081,), (1356288082,), (1356288083,), (1356288084,), (1356288115,), (1356288116,), (1356288117,), (1356288118,), (1356288144,), (1356288149,), (1356288153,), (1356288156,), (1356288182,), (1356288183,), (1356288184,), (1356288185,), (1356288239,), (1356288240,), (1356288241,), (1356288280,), (1356288281,), (1356288282,), (1356288307,), (1356288337,), (1356288365,), (1356288442,), (1356288447,), (1356288450,), (1356288470,), (1356288471,), (1356288474,), (1356288476,), (1356288516,), (1356288518,), (1356288521,), (1356288526,), (1356288531,), (1356288565,), (1356288568,), (1356288571,), (1356288576,), (1356288579,), (1356288583,), (1356288608,), (1356288613,), (1356288618,), (1356288677,), (1356288681,), (1356288684,), (1356288689,), (1356288695,), (1356288700,), (1356288714,), (1356288716,), (1356288719,), (1356288721,), (1356288764,), (1356288766,), (1356288767,), (1356288769,), (1356288773,), (1356288776,), (1356288798,), (1356288799,), (1356288801,), (1356288827,), (1356288856,), (1356288863,), (1356288866,), (1356288869,), (1356288873,), (1356288877,), (1356288908,), (1356288909,), (1356288911,), (1356288913,), (1356288917,), (1356288944,), (1356288947,), (1356288950,), (1356288952,), (1356288954,), (1356288995,), (1356288988,), (1356288990,), (1356288991,), (1356288992,), (1356289017,), (1356289019,), (1356289020,), (1356289021,), (1356289022,), (1356289025,), (1356289048,), (1356289049,), (1356289050,), (1356289051,), (1356289087,), (1356289089,), (1356289091,), (1356289092,), (1356289094,), (1356289096,), (1356289124,), (1356289126,), (1356289127,), (1356289130,), (1356289133,), (1356289158,), (1356289160,), (1356289161,), (1356289164,), (1356289167,), (1356289169,), (1356289202,), (1356289204,), (1356289205,), (1356289206,), (1356289239,), (1356289241,), (1356289242,), (1356289243,), (1356289245,), (1356289246,), (1356289288,), (1356289290,), (1356289292,), (1356289294,), (1356289336,), (1356289338,), (1356289340,), (1356289342,), (1356289346,), (1356289350,), (1356289364,), (1356289366,), (1356289367,), (1356289368,), (1356289370,), (1356289414,), (1356289416,), (1356289417,), (1356289419,), (1356289449,), (1356289451,), (1356289453,), (1356289455,), (1356289459,), (1356289461,), (1356289492,), (1356289494,), (1356289496,), (1356289526,), (1356289530,), (1356289533,), (1356289536,), (1356289541,), (1356289546,), (1356289580,), (1356289573,), (1356289576,), (1356289578,), (1356289609,), (1356289611,), (1356289613,), (1356289615,), (1356289619,), (1356289640,), (1356289643,), (1356289645,), (1356289647,), (1356289651,), (1356289655,), (1356289683,), (1356289685,), (1356289687,), (1356289689,), (1356289729,), (1356289732,), (1356289733,), (1356289734,), (1356289737,), (1356289740,), (1356289764,), (1356289766,), (1356289769,), (1356289774,), (1356289805,), (1356289809,), (1356289811,), (1356289837,), (1356289838,), (1356289839,), (1356289840,), (1356289842,), (1356289844,), (1356289876,), (1356289878,), (1356289879,), (1356289880,), (1356289915,), (1356289917,), (1356289918,), (1356289919,), (1356289922,), (1356289925,), (1356289958,), (1356289959,), (1356289960,), (1356289961,), (1356289988,), (1356289989,), (1356289990,), (1356289991,), (1356289998,), (1356290031,), (1356290292,), (1356290320,), (1356290346,), (1356290372,), (1356290398,), (1356290861,), (1356290889,), (1356290921,), (1356290966,), (1356291061,), (1356291107,), (1356291135,), (1356291168,), (1356291195,), (1356291417,), (1356291336,), (1356291363,), (1356291392,), (1356291461,), (1356291463,), (1356291465,), (1356291472,), (1356291674,), (1356291677,), (1356291681,), (1356291684,), (1356291717,), (1356291720,), (1356291723,), (1356291726,), (1356291729,), (1356291732,), (1356291758,), (1356291761,), (1356291763,), (1356291765,), (1356291792,), (1356291795,), (1356291797,), (1356291799,), (1356291802,), (1356291830,), (1356291833,), (1356291836,), (1356291841,), (1356291845,), (1356291850,), (1356291869,), (1356291871,), (1356291873,), (1356291875,), (1356291879,), (1356291897,), (1356291899,), (1356291900,), (1356291901,), (1356291905,), (1356291953,), (1356291955,), (1356291957,), (1356291959,), (1356291963,), (1356291965,), (1356291987,), (1356291990,), (1356291992,), (1356291994,), (1356292014,), (1356292017,), (1356292019,), (1356292021,), (1356292026,), (1356292029,), (1356292046,), (1356292048,), (1356292052,), (1356292081,), (1356292083,), (1356292084,), (1356292086,), (1356292088,), (1356292092,), (1356292116,), (1356292118,), (1356292119,), (1356292120,), (1356292122,), (1356292161,), (1356292157,), (1356292159,), (1356292160,), (1356292193,), (1356292196,), (1356292198,), (1356292222,), (1356292224,), (1356292226,), (1356292256,), (1356292258,), (1356292299,), (1356292327,), (1356292328,), (1356292359,), (1356292361,), (1356292362,), (1356292363,), (1356292387,), (1356292388,), (1356292389,), (1356292390,), (1356292420,), (1356292422,), (1356292423,), (1356292424,), (1356292426,), (1356292459,), (1356292461,), (1356292462,), (1356292464,), (1356292467,), (1356292495,), (1356292501,), (1356292504,), (1356292506,), (1356292531,), (1356292534,), (1356292536,), (1356292538,), (1356292542,), (1356292544,), (1356292571,), (1356292574,), (1356292575,), (1356292577,), (1356292602,), (1356292604,), (1356292606,), (1356292608,), (1356292611,), (1356292641,), (1356292645,), (1356292647,), (1356292650,), (1356292701,), (1356292698,), (1356292699,), (1356292700,), (1356292740,), (1356292742,), (1356292743,), (1356292744,), (1356292746,), (1356292750,), (1356292777,), (1356292778,), (1356292779,), (1356292780,), (1356292785,), (1356292788,), (1356292811,), (1356292812,), (1356292813,), (1356292845,), (1356292848,), (1356292850,), (1356292851,), (1356292854,), (1356292857,), (1356292886,), (1356292889,), (1356292892,), (1356292897,), (1356292901,), (1356292907,), (1356292929,), (1356292931,), (1356292932,), (1356292933,), (1356292935,), (1356292973,), (1356292975,), (1356292979,), (1356292981,), (1356292989,), (1356293017,), (1356293018,), (1356293019,), (1356293020,), (1356293024,), (1356293028,), (1356293061,), (1356293063,), (1356293065,), (1356293067,), (1356293070,), (1356293149,), (1356293150,), (1356293151,), (1356293152,), (1356293155,), (1356293159,), (1356293193,), (1356293195,), (1356293197,), (1356293198,), (1356293200,), (1356293204,), (1356293244,), (1356293246,), (1356293247,), (1356293248,), (1356293249,), (1356293251,), (1356293283,), (1356293285,), (1356293286,), (1356293331,), (1356293334,), (1356293335,), (1356293337,), (1356293341,), (1356293344,), (1356293398,), (1356293396,), (1356293397,), (1356293434,), (1356293436,), (1356293439,), (1356293480,), (1356293482,), (1356293483,), (1356293484,), (1356293529,), (1356293532,), (1356293534,), (1356293536,), (1356293539,), (1356293543,), (1356293582,), (1356293585,), (1356293587,), (1356293589,), (1356293592,), (1356293596,), (1356293679,), (1356293681,), (1356293682,), (1356293683,), (1356293729,), (1356293733,), (1356293735,), (1356293737,), (1356293741,), (1356293770,), (1356293772,), (1356293773,), (1356293774,), (1356293775,), (1356293778,), (1356293808,), (1356293813,), (1356293817,), (1356293851,), (1356293853,), (1356293854,), (1356293855,), (1356293857,), (1356293861,), (1356293897,), (1356293900,), (1356293902,), (1356293904,), (1356293940,), (1356293942,), (1356293943,), (1356293944,), (1356293948,), (1356293952,), (1356294176,), (1356294204,), (1356294231,), (1356294257,), (1356295790,), (1356295846,), (1356295906,), (1356295987,), (1356296061,), (1356296144,), (1356296515,), (1356296589,), (1356296665,), (1356296787,), (1356297445,), (1356297178,), (1356297233,), (1356297286,), (1356297338,), (1356297884,), (1356297939,), (1356297967,), (1356297996,), (1356298405,), (1356298460,), (1356298514,), (1356298545,), (1356298580,), (1356298636,), (1356298743,), (1356298756,), (1356298760,), (1356298768,), (1356298826,), (1356298830,), (1356298835,), (1356298838,), (1356298842,), (1356298885,), (1356298889,), (1356298892,), (1356298896,), (1356298929,), (1356298934,), (1356298939,), (1356298942,), (1356298948,), (1356298960,), (1356299004,), (1356299009,), (1356299012,), (1356299015,), (1356299079,), (1356299083,), (1356299088,), (1356299092,), (1356299096,), (1356299100,), (1356299149,), (1356299152,), (1356299168,), (1356299197,), (1356299234,), (1356299502,), (1356299515,), (1356299543,), (1356299569,), (1356299578,), (1356299668,), (1356299674,), (1356299677,), (1356299679,), (1356299684,), (1356299687,), (1356299782,), (1356299785,), (1356299789,), (1356299796,), (1356299921,), (1356299951,), (1356299964,), (1356299967,), (1356299972,), (1356299978,), (1356300011,), (1356300016,), (1356300020,), (1356300023,), (1356300087,), (1356300071,), (1356300074,), (1356300077,), (1356300080,), (1356300083,), (1356300129,), (1356300140,), (1356300147,), (1356300155,), (1356300165,), (1356300177,), (1356300211,), (1356300220,), (1356300226,), (1356300230,), (1356300235,), (1356300265,), (1356300272,), (1356300276,), (1356300280,), (1356300284,), (1356300288,), (1356300332,), (1356300341,), (1356300348,), (1356300350,), (1356300354,), (1356300418,), (1356300422,), (1356300426,), (1356300430,), (1356300435,), (1356300441,), (1356300475,), (1356300488,), (1356300498,), (1356300501,), (1356300506,), (1356300545,), (1356300550,), (1356300554,), (1356300598,), (1356300606,), (1356300611,), (1356300615,), (1356300618,), (1356300623,), (1356300650,), (1356300655,), (1356300658,), (1356300669,), (1356300698,), (1356300703,), (1356300708,), (1356300710,), (1356300715,), (1356300718,), (1356300753,), (1356300758,), (1356300763,), (1356300768,), (1356300770,), (1356300805,), (1356300813,), (1356300818,), (1356300823,), (1356300829,), (1356300832,), (1356300865,), (1356300868,), (1356300872,), (1356300875,), (1356300924,), (1356300931,), (1356300937,), (1356300943,), (1356300947,), (1356300954,), (1356301011,), (1356300999,), (1356301004,), (1356301008,), (1356301072,), (1356301075,), (1356301079,), (1356301083,), (1356301088,), (1356301122,), (1356301126,), (1356301131,), (1356301136,), (1356301141,), (1356301145,), (1356301193,), (1356301194,), (1356301196,), (1356301198,), (1356301233,), (1356301238,), (1356301244,), (1356301249,), (1356301254,), (1356301258,), (1356301285,), (1356301418,), (1356301421,), (1356301427,), (1356301432,), (1356301474,), (1356301485,), (1356301494,), (1356301515,), (1356301524,), (1356301531,), (1356301566,), (1356301568,), (1356301570,), (1356301572,), (1356301612,), (1356301721,), (1356301724,), (1356301727,), (1356301730,), (1356301734,), (1356301739,), (1356301781,), (1356301786,), (1356301789,), (1356301793,), (1356301798,), (1356301872,), (1356301879,), (1356301884,), (1356301886,), (1356301893,), (1356301976,), (1356301979,), (1356301983,), (1356301985,), (1356302027,), (1356302031,), (1356302085,), (1356302093,), (1356302105,), (1356302115,), (1356302118,), (1356302157,), (1356302160,), (1356302162,), (1356302165,), (1356302168,), (1356302198,), (1356302207,), (1356302209,), (1356302214,), (1356302265,), (1356302246,), (1356302253,), (1356302257,), (1356302260,), (1356302299,), (1356302303,), (1356302307,), (1356302310,), (1356302313,), (1356302319,), (1356302360,), (1356302366,), (1356302370,), (1356302372,), (1356302450,), (1356302453,), (1356302457,), (1356302466,), (1356302473,), (1356302478,), (1356302529,), (1356302533,), (1356302535,), (1356302538,), (1356302541,), (1356302645,), (1356302658,), (1356302663,), (1356302679,), (1356302687,), (1356302705,), (1356302736,), (1356302745,), (1356302749,), (1356302752,), (1356302789,), (1356302791,), (1356302793,), (1356302795,), (1356302799,), (1356302803,), (1356302865,), (1356302873,), (1356302887,), (1356302889,), (1356302984,), (1356302987,), (1356303027,), (1356303035,), (1356303045,), (1356303050,), (1356303128,), (1356303132,), (1356303134,), (1356303451,), (1356303481,), (1356303512,), (1356303539,), (1356303565,), (1356303596,), (1356303849,), (1356303904,), (1356303932,), (1356303968,), (1356304014,), (1356304783,), (1356304819,), (1356304850,), (1356304912,), (1356304921,), (1356304927,), (1356305185,), (1356305067,), (1356305073,), (1356305095,), (1356305178,), (1356305284,), (1356305294,), (1356305299,), (1356305303,), (1356305308,), (1356305381,), (1356305390,), (1356305393,), (1356305398,), (1356305403,), (1356305432,), (1356305434,), (1356305446,), (1356305457,), (1356305462,), (1356305578,), (1356305604,), (1356305616,), (1356305621,), (1356305625,), (1356305630,), (1356305664,), (1356305670,), (1356305673,), (1356305675,), (1356305804,), (1356305805,), (1356305807,), (1356305809,), (1356305813,), (1356305815,), (1356305852,), (1356305857,), (1356305859,), (1356305862,), (1356305927,), (1356305934,), (1356305938,), (1356305950,), (1356305955,), (1356305957,), (1356306048,), (1356306060,), (1356306074,), (1356306079,), (1356306225,), (1356306243,), (1356306327,), (1356306399,), (1356306407,), (1356306412,), (1356306483,), (1356306485,), (1356306490,), (1356306493,), (1356306495,), (1356306595,), (1356306609,), (1356306611,), (1356306615,), (1356306619,), (1356306655,), (1356306765,), (1356306811,), (1356306816,), (1356306820,), (1356306822,), (1356306915,), (1356306931,), (1356306940,), (1356306979,), (1356307158,), (1356307161,), (1356307194,), (1356307195,), (1356307198,), (1356307204,), (1356307242,), (1356307248,), (1356307252,), (1356307257,), (1356307263,), (1356307321,), (1356307324,), (1356307335,), (1356307340,), (1356307344,), (1356307386,), (1356307394,), (1356307398,), (1356307402,), (1356307407,), (1356307451,), (1356307454,), (1356307458,), (1356307460,), (1356307465,), (1356307502,), (1356307505,), (1356307509,), (1356307513,), (1356307519,), (1356307551,), (1356307559,), (1356307565,), (1356307569,), (1356307579,), (1356307674,), (1356307677,), (1356307679,), (1356307688,), (1356307713,), (1356307799,), (1356307802,), (1356307805,), (1356307806,), (1356307811,), (1356307888,), (1356307890,), (1356307892,), (1356307894,), (1356307896,), (1356307899,), (1356308012,), (1356308016,), (1356308020,), (1356308024,), (1356308113,), (1356308115,), (1356308117,), (1356308119,), (1356308123,), (1356308127,), (1356308221,), (1356308201,), (1356308209,), (1356308212,), (1356308216,), (1356308252,), (1356308261,), (1356308267,), (1356308270,), (1356308271,), (1356308275,), (1356308327,), (1356308331,), (1356308333,), (1356308403,), (1356308405,), (1356308407,), (1356308409,), (1356308412,), (1356308415,), (1356308453,), (1356308454,), (1356308456,), (1356308458,), (1356308497,), (1356308501,), (1356308504,), (1356308507,), (1356308512,), (1356308516,), (1356308543,), (1356308545,), (1356308546,), (1356308548,), (1356308553,), (1356308557,), (1356308584,), (1356308585,), (1356308587,), (1356308589,), (1356308591,), (1356308595,), (1356308625,), (1356308627,), (1356308629,), (1356308632,), (1356308670,), (1356308671,), (1356308673,), (1356308675,), (1356308678,), (1356308682,), (1356308748,), (1356308750,), (1356308751,), (1356308754,), (1356308756,), (1356308922,), (1356308928,), (1356308934,), (1356308936,), (1356308970,), (1356308972,), (1356308974,), (1356308976,), (1356308978,), (1356308982,), (1356309008,), (1356309012,), (1356309014,), (1356309027,), (1356309031,), (1356309082,), (1356309083,), (1356309085,), (1356309087,), (1356309089,), (1356309094,), (1356309138,), (1356309129,), (1356309132,), (1356309135,), (1356309212,), (1356309214,), (1356309216,), (1356309218,), (1356309219,), (1356309223,), (1356309249,), (1356309258,), (1356309264,), (1356309266,), (1356309270,), (1356309311,), (1356309315,), (1356309319,), (1356309322,), (1356309326,), (1356309330,), (1356309379,), (1356309387,), (1356309391,), (1356309398,), (1356309406,), (1356309532,), (1356309534,), (1356309540,), (1356309545,), (1356309562,), (1356309628,), (1356309659,), (1356309694,), (1356309742,), (1356309762,), (1356309838,), (1356309843,), (1356309847,), (1356309854,), (1356309861,), (1356309866,), (1356309962,), (1356309967,), (1356309971,), (1356309973,), (1356309979,), (1356310008,), (1356310010,), (1356310020,), (1356310023,), (1356310045,), (1356310053,), (1356310134,), (1356310138,), (1356310157,), (1356310166,), (1356310279,), (1356310286,), (1356310289,), (1356310292,), (1356310297,), (1356310301,), (1356310460,), (1356310483,), (1356310511,), (1356311113,), (1356311167,), (1356311218,), (1356311268,), (1356311300,), (1356311333,), (1356311462,), (1356311494,), (1356311521,), (1356311567,), (1356311767,), (1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,), (1356355384,), (1356355416,), (1356355446,), (1356355891,), (1356355893,), (1356355915,), (1356355951,), (1356356337,), (1356356345,), (1356356348,), (1356356351,), (1356356371,), (1356356768,), (1356356796,), (1356356826,), (1356357435,), (1356357489,), (1356357834,), (1356357836,), (1356357838,), (1356357890,), (1356357886,), (1356358626,), (1356358660,), (1356359038,), (1356359587,), (1356359617,), (1356359645,), (1356359884,), (1356360579,), (1356360589,), (1356360610,), (1356360615,), (1356360891,), (1356360893,), (1356360895,), (1356360897,), (1356360932,), (1356360936,), (1356360942,), (1356360945,), (1356360979,), (1356360981,), (1356360984,), (1356360987,), (1356360991,), (1356360994,), (1356361030,), (1356361032,), (1356361034,), (1356361035,), (1356361071,), (1356361075,), (1356361078,), (1356361079,), (1356361081,), (1356361084,), (1356361125,), (1356361131,), (1356361138,), (1356361145,), (1356361153,), (1356361165,), (1356361167,), (1356361168,), (1356361169,), (1356361170,), (1356361171,), (1356361174,), (1356361175,), (1356361177,), (1356361179,), (1356361201,), (1356361655,), (1356361659,), (1356361745,), (1356361749,), (1356362042,), (1356362054,), (1356362062,), (1356362077,), (1356362108,), (1356362129,), (1356362160,), (1356362167,), (1356362244,), (1356362248,), (1356362254,), (1356362266,), (1356362304,), (1356362346,), (1356362421,), (1356362465,), (1356362490,), (1356362500,), (1356362503,), (1356362517,), (1356362545,), (1356362556,), (1356362735,), (1356362749,), (1356362878,), (1356362940,), (1356362973,), (1356363025,), (1356363061,), (1356363087,), (1356363096,), (1356363166,), (1356363190,), (1356363195,), (1356363198,), (1356363202,), (1356363218,), (1356363223,), (1356363324,), (1356363404,), (1356363437,), (1356363444,), (1356363455,), (1356363459,), (1356363464,), (1356363478,), (1356363484,), (1356363489,), (1356363498,), (1356363514,), (1356363524,), (1356363537,), (1356363541,), (1356363545,), (1356363549,), (1356363553,), (1356363558,), (1356363581,), (1356363588,), (1356363591,), (1356363600,), (1356363602,), (1356363608,), (1356361470,), (1356361475,), (1356361480,), (1356361485,), (1356361489,), (1356361495,), (1356361508,), (1356361509,), (1356361511,), (1356361515,), (1356361520,), (1356361526,), (1356361541,), (1356361544,), (1356361547,), (1356361552,), (1356361558,), (1356361562,), (1356361578,), (1356361586,), (1356361592,), (1356361599,), (1356361607,), (1356361617,), (1356361634,), (1356361640,), (1356361646,), (1356361650,), (1356361678,), (1356361682,), (1356361688,), (1356361722,), (1356361805,), (1356361838,), (1356361870,), (1356361943,), (1356361949,), (1356361957,), (1356362136,), (1356362138,), (1356362143,), (1356362149,), (1356362188,), (1356362197,), (1356362201,), (1356362207,), (1356362217,), (1356362221,), (1356362366,), (1356362395,), (1356362409,), (1356362414,), (1356362646,), (1356362676,), (1356362687,), (1356362704,), (1356362710,), (1356362715,), (1356362717,), (1356362725,), (1356362726,), (1356362736,), (1356362818,), (1356362844,), (1356362849,), (1356362872,), (1356362876,), (1356363120,), (1356363141,), (1356363146,), (1356363152,), (1356363160,), (1356363235,), (1356363237,), (1356363241,), (1356363248,), (1356363259,), (1356372175,), (1356363631,), (1356363641,), (1356363659,), (1356363665,), (1356363671,), (1356363675,), (1356363749,), (1356363783,), (1356363818,), (1356363847,), (1356363878,), (1356363906,), (1356364069,), (1356364105,), (1356364137,), (1356364171,), (1356364208,), (1356364240,), (1356364285,), (1356364288,), (1356364292,), (1356364296,), (1356364304,), (1356364323,), (1356364385,), (1356364389,), (1356364407,), (1356364430,), (1356364473,), (1356364526,), (1356364764,), (1356364826,), (1356364904,), (1356364953,), (1356364983,), (1356365011,), (1356365165,), (1356365194,), (1356365227,), (1356365267,), (1356365273,), (1356365279,), (1356365391,), (1356365433,), (1356365469,), (1356365546,), (1356365598,), (1356365648,), (1356365816,), (1356365873,), (1356365942,), (1356366004,), (1356366069,), (1356366125,), (1356366376,), (1356366382,), (1356366396,), (1356366427,), (1356366443,), (1356366825,), (1356366953,), (1356367075,), (1356367124,), (1356367177,), (1356367230,), (1356367357,), (1356367362,), (1356367447,), (1356367510,), (1356367518,), (1356367573,), (1356367785,), (1356367823,), (1356367855,), (1356367906,), (1356367955,), (1356367992,), (1356368066,), (1356368068,), (1356368072,), (1356368073,), (1356368095,), (1356368107,), (1356368185,), (1356368202,), (1356368323,), (1356368349,), (1356368356,), (1356368369,), (1356368582,), (1356368613,), (1356368680,), (1356368714,), (1356368755,), (1356368771,), (1356368836,), (1356368936,), (1356368951,), (1356368962,), (1356368979,), (1356368984,), (1356369058,), (1356369062,), (1356369091,), (1356369121,), (1356369129,), (1356369146,), (1356369299,), (1356369316,), (1356369347,), (1356369353,), (1356369357,), (1356369365,), (1356369427,), (1356369439,), (1356369444,), (1356369447,), (1356369452,), (1356369455,), (1356369467,), (1356369472,), (1356369475,), (1356369480,), (1356369485,), (1356369614,), (1356369647,), (1356369695,), (1356369699,), (1356369702,), (1356369758,), (1356369763,), (1356369968,), (1356369973,), (1356369976,), (1356370001,), (1356370005,), (1356370024,), (1356370039,), (1356370046,), (1356370052,), (1356370096,), (1356370141,), (1356370169,), (1356370305,), (1356370337,), (1356370344,), (1356370359,), (1356370368,), (1356370442,), (1356370472,), (1356370481,), (1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,), (1356378318,), (1356378321,), (1356378325,), (1356378329,), (1356378334,), (1356378356,), (1356378503,), (1356378510,), (1356378514,), (1356378517,), (1356378522,), (1356378635,), (1356378588,), (1356378592,), (1356378613,), (1356378618,), (1356378697,), (1356378705,), (1356378711,), (1356378731,), (1356378746,), (1356378782,), (1356378788,), (1356378792,), (1356378797,), (1356378800,), (1356378807,), (1356378969,), (1356378971,), (1356378975,), (1356378980,), (1356378984,), (1356379050,), (1356379054,), (1356379063,), (1356379077,), (1356379080,), (1356379085,), (1356379109,), (1356379116,), (1356379121,), (1356379126,), (1356379185,), (1356379188,), (1356379192,), (1356379196,), (1356379212,), (1356379223,), (1356379247,), (1356379250,), (1356379253,), (1356379318,), (1356379324,), (1356379352,), (1356379379,), (1356379416,), (1356379599,), (1356379600,), (1356379610,), (1356379613,), (1356379616,), (1356379617,), (1356379664,), (1356379668,), (1356379681,), (1356379694,), (1356379699,), (1356379831,), (1356379809,), (1356379820,), (1356379825,), (1356379913,), (1356379914,), (1356379917,), (1356379919,), (1356379976,), (1356379980,), (1356379983,), (1356379987,), (1356379990,), (1356379993,), (1356380046,), (1356380060,), (1356380094,), (1356380183,), (1356380184,), (1356380190,), (1356380194,), (1356380196,), (1356380202,), (1356380203,), (1356380206,), (1356380208,), (1356380213,), (1356380378,), (1356380382,), (1356380387,), (1356380491,), (1356380508,), (1356380514,), (1356380527,), (1356380557,), (1356380573,), (1356380655,), (1356380663,), (1356380699,), (1356380703,), (1356380707,), (1356380768,), (1356380771,), (1356380839,), (1356380841,), (1356380844,), (1356380849,), (1356380874,), (1356380931,), (1356380933,), (1356380942,), (1356380973,), (1356381033,), (1356381137,), (1356381170,), (1356381189,), (1356381207,), (1356381213,), (1356381445,), (1356381460,), (1356381484,), (1356381515,), (1356381543,), (1356381574,), (1356381717,), (1356381741,), (1356381803,), (1356382145,), (1356382060,), (1356382090,), (1356382122,), (1356382124,), (1356382126,), (1356382308,), (1356382320,), (1356382323,), (1356382326,), (1356382331,), (1356382341,), (1356382526,), (1356382530,), (1356382537,), (1356382543,), (1356382581,), (1356382588,), (1356382591,), (1356382593,), (1356382596,), (1356382725,), (1356382727,), (1356382736,), (1356382742,), (1356382754,), (1356382852,), (1356382857,), (1356382914,), (1356382939,), (1356382954,), (1356382959,), (1356382983,), (1356382993,), (1356383006,), (1356383023,), (1356383071,), (1356383075,), (1356383078,), (1356383086,), (1356383115,), (1356383118,), (1356383122,), (1356383125,), (1356383129,), (1356383131,), (1356383202,), (1356383207,), (1356383212,), (1356383234,), (1356383546,), (1356383557,), (1356383561,), (1356383565,), (1356383570,), (1356383575,), (1356383590,), (1356383595,), (1356383614,), (1356383790,), (1356383819,), (1356383849,), (1356383982,), (1356384011,), (1356384052,), (1356384452,), (1356384483,), (1356384524,), (1356384555,), (1356385163,), (1356385081,), (1356385118,), (1356385315,), (1356385326,), (1356385329,), (1356385345,), (1356385373,), (1356385401,), (1356385648,), (1356385696,), (1356385712,), (1356385718,), (1356385724,), (1356385832,), (1356385837,), (1356385843,), (1356385859,), (1356385869,), (1356385998,), (1356386004,), (1356386011,), (1356386014,), (1356386018,), (1356386202,), (1356386204,), (1356386207,), (1356386219,), (1356386248,), (1356386272,), (1356386312,), (1356386329,), (1356386334,), (1356386346,), (1356386527,), (1356386532,), (1356386562,), (1356386578,), (1356386602,), (1356386606,), (1356386657,), (1356386663,), (1356386668,), (1356386674,), (1356386679,), (1356386732,), (1356386743,), (1356386752,), (1356386768,), (1356386785,), (1356386798,), (1356386883,), (1356387013,), (1356387023,), (1356387028,), (1356387157,), (1356387163,), (1356387169,), (1356387204,), (1356387232,), (1356387243,), (1356387368,), (1356387371,), (1356387373,), (1356387379,), (1356387725,), (1356387733,), (1356387739,), (1356387743,), (1356387747,), (1356387749,), (1356387823,), (1356387840,), (1356387852,), (1356387859,), (1356388018,), (1356387997,), (1356388001,), (1356388004,), (1356388010,), (1356388014,), (1356388416,), (1356388472,), (1356388622,), (1356388659,), (1356388734,), (1356388869,), (1356388875,), (1356388878,), (1356388891,), (1356389009,), (1356389042,), (1356389237,), (1356389243,), (1356389250,), (1356389260,), (1356389579,), (1356389581,), (1356389610,), (1356389611,), (1356389616,), (1356389617,), (1356389638,), (1356389639,), (1356389710,), (1356389745,), (1356389767,), (1356390049,), (1356390054,), (1356390068,), (1356390095,), (1356390122,), (1356390135,), (1356390373,), (1356390395,), (1356390416,), (1356390419,), (1356390467,), (1356390470,), (1356390474,), (1356390479,), (1356390482,), (1356390486,), (1356390530,), (1356390534,), (1356390538,), (1356390541,), (1356390544,), (1356390546,), (1356390637,), (1356390650,), (1356390674,), (1356390691,), (1356390820,), (1356390839,), (1356390865,), (1356390879,), (1356390883,), (1356390888,), (1356391251,), (1356391259,), (1356391281,), (1356391288,), (1356391296,), (1356391297,), (1356391302,), (1356391303,), (1356391308,), (1356391309,), (1356391420,), (1356391424,), (1356391439,), (1356391466,), (1356391478,), (1356391515,), (1356391793,), (1356391797,), (1356391802,), (1356392357,), (1356392366,), (1356392139,), (1356392142,), (1356392173,), (1356392211,), (1356392232,), (1356392234,), (1356392238,), (1356392244,), (1356392268,), (1356392278,), (1356392483,), (1356392510,), (1356392537,), (1356392549,), (1356392793,), (1356392797,), (1356392800,), (1356392808,), (1356392823,), (1356392829,), (1356392869,), (1356392871,), (1356392873,), (1356392877,), (1356392880,), (1356393061,), (1356393091,), (1356393113,), (1356393120,), (1356393157,), (1356393160,), (1356393196,), (1356393227,), (1356393270,), (1356393302,), (1356393890,), (1356393954,), (1356394004,), (1356394039,), (1356394201,), (1356394257,), (1356394281,), (1356394300,), (1356394318,), (1356394341,), (1356394678,), (1356394709,), (1356394743,), (1356394773,), (1356395044,), (1356395046,), (1356395072,), (1356395075,), (1356395085,), (1356395086,), (1356395101,), (1356395117,), (1356395121,), (1356395123,), (1356395125,), (1356395138,), (1356395146,), (1356395148,), (1356395152,), (1356395157,), (1356396016,), (1356396100,), (1356396182,), (1356396232,), (1356396292,), (1356396332,), (1356396539,), (1356396560,), (1356396563,), (1356396566,), (1356396914,), (1356396921,), (1356396924,), (1356396926,), (1356396947,), (1356396980,), (1356397105,), (1356397134,), (1356397189,), (1356397202,), (1356397509,), (1356397381,), (1356397426,), (1356397431,), (1356397439,), (1356397442,), (1356397755,), (1356397815,), (1356397845,), (1356397874,), (1356398048,), (1356398058,), (1356398061,), (1356398064,), (1356398081,), (1356398109,), (1356398363,), (1356398369,), (1356398375,), (1356398381,), (1356398514,), (1356398559,), (1356398590,), (1356398622,), (1356398655,), (1356398707,), (1356398860,), (1356398863,), (1356398867,), (1356398870,), (1356398925,), (1356398963,), (1356399001,), (1356399034,), (1356399065,), (1356399068,), (1356399333,), (1356399356,), (1356399361,), (1356399364,), (1356399368,), (1356399384,), (1356399580,), (1356399606,), (1356399610,), (1356399617,), (1356399666,), (1356399668,), (1356399672,), (1356399675,), (1356399679,), (1356399683,), (1356399751,), (1356399755,), (1356399758,), (1356399761,), (1356399987,), (1356400032,), (1356400048,), (1356400051,), (1356400052,), (1356400077,), (1356400128,), (1356400282,), (1356400311,), (1356400335,), (1356400363,), (1356400466,), (1356400496,), (1356400538,), (1356400593,), (1356400758,), (1356361189,), (1356361193,), (1356361197,), (1356361239,), (1356361242,), (1356361245,), (1356361287,), (1356361292,), (1356361295,), (1356361300,), (1356361304,), (1356361307,), (1356361334,), (1356361337,), (1356361341,), (1356361380,), (1356361385,), (1356361390,), (1356361395,), (1356361399,), (1356361438,), (1356361441,), (1356361445,), (1356361449,), (1356361452,), (1356394962,), (1356394972,), (1356394975,), (1356394980,), (1356394985,), (1356394991,), (1356395162,), (1356395180,), (1356395443,), (1356395504,), (1356395559,), (1356395611,), (1356395647,), (1356395705,), (1356396570,), (1356396574,), (1356396688,), (1356396749,), (1356396786,), (1356396803,), (1356396826,), (1356396853,), (1356397000,), (1356397005,), (1356397009,), (1356397013,), (1356397023,), (1356397027,), (1356397212,), (1356397215,), (1356397523,), (1356397559,), (1356397589,), (1356397636,), (1356397664,), (1356397667,), (1356397901,), (1356397928,), (1356398263,), (1356398300,), (1356398306,), (1356398307,), (1356398313,), (1356398340,), (1356398384,), (1356398390,), (1356398765,), (1356398780,), (1356398795,), (1356391730,), (1356391733,), (1356391739,), (1356391806,), (1356391812,), (1356391827,), (1356391841,), (1356391845,), (1356391848,), (1356391879,), (1356391910,), (1356391944,), (1356392584,), (1356392617,), (1356392658,), (1356392662,), (1356392668,), (1356392672,), (1356392696,), (1356392766,), (1356392848,), (1356392851,), (1356392854,), (1356392856,), (1356392858,), (1356392860,), (1356392885,), (1356392974,), (1356392981,), (1356392984,), (1356393014,), (1356393029,), (1356393043,), (1356393134,), (1356393143,), (1356393422,), (1356393452,), (1356393478,), (1356393528,), (1356393556,), (1356393684,), (1356394079,), (1356394110,), (1356394449,), (1356394454,), (1356394500,), (1356394527,), (1356394554,), (1356394579,), (1356394799,), (1356394831,), (1356387467,), (1356387497,), (1356387864,), (1356387868,), (1356387886,), (1356387917,), (1356387950,), (1356387977,), (1356387981,), (1356387985,), (1356388034,), (1356388317,), (1356388344,), (1356388348,), (1356388354,), (1356388356,), (1356388791,), (1356389119,), (1356389160,), (1356389186,), (1356389192,), (1356389216,), (1356389222,), (1356389264,), (1356389272,), (1356389430,), (1356389436,), (1356389442,), (1356389447,), (1356389461,), (1356389486,), (1356389645,), (1356389650,), (1356389651,), (1356389655,), (1356389771,), (1356389774,), (1356389778,), (1356389822,), (1356389828,), (1356389854,), (1356389883,), (1356389932,), (1356389989,), (1356390184,), (1356390256,), (1356390304,), (1356390310,), (1356390315,), (1356390345,), (1356390424,), (1356390429,), (1356390494,), (1356390499,), (1356390504,), (1356390509,), (1356390512,), (1356390517,), (1356390578,), (1356390583,), (1356390586,), (1356390597,), (1356390602,), (1356390607,), (1356390721,), (1356390753,), (1356390960,), (1356391014,), (1356391066,), (1356391096,), (1356391126,), (1356391155,), (1356391323,), (1356391334,), (1356391661,), (1356391712,), (1356391726,), (1356383688,), (1356383703,), (1356383711,), (1356383715,), (1356383721,), (1356383729,), (1356383740,), (1356384589,), (1356384619,), (1356384713,), (1356384743,), (1356384880,), (1356384913,), (1356384965,), (1356384994,), (1356385279,), (1356385283,), (1356385290,), (1356385515,), (1356385517,), (1356385523,), (1356385535,), (1356385541,), (1356385559,), (1356385739,), (1356385769,), (1356385774,), (1356385805,), (1356385810,), (1356385814,), (1356385819,), (1356385904,), (1356386049,), (1356386116,), (1356386122,), (1356386126,), (1356386130,), (1356386156,), (1356386187,), (1356386355,), (1356386368,), (1356386409,), (1356386414,), (1356386418,), (1356386423,), (1356386428,), (1356386435,), (1356386685,), (1356386696,), (1356386699,), (1356386704,), (1356386707,), (1356386709,), (1356386710,), (1356386891,), (1356386919,), (1356386924,), (1356386945,), (1356386948,), (1356387032,), (1356387053,), (1356387084,), (1356387285,), (1356387314,), (1356387338,), (1356387344,), (1356387348,), (1356387353,), (1356387383,), (1356387389,), (1356387418,), (1356387427,), (1356387430,), (1356387441,), (1356380880,), (1356380901,), (1356380906,), (1356380912,), (1356380915,), (1356380920,), (1356380923,), (1356381218,), (1356381228,), (1356381318,), (1356381353,), (1356381367,), (1356381378,), (1356381381,), (1356381386,), (1356381648,), (1356381658,), (1356381666,), (1356381668,), (1356381690,), (1356381699,), (1356381862,), (1356381901,), (1356381934,), (1356382192,), (1356382197,), (1356382206,), (1356382212,), (1356382223,), (1356382228,), (1356382457,), (1356382492,), (1356382494,), (1356382500,), (1356382504,), (1356382513,), (1356382549,), (1356382554,), (1356382598,), (1356382663,), (1356382669,), (1356382685,), (1356382702,), (1356382711,), (1356382714,), (1356382764,), (1356382795,), (1356382802,), (1356382807,), (1356382811,), (1356382813,), (1356382830,), (1356382942,), (1356382945,), (1356383043,), (1356383045,), (1356383048,), (1356383051,), (1356383055,), (1356383061,), (1356383094,), (1356383101,), (1356383151,), (1356383155,), (1356383159,), (1356383163,), (1356383187,), (1356383193,), (1356383262,), (1356383300,), (1356383330,), (1356383333,), (1356383336,), (1356383348,), (1356383497,), (1356383511,), (1356383645,), (1356383677,), (1356379839,), (1356379851,), (1356379869,), (1356379871,), (1356379874,), (1356379880,), (1356379892,), (1356379897,), (1356379936,), (1356379937,), (1356379945,), (1356379949,), (1356379955,), (1356379958,), (1356379963,), (1356379964,), (1356380010,), (1356380016,), (1356380022,), (1356380027,), (1356380030,), (1356380033,), (1356380096,), (1356380115,), (1356380125,), (1356380150,), (1356380154,), (1356380156,), (1356380161,), (1356380166,), (1356380169,), (1356380211,), (1356380364,), (1356380392,), (1356380396,), (1356380401,), (1356380438,), (1356380447,), (1356380451,), (1356380456,), (1356380476,), (1356380479,), (1356380608,), (1356380611,), (1356380626,), (1356380634,), (1356380642,), (1356380645,), (1356380670,), (1356380676,), (1356380679,), (1356380683,), (1356380712,), (1356380715,), (1356380719,), (1356380739,), (1356380746,), (1356380750,), (1356380755,), (1356380758,), (1356380761,), (1356380796,), (1356380811,), (1356380816,), (1356380828,), (1356379297,), (1356379299,), (1356379304,), (1356379309,), (1356379331,), (1356379335,), (1356379340,), (1356379345,), (1356379355,), (1356379358,), (1356379360,), (1356379363,), (1356379367,), (1356379381,), (1356379385,), (1356379390,), (1356379395,), (1356379408,), (1356379420,), (1356379425,), (1356379436,), (1356379450,), (1356379455,), (1356379466,), (1356379470,), (1356379473,), (1356379476,), (1356379479,), (1356379483,), (1356379499,), (1356379505,), (1356379508,), (1356379512,), (1356379516,), (1356379520,), (1356379529,), (1356379534,), (1356379537,), (1356379540,), (1356379544,), (1356379551,), (1356379564,), (1356379567,), (1356379574,), (1356379577,), (1356379582,), (1356379587,), (1356379621,), (1356379622,), (1356379627,), (1356379628,), (1356379651,), (1356379652,), (1356379705,), (1356379746,), (1356379763,), (1356379769,), (1356379773,), (1356379775,), (1356379783,), (1356376632,), (1356376786,), (1356376876,), (1356376935,), (1356376940,), (1356376944,), (1356376948,), (1356376952,), (1356376957,), (1356376990,), (1356377001,), (1356377003,), (1356377008,), (1356377012,), (1356377019,), (1356377036,), (1356377126,), (1356377130,), (1356377145,), (1356377150,), (1356377160,), (1356377164,), (1356377172,), (1356377182,), (1356377347,), (1356377369,), (1356377653,), (1356377741,), (1356377771,), (1356377808,), (1356377867,), (1356377929,), (1356377978,), (1356378153,), (1356378176,), (1356378184,), (1356378189,), (1356378195,), (1356378222,), (1356378252,), (1356378342,), (1356378532,), (1356378536,), (1356378542,), (1356378547,), (1356378551,), (1356378581,), (1356378667,), (1356378757,), (1356378922,), (1356378931,), (1356378947,), (1356378952,), (1356378955,), (1356378960,), (1356378989,), (1356379011,), (1356379016,), (1356379025,), (1356379031,), (1356379035,), (1356379041,), (1356379130,), (1356379133,), (1356379149,), (1356379155,), (1356379159,), (1356379166,), (1356379174,), (1356379177,), (1356379256,), (1356379262,), (1356379266,), (1356379284,), (1356379292,), (1356372507,), (1356372716,), (1356372747,), (1356372779,), (1356372820,), (1356372854,), (1356372910,), (1356372991,), (1356373048,), (1356373089,), (1356373143,), (1356373175,), (1356373289,), (1356373295,), (1356373302,), (1356373321,), (1356373353,), (1356373376,), (1356373639,), (1356373669,), (1356373678,), (1356373690,), (1356373695,), (1356373713,), (1356373808,), (1356373817,), (1356373851,), (1356373885,), (1356373924,), (1356373982,), (1356374090,), (1356374124,), (1356374162,), (1356374194,), (1356374230,), (1356374290,), (1356374381,), (1356374410,), (1356374451,), (1356374509,), (1356374569,), (1356374633,), (1356374763,), (1356374807,), (1356374844,), (1356374880,), (1356374993,), (1356375030,), (1356375126,), (1356375156,), (1356375188,), (1356375219,), (1356375267,), (1356375294,), (1356375403,), (1356375435,), (1356375452,), (1356375456,), (1356375463,), (1356375469,), (1356375626,), (1356375679,), (1356375715,), (1356375744,), (1356375773,), (1356375800,), (1356375871,), (1356376012,), (1356376373,), (1356376528,), (1356376557,), (1356376588,), (1356376629,), (1356370495,), (1356370499,), (1356370502,), (1356370544,), (1356370546,), (1356370558,), (1356370559,), (1356370564,), (1356370565,), (1356370571,), (1356370572,), (1356370578,), (1356370581,), (1356370590,), (1356370592,), (1356370614,), (1356370753,), (1356370775,), (1356370793,), (1356370801,), (1356370830,), (1356370848,), (1356370857,), (1356370861,), (1356370866,), (1356370869,), (1356370873,), (1356370890,), (1356370938,), (1356370989,), (1356371020,), (1356371066,), (1356371113,), (1356371263,), (1356371292,), (1356371324,), (1356371350,), (1356371357,), (1356371367,), (1356371444,), (1356371457,), (1356371485,), (1356371496,), (1356371500,), (1356371525,), (1356371655,), (1356371656,), (1356371689,), (1356371690,), (1356371700,), (1356371702,), (1356371715,), (1356371719,), (1356371723,), (1356371729,), (1356371730,), (1356371772,), (1356371820,), (1356371823,), (1356371830,), (1356371855,), (1356371862,), (1356371866,), (1356371897,), (1356371901,), (1356371907,), (1356371977,), (1356372005,), (1356372034,), (1356372205,), (1356372230,), (1356372239,), (1356372271,), (1356372295,), (1356372354,), (1356372362,), (1356372374,), (1356372411,), (1356372425,), (1356372430,), (1356372472,), (1356372476,), (1356372482,), (1356372490,), (1356372496,), (1356400691,), (1356400724,), (1356401242,), (1356401311,), (1356401422,), (1356401668,), (1356402137,), (1356402191,), (1356402254,), (1356402312,), (1356402366,), (1356402420,), (1356402742,), (1356402751,), (1356402780,), (1356402842,), (1356402900,), (1356403563,), (1356403617,), (1356403675,), (1356403731,), (1356403765,), (1356404200,), (1356404275,), (1356404323,), (1356404376,), (1356404448,), (1356404736,), (1356404754,), (1356404781,), (1356404818,), (1356405361,), (1356405365,), (1356405384,), (1356405475,), (1356405526,), (1356405570,), (1356405760,), (1356405821,), (1356405912,), (1356405915,), (1356406030,), (1356406058,), (1356406063,), (1356406067,), (1356406072,), (1356406077,), (1356406229,), (1356406253,), (1356406263,), (1356406267,), (1356406273,), (1356406363,), (1356406393,), (1356406860,), (1356406915,), (1356406967,), (1356407697,), (1356408037,), (1356407797,), (1356409192,), (1356409197,), (1356409208,), (1356409239,), (1356409248,), (1356409249,), (1356409598,), (1356409717,), (1356409834,), (1356409928,), (1356410493,), (1356410500,), (1356410504,), (1356410508,), (1356410511,), (1356411019,), (1356411076,), (1356411152,), (1356411343,), (1356411682,), (1356411830,), (1356412110,), (1356412114,), (1356412119,), (1356412268,), (1356412275,), (1356412293,), (1356412322,), (1356412339,), (1356412344,), (1356412468,), (1356412480,), (1356412485,), (1356412501,), (1356412529,), (1356412559,), (1356412570,), (1356412573,), (1356412578,), (1356412620,), (1356412625,), (1356412630,), (1356412633,), (1356412682,), (1356412772,), (1356413261,), (1356413286,), (1356413303,), (1356413320,), (1356413329,), (1356413912,), (1356413951,), (1356413982,), (1356413994,), (1356414035,), (1356414214,), (1356414219,), (1356414224,), (1356414229,), (1356414234,), (1356414237,), (1356414566,), (1356414664,), (1356414673,), (1356414681,), (1356414757,), (1356414761,), (1356414765,), (1356414768,), (1356414773,), (1356414777,), (1356414850,), (1356414828,), (1356414830,), (1356414836,), (1356414842,), (1356414899,), (1356414928,), (1356414958,), (1356414984,), (1356415006,), (1356415010,), (1356415089,), (1356415098,), (1356415103,), (1356415107,), (1356415124,), (1356415152,), (1356415229,), (1356415238,), (1356415245,), (1356415248,), (1356415416,), (1356415835,), (1356415841,), (1356415847,), (1356415866,), (1356415969,), (1356416085,), (1356416841,), (1356416877,), (1356416905,), (1356416938,), (1356417180,), (1356417183,), (1356417232,), (1356417240,), (1356417243,), (1356417765,), (1356417796,), (1356417835,), (1356417862,), (1356418014,), (1356418019,), (1356418023,), (1356418027,), (1356418033,), (1356418354,), (1356418383,), (1356418431,), (1356418466,), (1356418498,), (1356418529,), (1356418945,), (1356418982,), (1356419037,), (1356432738,), (1356432243,), (1356432417,), (1356432490,), (1356432574,), (1356433708,), (1356433775,), (1356433835,), (1356434571,), (1356434615,), (1356434654,), (1356434686,), (1356435207,), (1356435211,), (1356435216,), (1356435515,), (1356435552,), (1356435612,), (1356435625,), (1356435637,), (1356435907,), (1356435912,), (1356435916,), (1356436060,), (1356436062,), (1356436065,), (1356436069,), (1356436076,), (1356436163,), (1356436169,), (1356436174,), (1356436178,), (1356436180,), (1356436268,), (1356436274,), (1356436277,), (1356436335,), (1356436359,), (1356436362,), (1356436712,), (1356436765,), (1356436845,), (1356436930,), (1356436962,), (1356437446,), (1356437526,), (1356437579,), (1356437983,), (1356438028,), (1356438245,), (1356438275,), (1356438312,), (1356438374,), (1356438683,), (1356438731,), (1356438760,), (1356438787,), (1356438819,), (1356438846,), (1356439269,), (1356439188,), (1356439240,), (1356439252,), (1356439630,), (1356439682,), (1356439704,), (1356439730,), (1356439759,), (1356439792,), (1356440087,), (1356440137,), (1356440829,), (1356440862,), (1356440903,), (1356440957,), (1356441000,), (1356441511,), (1356441583,), (1356441661,), (1356441713,), (1356441794,), (1356442557,), (1356442648,), (1356442696,), (1356442700,), (1356442714,), (1356442716,), (1356442901,), (1356443070,), (1356443168,), (1356443501,), (1356443534,), (1356443625,), (1356443682,), (1356444205,), (1356444221,), (1356444246,), (1356444324,), (1356444430,), (1356444552,), (1356444907,), (1356444913,), (1356444918,), (1356444931,), (1356444988,), (1356445152,), (1356445293,), (1356445329,), (1356445910,), (1356445946,), (1356445953,), (1356445960,), (1356446043,), (1356446244,), (1356446251,), (1356446257,), (1356446264,), (1356446270,), (1356446366,), (1356446372,), (1356446402,), (1356446410,), (1356446544,), (1356446548,), (1356446553,), (1356446698,), (1356446662,), (1356446666,), (1356446889,), (1356446937,), (1356447027,), (1356447044,), (1356447049,), (1356447230,), (1356447234,), (1356447242,), (1356447250,), (1356447551,), (1356447561,), (1356447567,), (1356447918,), (1356447957,), (1356448002,), (1356448395,), (1356448423,), (1356448427,), (1356448432,), (1356448436,), (1356448964,), (1356449023,), (1356449072,), (1356449195,), (1356449311,), (1356449606,), (1356449611,), (1356449628,), (1356449652,), (1356449853,), (1356449884,), (1356450130,), (1356450141,), (1356450617,), (1356450648,), (1356450691,), (1356450734,), (1356450764,), (1356450946,), (1356450971,), (1356450974,), (1356450977,), (1356450986,), (1356451133,), (1356451140,), (1356451147,), (1356451174,), (1356451421,), (1356451423,), (1356451605,), (1356451660,), (1356451695,), (1356451712,), (1356451742,), (1356451769,), (1356452188,), (1356452222,), (1356452279,), (1356452336,), (1356452391,), (1356452444,), (1356452975,), (1356452869,), (1356452968,), (1356452972,), (1356453272,), (1356453351,), (1356453367,), (1356453370,), (1356453373,), (1356453410,), (1356454195,), (1356454230,), (1356454244,), (1356454248,), (1356454251,), (1356454548,), (1356454551,), (1356454554,), (1356454567,), (1356455028,), (1356455060,), (1356455105,), (1356455156,), (1356455214,), (1356455475,), (1356455488,), (1356455493,), (1356455528,), (1356455531,), (1356455543,), (1356455753,), (1356455763,), (1356455767,), (1356455772,), (1356455872,), (1356455900,), (1356455927,), (1356455940,), (1356456259,), (1356456275,), (1356456281,), (1356456286,), (1356456290,), (1356456294,), (1356456464,), (1356456491,), (1356456501,), (1356456508,), (1356456531,), (1356456605,), (1356456782,), (1356456785,), (1356456809,), (1356456951,), (1356456958,), (1356456963,), (1356456968,), (1356456974,), (1356457017,), (1356457025,), (1356457030,), (1356457049,), (1356457056,), (1356457061,), (1356457204,), (1356457229,), (1356457260,), (1356457291,), (1356457319,), (1356457856,), (1356457644,), (1356457683,), (1356457750,), (1356457801,), (1356458544,), (1356458599,), (1356458658,), (1356458717,), (1356458775,), (1356459531,), (1356459690,), (1356459785,), (1356460607,), (1356460865,), (1356460890,), (1356460895,), (1356460900,), (1356461340,), (1356461405,), (1356461424,), (1356461429,), (1356461454,), (1356461491,), (1356461497,), (1356461501,), (1356461506,), (1356461542,), (1356461547,), (1356461552,), (1356461558,), (1356461563,), (1356461568,), (1356461595,), (1356461602,), (1356461607,), (1356461612,), (1356461615,), (1356461658,), (1356461689,), (1356461720,), (1356461764,), (1356461820,), (1356462473,), (1356462536,), (1356462578,), (1356462630,), (1356462677,), (1356463159,), (1356463170,), (1356463184,), (1356463578,), (1356463605,), (1356463634,), (1356463662,), (1356463691,), (1356463724,), (1356463944,), (1356463979,), (1356464022,), (1356464079,), (1356464928,), (1356465036,), (1356465136,), (1356465229,), (1356465319,), (1356465401,), (1356466259,), (1356466289,), (1356467229,), (1356467213,), (1356467222,), (1356467225,), (1356468114,), (1356468174,), (1356468231,), (1356468284,), (1356468340,), (1356468972,), (1356469017,), (1356469044,), (1356469072,), (1356469252,), (1356469254,), (1356469622,), (1356469650,), (1356469674,), (1356469704,), (1356469732,), (1356469764,), (1356470401,), (1356470697,), (1356470776,), (1356470965,), (1356471464,), (1356471515,), (1356471559,), (1356471591,), (1356471619,), (1356471683,), (1356471688,), (1356471693,), (1356471698,), (1356472369,), (1356472428,), (1356472500,), (1356472537,), (1356473194,), (1356473272,), (1356473365,), (1356473446,), (1356473490,), (1356473520,), (1356473813,), (1356473872,), (1356474749,), (1356474778,), (1356474825,), (1356474915,), (1356474990,), (1356475053,), (1356475427,), (1356475478,), (1356475532,), (1356475628,), (1356475879,), (1356475951,), (1356475980,), (1356476010,), (1356476041,), (1356476157,), (1356476139,), (1356476142,), (1356476149,), (1356476152,), (1356476193,), (1356476195,), (1356476199,), (1356476202,), (1356476399,), (1356476403,), (1356476414,), (1356476654,), (1356476671,), (1356476682,), (1356477041,), (1356477097,), (1356477218,), (1356477250,), (1356477280,), (1356477710,), (1356477760,), (1356477815,), (1356477858,), (1356477883,), (1356479572,), (1356479655,), (1356479708,), (1356479775,), (1356479851,), (1356479954,), (1356480699,), (1356480752,), (1356480856,), (1356480892,), (1356480923,), (1356481322,), (1356481327,), (1356481332,), (1356481343,), (1356481349,), (1356481619,), (1356481646,), (1356481654,), (1356481663,), (1356481943,), (1356481957,), (1356481963,), (1356481967,), (1356481996,), (1356482024,), (1356482143,), (1356482148,), (1356482267,), (1356482307,), (1356482372,), (1356482412,), (1356482443,), (1356482744,), (1356482772,), (1356482803,), (1356482829,), (1356483126,), (1356483151,), (1356483220,), (1356483277,), (1356483358,), (1356483353,), (1356483402,), (1356483409,), (1356483414,), (1356483866,), (1356483924,), (1356483979,), (1356484030,), (1356484086,), (1356484161,), (1356484513,), (1356484542,), (1356484570,), (1356484600,), (1356484629,), (1356484659,), (1356484785,), (1356484792,), (1356484822,), (1356486449,), (1356486526,), (1356486578,), (1356486647,), (1356486730,), (1356487553,), (1356487565,), (1356487617,), (1356487814,), (1356487848,), (1356487879,), (1356487919,), (1356488066,), (1356488196,), (1356488552,), (1356488581,), (1356488615,), (1356488676,), (1356488704,), (1356489194,), (1356489249,), (1356489303,), (1356489335,), (1356489363,), (1356489606,), (1356489627,), (1356489654,), (1356489682,), (1356489708,), (1356490151,), (1356490231,), (1356490303,), (1356490380,), (1356490462,), (1356491874,), (1356491902,), (1356491934,), (1356491956,), (1356491963,), (1356492312,), (1356492245,), (1356492269,), (1356492288,), (1356492293,), (1356492395,), (1356492400,), (1356492405,), (1356492410,), (1356492461,), (1356492466,), (1356492488,), (1356492492,), (1356492556,), (1356492564,), (1356492581,), (1356492602,), (1356492655,), (1356492687,), (1356492956,), (1356492995,), (1356493051,), (1356493114,), (1356493145,), (1356493361,), (1356493364,), (1356493368,), (1356493373,), (1356494460,), (1356494462,), (1356494474,), (1356495125,), (1356495152,), (1356495188,), (1356495513,), (1356495879,), (1356495882,), (1356495885,), (1356495887,), (1356495888,), (1356495926,), (1356495929,), (1356495931,), (1356495968,), (1356496051,), (1356496150,), (1356496175,), (1356496179,), (1356496181,), (1356496380,), (1356496412,), (1356496440,), (1356496466,), (1356496520,), (1356496710,), (1356496890,), (1356496920,), (1356496948,), (1356497282,), (1356497149,), (1356497175,), (1356497223,), (1356497256,), (1356497279,), (1356497384,), (1356497387,), (1356497389,), (1356497391,), (1356497392,), (1356497396,), (1356497487,), (1356497488,), (1356497502,), (1356497599,), (1356497602,), (1356497605,), (1356497607,), (1356498601,), (1356498630,), (1356498664,), (1356498848,), (1356498893,), (1356498968,), (1356499519,), (1356499573,), (1356499613,), (1356499658,), (1356499695,), (1356499924,), (1356499925,), (1356499927,), (1356499929,), (1356500006,), (1356500009,), (1356500011,), (1356500027,), (1356500060,), (1356500094,), (1356500430,), (1356500480,), (1356500529,), (1356500559,), (1356500588,), (1356500788,), (1356500792,), (1356501027,), (1356501058,), (1356501089,), (1356501432,), (1356501482,), (1356501525,), (1356501539,), (1356501542,), (1356501981,), (1356502056,), (1356502117,), (1356502170,), (1356502214,), (1356502751,), (1356502792,), (1356502794,), (1356502797,), (1356502800,), (1356502804,), (1356502904,), (1356502932,), (1356503266,), (1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,), (1356504912,), (1356504941,), (1356504968,), (1356505036,), (1356505304,), (1356505333,), (1356505351,), (1356505362,), (1356505457,), (1356505486,), (1356505514,), (1356505527,), (1356505599,), (1356505604,), (1356505608,), (1356505613,), (1356505617,), (1356505780,), (1356505806,), (1356505833,), (1356505864,), (1356505892,), (1356506215,), (1356506223,), (1356506231,), (1356506237,), (1356506382,), (1356506385,), (1356506473,), (1356506475,), (1356506479,), (1356506582,), (1356506570,), (1356506574,), (1356506578,), (1356506612,), (1356506615,), (1356506619,), (1356506623,), (1356506985,), (1356506989,), (1356507017,), (1356507046,), (1356507076,), (1356507185,), (1356507187,), (1356507210,), (1356507334,), (1356507337,), (1356507341,), (1356507344,), (1356507421,), (1356507423,), (1356507426,), (1356507428,), (1356507430,), (1356507505,), (1356507508,), (1356507510,), (1356507512,), (1356507513,), (1356507547,), (1356507550,), (1356507553,), (1356507734,), (1356507739,), (1356507746,), (1356507749,), (1356507753,), (1356507759,), (1356507777,), (1356507781,), (1356507786,), (1356507791,), (1356507796,), (1356507812,), (1356507816,), (1356507821,), (1356507825,), (1356507854,), (1356507858,), (1356507863,), (1356508206,), (1356508260,), (1356508310,), (1356508374,), (1356508479,), (1356508637,), (1356509935,), (1356509966,), (1356509997,), (1356510031,), (1356510044,), (1356510180,), (1356510185,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06052025': {'nb_upload': 14, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22711348]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] map_info['map_portfolio_photo'] : {22711348: [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678]} final : True mtd_id 4302 list_pids : [1356321447, 1356312109, 1356312105, 1356312102, 1356312090, 1356312027, 1356312020, 1356312008, 1356311972, 1356311718, 1356311705, 1356311698, 1356311689, 1356311678] Looping around the photos to save general results len do output : 1 /22711348Didn'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, '2800872') ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872') ('4302', None, None, None, None, None, None, None, '2800872') ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22711348', 'None', None, None, None, None, '2800872'), ('4302', '22711348', '1356321447', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312109', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312105', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312102', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312090', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312027', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312020', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356312008', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311972', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311718', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311705', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311698', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311689', None, None, None, None, None, '2800872'), ('4302', '22711348', '1356311678', None, None, None, None, None, '2800872')] time used for this insertion : 0.014511585235595703 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7162938117980957 time spend to save output : 0.014741897583007812 total time spend for step 5 : 3.7310357093811035 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 (2800872) 2.20user 2.25system 0:11.98elapsed 37%CPU (0avgtext+0avgdata 161508maxresident)k 424inputs+8768outputs (11major+90160minor)pagefaults 0swaps