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 : 1850711 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 (2857556) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2857556) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971458 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2857556'] with mtr_portfolio_ids : ['22971458'] and first list_photo_ids : [] new path : /proc/1850711/ Name: python3 Umask: 0002 State: R (running) Tgid: 1850711 Ngid: 0 Pid: 1850711 PPid: 1850710 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1850711 NSpid: 1850711 NSpgid: 1850067 NSsid: 1850067 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98808 kB VmRSS: 98808 kB RssAnon: 60200 kB RssFile: 38608 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 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: 44 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1850711', 'Ngid': '0', 'Pid': '1850711', 'PPid': '1850710', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1850711', 'NSpid': '1850711', 'NSpgid': '1850067', 'NSsid': '1850067', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98808 kB', 'VmRSS': '98808 kB', 'RssAnon': '60200 kB', 'RssFile': '38608 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 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': '44', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '1850711', '1107228', '0', '1107228', '865976', '98808', b'', 'marlene', '2857556') 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 (22971458) 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 (2857556 ) ) 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 (22971458) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358260629, 'portfolio_id': 22971458}, {'photo_id': 1358260351, 'portfolio_id': 22971458}, {'photo_id': 1358260347, 'portfolio_id': 22971458}, {'photo_id': 1358260345, 'portfolio_id': 22971458}, {'photo_id': 1358260342, 'portfolio_id': 22971458}, {'photo_id': 1358260338, 'portfolio_id': 22971458}, {'photo_id': 1358260336, 'portfolio_id': 22971458}, {'photo_id': 1358260305, 'portfolio_id': 22971458}, {'photo_id': 1358260301, 'portfolio_id': 22971458}, {'photo_id': 1358260297, 'portfolio_id': 22971458}, {'photo_id': 1358260292, 'portfolio_id': 22971458}, {'photo_id': 1358260123, 'portfolio_id': 22971458}, {'photo_id': 1358260102, 'portfolio_id': 22971458}, {'photo_id': 1358260098, 'portfolio_id': 22971458}, {'photo_id': 1358259806, 'portfolio_id': 22971458}, {'photo_id': 1358259803, 'portfolio_id': 22971458}, {'photo_id': 1358259800, 'portfolio_id': 22971458}, {'photo_id': 1358259657, 'portfolio_id': 22971458}, {'photo_id': 1358259627, 'portfolio_id': 22971458}, {'photo_id': 1358259597, 'portfolio_id': 22971458}, {'photo_id': 1358259567, 'portfolio_id': 22971458}, {'photo_id': 1358259234, 'portfolio_id': 22971458}, {'photo_id': 1358259207, 'portfolio_id': 22971458}, {'photo_id': 1358259177, 'portfolio_id': 22971458}, {'photo_id': 1358259150, 'portfolio_id': 22971458}, {'photo_id': 1358259121, 'portfolio_id': 22971458}, {'photo_id': 1358258917, 'portfolio_id': 22971458}, {'photo_id': 1358258912, 'portfolio_id': 22971458}] map_portfolio_id_photo_id: {22971458: [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912]} ##### 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.0254361629486084 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu May 15 05:59:26 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 (22971458) 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 : 22971458 get user id for portfolio 22971458 get sub ptf for main ptf 22971458, type 3726 and hashtags ['autre_refus', 'plastique', 'kraft', 'mal_croppe', 'Carton_gris', 'papier', 'environnement', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', '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`=22971458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','mal_croppe','Carton_gris','papier','environnement','cartonnette','Teint_Dans_La_Masse','metal','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`=22971458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','mal_croppe','Carton_gris','papier','environnement','cartonnette','Teint_Dans_La_Masse','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22971458, 'sub_port_id': 22971474, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336718, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'plastique': {'main_port_id': 22971458, 'sub_port_id': 22971475, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336719, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'Carton_brun': {'main_port_id': 22971458, 'sub_port_id': 22971476, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336720, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'environnement': {'main_port_id': 22971458, 'sub_port_id': 22971477, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336721, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'metal': {'main_port_id': 22971458, 'sub_port_id': 22971478, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336722, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'mal_croppe': {'main_port_id': 22971458, 'sub_port_id': 22971479, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336723, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'flou': {'main_port_id': 22971458, 'sub_port_id': 22971480, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336724, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'kraft': {'main_port_id': 22971458, 'sub_port_id': 22971481, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336725, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'autre_refus': {'main_port_id': 22971458, 'sub_port_id': 22971482, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336726, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'cartonnette': {'main_port_id': 22971458, 'sub_port_id': 22971483, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336727, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'papier': {'main_port_id': 22971458, 'sub_port_id': 22971484, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336728, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22971458, 'sub_port_id': 22971486, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336729, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 10, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971474 , 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=22971458 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 (22971474) result : ((1358274944,), (1358274946,), (1358274947,), (1358274948,), (1358277467,), (1358277468,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971475 , 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=22971458 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 (22971475) result : ((1358277473,), (1358277474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971476 , 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=22971458 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 (22971476) result : ((1358274950,), (1358277471,), (1358277472,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971477 , 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=22971458 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 (22971477) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971478 , 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=22971458 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 (22971478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971479 , 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=22971458 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 (22971479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971480 , 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=22971458 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 (22971480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971481 , 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=22971458 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 (22971481) result : ((1358277477,), (1358277478,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971482 , 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=22971458 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 (22971482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971483 , 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=22971458 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 (22971483) result : ((1358274949,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971484 , 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=22971458 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 (22971484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22971486 , 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=22971458 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 (22971486) result : ((1358274942,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22971458) result : ((1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,)) 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 (1358259800) and cspi.crop_hashtag_id = chi.id; 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`=22971458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','mal_croppe','Carton_gris','papier','environnement','cartonnette','Teint_Dans_La_Masse','metal','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`=22971458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','mal_croppe','Carton_gris','papier','environnement','cartonnette','Teint_Dans_La_Masse','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22971458, 'sub_port_id': 22971488, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336730, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'plastique': {'main_port_id': 22971458, 'sub_port_id': 22971489, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336731, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'Carton_brun': {'main_port_id': 22971458, 'sub_port_id': 22971490, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336732, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'environnement': {'main_port_id': 22971458, 'sub_port_id': 22971491, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336733, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'metal': {'main_port_id': 22971458, 'sub_port_id': 22971492, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336734, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'mal_croppe': {'main_port_id': 22971458, 'sub_port_id': 22971493, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336735, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'flou': {'main_port_id': 22971458, 'sub_port_id': 22971494, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336736, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'kraft': {'main_port_id': 22971458, 'sub_port_id': 22971495, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336737, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'autre_refus': {'main_port_id': 22971458, 'sub_port_id': 22971496, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336738, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'cartonnette': {'main_port_id': 22971458, 'sub_port_id': 22971497, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336739, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'papier': {'main_port_id': 22971458, 'sub_port_id': 22971498, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336740, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}, 'Teint_Dans_La_Masse': {'main_port_id': 22971458, 'sub_port_id': 22971499, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15336741, 'last_updated_at': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 17, 18, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 17, 11)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22971499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22971486 lien utilise dans velours : https://www.fotonower.com/velours/22971488,22971489,22971490,22971491,22971492,22971493,22971494,22971495,22971496,22971497,22971498,22971499?tags=Carton_gris,plastique,Carton_brun,environnement,metal,mal_croppe,flou,kraft,autre_refus,cartonnette,papier,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22971458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] map_info['map_portfolio_photo'] : {22971458: [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912]} final : False mtd_id 4302 list_pids : [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] Looping around the photos to save general results len do output : 1 /22971458. 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, '2857556') ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '22971458', "{'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486}", None, None, None, None, '2857556'), ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556')] time used for this insertion : 0.026595592498779297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6176531314849854 time spend to save output : 0.027041912078857422 total time spend for step 1 : 0.6446950435638428 step2:final Thu May 15 05:59:27 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 (22971458) 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 22971458 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358258917,1358258912,1358259234,1358259207,1358259177,1358259150,1358259121,1358259657,1358259627,1358259597,1358259567,1358259806,1358259803,1358259800,1358260123,1358260102,1358260098,1358260305,1358260301,1358260297,1358260292,1358260351,1358260347,1358260345,1358260342,1358260338,1358260336,1358260629); 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([22971458]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} new output for save of step final : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] map_info['map_portfolio_photo'] : {22971458: [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912]} final : False mtd_id 4302 list_pids : [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] Looping around the photos to save general results len do output : 28 /1358260629.Didn't retrieve data . /1358260351.Didn't retrieve data . /1358260347.Didn't retrieve data . /1358260345.Didn't retrieve data . /1358260342.Didn't retrieve data . /1358260338.Didn't retrieve data . /1358260336.Didn't retrieve data . /1358260305.Didn't retrieve data . /1358260301.Didn't retrieve data . /1358260297.Didn't retrieve data . /1358260292.Didn't retrieve data . /1358260123.Didn't retrieve data . /1358260102.Didn't retrieve data . /1358260098.Didn't retrieve data . /1358259806.Didn't retrieve data . /1358259803.Didn't retrieve data . /1358259800.Didn't retrieve data . /1358259657.Didn't retrieve data . /1358259627.Didn't retrieve data . /1358259597.Didn't retrieve data . /1358259567.Didn't retrieve data . /1358259234.Didn't retrieve data . /1358259207.Didn't retrieve data . /1358259177.Didn't retrieve data . /1358259150.Didn't retrieve data . /1358259121.Didn't retrieve data . /1358258917.Didn't retrieve data . /1358258912.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, '2857556') ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 84 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', '22971458', '1358260629', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260351', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260347', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260345', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260342', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260338', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260336', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260305', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260301', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260297', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260292', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260123', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260102', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358260098', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259806', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259803', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259800', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259657', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259627', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259597', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259567', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259234', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259207', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259177', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259150', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358259121', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358258917', '0.033092273792554444', None, None, None, None, '2857556'), ('4302', '22971458', '1358258912', '0.033092273792554444', None, None, None, None, '2857556')] time used for this insertion : 0.018843650817871094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06772518157958984 time spend to save output : 0.020101547241210938 total time spend for step 2 : 0.08782672882080078 step3:velours_tree Thu May 15 05:59:27 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 : {22971458: [{'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486}]} input_args_next_step : {22971458: ()} output_args : {22971458: [{'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486}]} args : 22971458 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 : ({'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22971458) 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([22971458]) 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.32282018661499023 time spend to save output : 5.53131103515625e-05 total time spend for step 3 : 0.3228754997253418 step4:send_mail_cod Thu May 15 05:59:27 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 : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} input_args_next_step : {1358260629: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260629 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260351 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260347 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260345 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260342 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260338 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260336 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260305 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260301 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260297 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260292 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260123 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260102 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358260098 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259806 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259803 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259800 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259657 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259627 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259597 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259567 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259234 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259207 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259177 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259150 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358259121 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358258917 depend.output_id : 0 input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ()} output_args : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',)} args : 1358258912 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 : {22971458: [{'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486}]} input_args_next_step : {1358260629: ('0.033092273792554444',), 1358260351: ('0.033092273792554444',), 1358260347: ('0.033092273792554444',), 1358260345: ('0.033092273792554444',), 1358260342: ('0.033092273792554444',), 1358260338: ('0.033092273792554444',), 1358260336: ('0.033092273792554444',), 1358260305: ('0.033092273792554444',), 1358260301: ('0.033092273792554444',), 1358260297: ('0.033092273792554444',), 1358260292: ('0.033092273792554444',), 1358260123: ('0.033092273792554444',), 1358260102: ('0.033092273792554444',), 1358260098: ('0.033092273792554444',), 1358259806: ('0.033092273792554444',), 1358259803: ('0.033092273792554444',), 1358259800: ('0.033092273792554444',), 1358259657: ('0.033092273792554444',), 1358259627: ('0.033092273792554444',), 1358259597: ('0.033092273792554444',), 1358259567: ('0.033092273792554444',), 1358259234: ('0.033092273792554444',), 1358259207: ('0.033092273792554444',), 1358259177: ('0.033092273792554444',), 1358259150: ('0.033092273792554444',), 1358259121: ('0.033092273792554444',), 1358258917: ('0.033092273792554444',), 1358258912: ('0.033092273792554444',), 22971458: ()} output_args : {22971458: [{'Carton_gris': 22971474, 'plastique': 22971475, 'Carton_brun': 22971476, 'environnement': 22971477, 'metal': 22971478, 'mal_croppe': 22971479, 'flou': 22971480, 'kraft': 22971481, 'autre_refus': 22971482, 'cartonnette': 22971483, 'papier': 22971484, 'Teint_Dans_La_Masse': 22971486}]} args : 22971458 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 :29, first value : ('0.033092273792554444',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22971458) 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 (1358260629,1358260351,1358260347,1358260345,1358260342,1358260338,1358260336,1358260305,1358260301,1358260297,1358260292,1358260123,1358260102,1358260098,1358259806,1358259803,1358259800,1358259657,1358259627,1358259597,1358259567,1358259234,1358259207,1358259177,1358259150,1358259121,1358258917,1358258912) Found this number of photos: 28 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358258912 begin to download photo : 1358259234 begin to download photo : 1358259803 begin to download photo : 1358260297 begin to download photo : 1358260345 download finish for photo 1358259234 begin to download photo : 1358259567 download finish for photo 1358259803 begin to download photo : 1358259806 download finish for photo 1358260297 begin to download photo : 1358260301 download finish for photo 1358258912 begin to download photo : 1358258917 download finish for photo 1358260345 begin to download photo : 1358260347 download finish for photo 1358259567 begin to download photo : 1358259597 download finish for photo 1358258917 begin to download photo : 1358259121 download finish for photo 1358259806 begin to download photo : 1358260098 download finish for photo 1358260301 begin to download photo : 1358260305 download finish for photo 1358260347 begin to download photo : 1358260351 download finish for photo 1358259597 begin to download photo : 1358259627 download finish for photo 1358259121 begin to download photo : 1358259150 download finish for photo 1358260098 begin to download photo : 1358260102 download finish for photo 1358260305 begin to download photo : 1358260336 download finish for photo 1358259150 begin to download photo : 1358259177 download finish for photo 1358260351 begin to download photo : 1358260629 download finish for photo 1358260336 begin to download photo : 1358260338 download finish for photo 1358260102 begin to download photo : 1358260123 download finish for photo 1358259627 begin to download photo : 1358259657 download finish for photo 1358259177 begin to download photo : 1358259207 download finish for photo 1358260629 download finish for photo 1358260123 begin to download photo : 1358260292 download finish for photo 1358259657 begin to download photo : 1358259800 download finish for photo 1358260338 begin to download photo : 1358260342 download finish for photo 1358259207 download finish for photo 1358260292 download finish for photo 1358259800 download finish for photo 1358260342 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 28 ; length of list_pids : 28 ; length of list_args : 28 results_Auto_P22971458_15-05-2025_05_59_28.pdf 22971475 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=22971475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358277473: '1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593486_0.png', 1358277474: '1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/437a09a29bf9f47bd0cc287bc39b5a3b_85169942.png change filename to text .imagette229714751747281568/ imagette229714751747281568/1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593482_0.png.png imagette229714751747281568/1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593486_0.png.png imagette229714781747281568/ imagette229714791747281568/ imagette229714801747281568/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/38be8d410f21dae3c99d56182f7a3f4c_75182097.png imagette229714751747281568 22971478 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=22971478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229714781747281568 22971479 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=22971479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229714791747281568 22971480 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=22971480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229714801747281568 22971481 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=22971481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358277477: '1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593474_0.png', 1358277478: '1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593468_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/c2ff27a56c9ab913e1d1b9ce207c8d3b_64361822.png change filename to text .imagette229714811747281569/ imagette229714811747281569/1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593468_0.png.png imagette229714811747281569/1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593474_0.png.png imagette229714821747281569/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/60027f8802cb731ff23d3f0f01b9cd7f_63122101.png imagette229714811747281569 22971482 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=22971482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229714821747281569 22971483 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=22971483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358274949: '1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575395_0.png'} change filename to text .imagette229714831747281569/ imagette229714831747281569/1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575395_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/de8a5090c7c185a013ec42a757f7eb45_55550291.png imagette229714831747281569 22971474 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=22971474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358274944: '1747238487_108959_1358260345_3efeb217f79484d47445e1bdac3c0203_rle_crop_3797575369_0.png', 1358274946: '1747238487_108959_1358260342_cc92c8f906009a6b334b481aaa43de54_rle_crop_3797575383_0.png', 1358274947: '1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575390_0.png', 1358274948: '1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575391_0.png', 1358277467: '1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593469_0.png', 1358277468: '1747239025_123173_1358259800_221abaeafc14d4b6916644d257c85e9c_rle_crop_3797593501_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2439f2dc764755678f7ee9b40be695e2_81066942.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/af15823873fb917e68097ae4f1628550_5145784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a44761f2804888b77ac521ae956bfef4_3442842.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3cdcb5c4f802f1e383c6b0d1fd4b8b98_54899633.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3b037e6062d8158ab3d8e15adfdc7528_76109087.png change filename to text .imagette229714741747281569/ imagette229714741747281569/1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575390_0.png.png imagette229714741747281569/1747238487_108959_1358260345_3efeb217f79484d47445e1bdac3c0203_rle_crop_3797575369_0.png.png imagette229714741747281569/1747238487_108959_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b_rle_crop_3797575391_0.png.png imagette229714741747281569/1747239025_123173_1358259800_221abaeafc14d4b6916644d257c85e9c_rle_crop_3797593501_0.png.png imagette229714741747281569/1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593469_0.png.png imagette229714741747281569/1747238487_108959_1358260342_cc92c8f906009a6b334b481aaa43de54_rle_crop_3797575383_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/94f1c9d3477c44b05d3c23241538bcf2_37604352.png imagette229714741747281569 22971476 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=22971476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358274950: '1747238487_108959_1358260347_9f77541d9b3e9a760e7027e4aeff8de2_rle_crop_3797575361_0.png', 1358277471: '1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593475_0.png', 1358277472: '1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/afd4711775252de14c4e796712cf55bb_6181211.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/efa8073192662d79f65fbbbb2fdaf265_25645846.png change filename to text .imagette229714761747281570/ imagette229714761747281570/1747239025_123173_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e_rle_crop_3797593489_0.png.png imagette229714761747281570/1747238487_108959_1358260347_9f77541d9b3e9a760e7027e4aeff8de2_rle_crop_3797575361_0.png.png imagette229714761747281570/1747239025_123173_1358260123_650528d3cbba084c4917b241775b8f3e_rle_crop_3797593475_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/38d3756e00659c165b1d0f9e9ed2e755_25947386.png imagette229714761747281570 22971486 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=22971486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358274942: '1747238487_108959_1358260629_ff7b1d624db85d28a0f3d884c7e77fc1_rle_crop_3797575344_0.png'} change filename to text .imagette229714861747281570/ imagette229714861747281570/1747238487_108959_1358260629_ff7b1d624db85d28a0f3d884c7e77fc1_rle_crop_3797575344_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/2b650f20c723b45f2feba6b9490b90e7_70138219.png imagette229714861747281570 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22971458 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22971488,22971489,22971490,22971491,22971492,22971493,22971494,22971495,22971496,22971497,22971498,22971499?tags=Carton_gris,plastique,Carton_brun,environnement,metal,mal_croppe,flou,kraft,autre_refus,cartonnette,papier,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1358260629] : ('0.033092273792554444',) no score found for photo 1358260629 We are sending mail with results at report@fotonower.com args[1358260351] : ('0.033092273792554444',) no score found for photo 1358260351 We are sending mail with results at report@fotonower.com args[1358260347] : ('0.033092273792554444',) no score found for photo 1358260347 We are sending mail with results at report@fotonower.com args[1358260345] : ('0.033092273792554444',) no score found for photo 1358260345 We are sending mail with results at report@fotonower.com args[1358260342] : ('0.033092273792554444',) no score found for photo 1358260342 We are sending mail with results at report@fotonower.com args[1358260338] : ('0.033092273792554444',) no score found for photo 1358260338 We are sending mail with results at report@fotonower.com args[1358260336] : ('0.033092273792554444',) no score found for photo 1358260336 We are sending mail with results at report@fotonower.com args[1358260305] : ('0.033092273792554444',) no score found for photo 1358260305 We are sending mail with results at report@fotonower.com args[1358260301] : ('0.033092273792554444',) no score found for photo 1358260301 We are sending mail with results at report@fotonower.com args[1358260297] : ('0.033092273792554444',) no score found for photo 1358260297 We are sending mail with results at report@fotonower.com args[1358260292] : ('0.033092273792554444',) no score found for photo 1358260292 We are sending mail with results at report@fotonower.com args[1358260123] : ('0.033092273792554444',) no score found for photo 1358260123 We are sending mail with results at report@fotonower.com args[1358260102] : ('0.033092273792554444',) no score found for photo 1358260102 We are sending mail with results at report@fotonower.com args[1358260098] : ('0.033092273792554444',) no score found for photo 1358260098 We are sending mail with results at report@fotonower.com args[1358259806] : ('0.033092273792554444',) no score found for photo 1358259806 We are sending mail with results at report@fotonower.com args[1358259803] : ('0.033092273792554444',) no score found for photo 1358259803 We are sending mail with results at report@fotonower.com args[1358259800] : ('0.033092273792554444',) no score found for photo 1358259800 We are sending mail with results at report@fotonower.com args[1358259657] : ('0.033092273792554444',) no score found for photo 1358259657 We are sending mail with results at report@fotonower.com args[1358259627] : ('0.033092273792554444',) no score found for photo 1358259627 We are sending mail with results at report@fotonower.com args[1358259597] : ('0.033092273792554444',) no score found for photo 1358259597 We are sending mail with results at report@fotonower.com args[1358259567] : ('0.033092273792554444',) no score found for photo 1358259567 We are sending mail with results at report@fotonower.com args[1358259234] : ('0.033092273792554444',) no score found for photo 1358259234 We are sending mail with results at report@fotonower.com args[1358259207] : ('0.033092273792554444',) no score found for photo 1358259207 We are sending mail with results at report@fotonower.com args[1358259177] : ('0.033092273792554444',) no score found for photo 1358259177 We are sending mail with results at report@fotonower.com args[1358259150] : ('0.033092273792554444',) no score found for photo 1358259150 We are sending mail with results at report@fotonower.com args[1358259121] : ('0.033092273792554444',) no score found for photo 1358259121 We are sending mail with results at report@fotonower.com args[1358258917] : ('0.033092273792554444',) no score found for photo 1358258917 We are sending mail with results at report@fotonower.com args[1358258912] : ('0.033092273792554444',) no score found for photo 1358258912 We are sending mail with results at report@fotonower.com refus_total : 0.033092273792554444 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=22971458 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_P22971458_15-05-2025_05_59_28.pdf results_Auto_P22971458_15-05-2025_05_59_28.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_15-05-2025_05_59_28.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','22971458','results_Auto_P22971458_15-05-2025_05_59_28.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_15-05-2025_05_59_28.pdf','pdf','','0.27','0.033092273792554444') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22971458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] map_info['map_portfolio_photo'] : {22971458: [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912]} final : False mtd_id 4302 list_pids : [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] 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, '2857556') ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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', '22971458', '1358260629', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556')] time used for this insertion : 0.39840149879455566 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.959980487823486 time spend to save output : 0.39878177642822266 total time spend for step 4 : 7.358762264251709 step5:split_time_score Thu May 15 05:59:35 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 : ['22971458'] 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 : [('22971458',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22971458) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358260345: {'path': 'temp/1747281567_1850711_1358260345_3efeb217f79484d47445e1bdac3c0203.jpg', 'extension': 'jpg'}, 1358260347: {'path': 'temp/1747281567_1850711_1358260347_9f77541d9b3e9a760e7027e4aeff8de2.jpg', 'extension': 'jpg'}, 1358260351: {'path': 'temp/1747281567_1850711_1358260351_001e8b4c94dad737f988ab14651249f7.jpg', 'extension': 'jpg'}, 1358260629: {'path': 'temp/1747281567_1850711_1358260629_ff7b1d624db85d28a0f3d884c7e77fc1.jpg', 'extension': 'jpg'}, 1358258912: {'path': 'temp/1747281567_1850711_1358258912_259b530abecda0b86520975a8a13357c.jpg', 'extension': 'jpg'}, 1358258917: {'path': 'temp/1747281567_1850711_1358258917_f73b3fc631f530f8eb64e3db89ea94b6.jpg', 'extension': 'jpg'}, 1358259121: {'path': 'temp/1747281567_1850711_1358259121_e87f7a8a12c51e5fc44f41f53cac3528.jpg', 'extension': 'jpg'}, 1358259150: {'path': 'temp/1747281567_1850711_1358259150_776c9f68abe69f658435004f7d2943b4.jpg', 'extension': 'jpg'}, 1358259177: {'path': 'temp/1747281567_1850711_1358259177_c5568836e6631f3947d3149f6c71dc26.jpg', 'extension': 'jpg'}, 1358259207: {'path': 'temp/1747281567_1850711_1358259207_687c7c57246d6eea6568f8f5bdc84477.jpg', 'extension': 'jpg'}, 1358259803: {'path': 'temp/1747281567_1850711_1358259803_4fc8dd44bd8488ccad3a5d8a5e283d5e.jpg', 'extension': 'jpg'}, 1358259806: {'path': 'temp/1747281567_1850711_1358259806_f9f4f6c18d23d63cae27628fa5ee3e66.jpg', 'extension': 'jpg'}, 1358260098: {'path': 'temp/1747281567_1850711_1358260098_5e1fd28aa4b9dffa8fe250ed0c44e40e.jpg', 'extension': 'jpg'}, 1358260102: {'path': 'temp/1747281567_1850711_1358260102_adb020dc5ff96500dbe14c1b949d699c.jpg', 'extension': 'jpg'}, 1358260123: {'path': 'temp/1747281567_1850711_1358260123_650528d3cbba084c4917b241775b8f3e.jpg', 'extension': 'jpg'}, 1358260292: {'path': 'temp/1747281567_1850711_1358260292_58c1ae5aedcc7e0804af77ae0337ab41.jpg', 'extension': 'jpg'}, 1358259234: {'path': 'temp/1747281567_1850711_1358259234_94edf61a6b2207ecb543c0a278b4050f.jpg', 'extension': 'jpg'}, 1358259567: {'path': 'temp/1747281567_1850711_1358259567_60dd5701386becb080a869eaf978b897.jpg', 'extension': 'jpg'}, 1358259597: {'path': 'temp/1747281567_1850711_1358259597_536d67470f1af32c7fa016b163ba0fa4.jpg', 'extension': 'jpg'}, 1358259627: {'path': 'temp/1747281567_1850711_1358259627_a534d6d65cd91a78dce3aa2a30bf5921.jpg', 'extension': 'jpg'}, 1358259657: {'path': 'temp/1747281567_1850711_1358259657_02c7646067071ff5999dddc7fccc6d9c.jpg', 'extension': 'jpg'}, 1358259800: {'path': 'temp/1747281567_1850711_1358259800_221abaeafc14d4b6916644d257c85e9c.jpg', 'extension': 'jpg'}, 1358260297: {'path': 'temp/1747281567_1850711_1358260297_0e886950b69ec8ee9461ae2883b8e19c.jpg', 'extension': 'jpg'}, 1358260301: {'path': 'temp/1747281567_1850711_1358260301_3c4c5af6c99536fb54859eea4b02ee81.jpg', 'extension': 'jpg'}, 1358260305: {'path': 'temp/1747281567_1850711_1358260305_64046d4003e679ad0d8fd1900b1a01f2.jpg', 'extension': 'jpg'}, 1358260336: {'path': 'temp/1747281567_1850711_1358260336_00cb61b9ef807ca60a4b3071d73e6122.jpg', 'extension': 'jpg'}, 1358260338: {'path': 'temp/1747281567_1850711_1358260338_a8dfbaf434e08832297b75ad0e1b4d8b.jpg', 'extension': 'jpg'}, 1358260342: {'path': 'temp/1747281567_1850711_1358260342_cc92c8f906009a6b334b481aaa43de54.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 = 22971458; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22971458 group by h (('17', 28),) 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=22971458 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 (22971458) 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 (22971458) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14052025 22971458 Nombre de photos uploadées : 28 / 23040 (0%) 14052025 22971458 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 14052025 22971458 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1358258917, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/f73b3fc631f530f8eb64e3db89ea94b6.jpg', 'username': None, 'uploaded_at': 1747235347, 'text': 'image_14052025_17_00_13_10215.jpg'}, {'photo_id': 1358258912, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/259b530abecda0b86520975a8a13357c.jpg', 'username': None, 'uploaded_at': 1747235347, 'text': 'image_14052025_17_08_33_10139.jpg'}, {'photo_id': 1358259234, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/94edf61a6b2207ecb543c0a278b4050f.jpg', 'username': None, 'uploaded_at': 1747235407, 'text': 'image_14052025_17_08_44_10135.jpg'}, {'photo_id': 1358259207, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/687c7c57246d6eea6568f8f5bdc84477.jpg', 'username': None, 'uploaded_at': 1747235407, 'text': 'image_14052025_17_09_14_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014965534210205078 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22971458, '2025-05-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1803731,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029008150100708008 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= 1803731 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22945509, 'dashboard_result_id': 10573860, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945509_15-05-2025_05_34_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945521, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22945880, 'dashboard_result_id': 10573861, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945880_15-05-2025_05_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945893, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22945987, 'dashboard_result_id': 10573862, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945987_15-05-2025_05_35_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946000, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22946016, 'dashboard_result_id': 10573863, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946016_15-05-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946034, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22946286, 'dashboard_result_id': 10573864, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946286_15-05-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946298, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22946489, 'dashboard_result_id': 10573865, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946489_15-05-2025_05_36_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946501, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22946811, 'dashboard_result_id': 10573866, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946811_15-05-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946862, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22947229, 'dashboard_result_id': 10573867, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947229_15-05-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947241, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22947610, 'dashboard_result_id': 10573868, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947610_15-05-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947628, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22947885, 'dashboard_result_id': 10573869, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947885_15-05-2025_05_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947911, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22948351, 'dashboard_result_id': 10573870, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_15-05-2025_05_40_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22948827, 'dashboard_result_id': 10573871, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_15-05-2025_05_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22949170, 'dashboard_result_id': 10573872, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_15-05-2025_05_42_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22949616, 'dashboard_result_id': 10573873, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_15-05-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949628, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22950052, 'dashboard_result_id': 10573874, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950052_15-05-2025_05_43_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950090, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22950465, 'dashboard_result_id': 10573875, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950465_15-05-2025_05_43_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950491, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22950919, 'dashboard_result_id': 10573876, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950919_15-05-2025_05_44_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22951000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22951001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22951002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22951003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22951004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22951005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22951006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22951007, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22952363, 'dashboard_result_id': 10573877, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_15-05-2025_05_45_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22952585, 'dashboard_result_id': 10573878, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_15-05-2025_05_45_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22953062, 'dashboard_result_id': 10573879, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_15-05-2025_05_46_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22953747, 'dashboard_result_id': 10573880, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_15-05-2025_05_46_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22954655, 'dashboard_result_id': 10573881, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954655_15-05-2025_05_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22954670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22954671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22954672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22954673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22954674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22954675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22954676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22954677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22954678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22954679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22954680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22954681, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22954977, 'dashboard_result_id': 10573882, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954977_15-05-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22955006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955017, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22955774, 'dashboard_result_id': 10573883, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_15-05-2025_05_48_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22956668, 'dashboard_result_id': 10573884, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_15-05-2025_05_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22957362, 'dashboard_result_id': 10573885, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_15-05-2025_05_50_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22958312, 'dashboard_result_id': 10573886, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958312_15-05-2025_05_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958449, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22958946, 'dashboard_result_id': 10573887, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958946_15-05-2025_05_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958972, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22962740, 'dashboard_result_id': 10573888, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22962740_15-05-2025_05_52_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22962744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22962745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22962746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22962747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22962748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22962749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22962750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22962751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22962752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22962753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22962754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22962755, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22963704, 'dashboard_result_id': 10573889, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22963704_15-05-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22963737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22963738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22963740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22963741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22963742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22963744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22963745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22963746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22963748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22963749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22963750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22963752, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22964232, 'dashboard_result_id': 10573890, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964232_15-05-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22964256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964267, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22964933, 'dashboard_result_id': 10573891, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964933_15-05-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22964949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964951, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22965742, 'dashboard_result_id': 10573892, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22965742_15-05-2025_05_54_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22965822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22965823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22965824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22965825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22965826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22965827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22965828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22965829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22965830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22965831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22965832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22965833, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22966668, 'dashboard_result_id': 10573893, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22966668_15-05-2025_05_55_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22966676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22966677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22966678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22966679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22966680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22966681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22966682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22966683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22966684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22966685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22966686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22966687, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22967453, 'dashboard_result_id': 10573894, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22967453_15-05-2025_05_56_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22967521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22967522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22967523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22967524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22967525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22967526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22967527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22967528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22967531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22967532, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22968287, 'dashboard_result_id': 10573895, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22968287_15-05-2025_05_56_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22968304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22968305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22968306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22968307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22968308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22968309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22968310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22968311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22968312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22968313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22968314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22968315, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22969135, 'dashboard_result_id': 10573896, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969220, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969135_15-05-2025_05_57_00.pdf'}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22969729, 'dashboard_result_id': 10573897, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969729_15-05-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969759, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22970336, 'dashboard_result_id': 10573898, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970336_15-05-2025_05_58_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22970373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22970374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22970375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22970376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22970377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22970378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22970379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22970380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22970381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22970382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22970383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22970384, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22970772, 'dashboard_result_id': 10573899, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970772_15-05-2025_05_58_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22970793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22970794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22970795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22970796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22970797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22970798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22970799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22970800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22970801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22970802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22970803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22970804, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22971458, 'dashboard_result_id': 10573900, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_14-05-2025_17_18_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971486, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22971781, 'dashboard_result_id': 10573901, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971781_14-05-2025_17_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971810, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22973918, 'dashboard_result_id': 10573902, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22973918_14-05-2025_18_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22973925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22973927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22973928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22973929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22973930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22973931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22973932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22973933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22973934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22973935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22973936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22973937, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22974968, 'dashboard_result_id': 10573903, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22974968_14-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22974976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22974977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22974978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22974979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22974980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22974981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22974982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22974983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22974984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22974985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22974986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22974987, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22975448, 'dashboard_result_id': 10573904, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975448_14-05-2025_19_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22975455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22975456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22975457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22975458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22975459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22975460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22975461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22975462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22975463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22975464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22975465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22975466, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22975977, 'dashboard_result_id': 10573905, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975977_14-05-2025_19_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976035, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22976406, 'dashboard_result_id': 10573906, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976406_14-05-2025_19_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22976410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976421, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22976844, 'dashboard_result_id': 10573907, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976844_14-05-2025_19_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22976936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976948, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22977577, 'dashboard_result_id': 10573908, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22977577_14-05-2025_20_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22977625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22977626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22977627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22977628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22977630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22977631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22977632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22977633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22977634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22977636, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22978253, 'dashboard_result_id': 10573909, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22978253_14-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22978297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22978298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22978299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22978300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22978301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22978302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22978303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22978304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22978305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22978306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22978308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22978309, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22979051, 'dashboard_result_id': 10573910, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979051_14-05-2025_20_32_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22979092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979094, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22979674, 'dashboard_result_id': 10573911, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979674_14-05-2025_21_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22979688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979700, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22980730, 'dashboard_result_id': 10573912, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22980730_14-05-2025_21_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22980782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22980783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22980784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22980785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22980786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22980787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22980788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22980789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22980790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22980791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22980792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22980793, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22981091, 'dashboard_result_id': 10573913, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981091_14-05-2025_21_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981118, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22981409, 'dashboard_result_id': 10573914, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981409_14-05-2025_21_50_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981446, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22982000, 'dashboard_result_id': 10573915, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982000_14-05-2025_22_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982056, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22982544, 'dashboard_result_id': 10573916, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982544_14-05-2025_22_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982580, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1814888, 'mtr_portfolio_id': 22983615, 'dashboard_result_id': 10573917, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22983615_14-05-2025_22_30_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22983628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22983629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22983630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22983631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22983632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22983633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22983634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22983635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22983636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22983637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22983638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22983639, '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 = 22945509 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857516, 'mtr_portfolio_id': 22945509, 'created_at': datetime.datetime(2025, 5, 15, 5, 34, 28), 'result': '0.07266391255964268', 'result_long': None, 'result_double': None}] Qualite : 0.07266391255964268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22945509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945509_15-05-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22945509 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945509_15-05-2025_05_34_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945521, 'pht': 3726}}" where mtr_portfolio_id = 22945509 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22945509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573860, 0.07266391255964268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945509_15-05-2025_05_34_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945521, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22945880 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857517, 'mtr_portfolio_id': 22945880, 'created_at': datetime.datetime(2025, 5, 15, 5, 34, 57), 'result': '0.0883642758020635', 'result_long': None, 'result_double': None}] Qualite : 0.0883642758020635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22945880 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945880_15-05-2025_05_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22945880 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945880_15-05-2025_05_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945893, 'pht': 3726}}" where mtr_portfolio_id = 22945880 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22945880 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573861, 0.0883642758020635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945880_15-05-2025_05_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22945884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945893, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22945987 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857518, 'mtr_portfolio_id': 22945987, 'created_at': datetime.datetime(2025, 5, 15, 5, 35, 32), 'result': '0.054223971837016244', 'result_long': None, 'result_double': None}] Qualite : 0.054223971837016244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22945987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945987_15-05-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22945987 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945987_15-05-2025_05_35_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946000, 'pht': 3726}}" where mtr_portfolio_id = 22945987 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22945987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573862, 0.054223971837016244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22945987_15-05-2025_05_35_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22945989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22945990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22945991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22945992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22945993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22945994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22945995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22945996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22945997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22945998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22945999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946000, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22946016 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857519, 'mtr_portfolio_id': 22946016, 'created_at': datetime.datetime(2025, 5, 15, 5, 35, 28), 'result': '0.04162692686571983', 'result_long': None, 'result_double': None}] Qualite : 0.04162692686571983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22946016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946016_15-05-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22946016 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946016_15-05-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946034, 'pht': 3726}}" where mtr_portfolio_id = 22946016 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22946016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573863, 0.04162692686571983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946016_15-05-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946034, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22946286 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857520, 'mtr_portfolio_id': 22946286, 'created_at': datetime.datetime(2025, 5, 15, 5, 35, 59), 'result': '0.05549711134110829', 'result_long': None, 'result_double': None}] Qualite : 0.05549711134110829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22946286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946286_15-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22946286 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946286_15-05-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946298, 'pht': 3726}}" where mtr_portfolio_id = 22946286 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22946286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573864, 0.05549711134110829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946286_15-05-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22946489 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857521, 'mtr_portfolio_id': 22946489, 'created_at': datetime.datetime(2025, 5, 15, 5, 36, 30), 'result': '0.05403633433425369', 'result_long': None, 'result_double': None}] Qualite : 0.05403633433425369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22946489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946489_15-05-2025_05_36_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22946489 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946489_15-05-2025_05_36_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946501, 'pht': 3726}}" where mtr_portfolio_id = 22946489 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22946489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573865, 0.05403633433425369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946489_15-05-2025_05_36_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22946811 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857522, 'mtr_portfolio_id': 22946811, 'created_at': datetime.datetime(2025, 5, 15, 5, 37, 58), 'result': '0.04646128243050802', 'result_long': None, 'result_double': None}] Qualite : 0.04646128243050802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22946811 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946811_15-05-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22946811 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946811_15-05-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946862, 'pht': 3726}}" where mtr_portfolio_id = 22946811 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22946811 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573866, 0.04646128243050802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22946811_15-05-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22946851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22946852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22946853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22946854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22946855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22946856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22946857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22946858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22946859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22946860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22946861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22946862, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22947229 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857523, 'mtr_portfolio_id': 22947229, 'created_at': datetime.datetime(2025, 5, 15, 5, 38, 29), 'result': '0.056823103388243444', 'result_long': None, 'result_double': None}] Qualite : 0.056823103388243444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22947229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947229_15-05-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22947229 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947229_15-05-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947241, 'pht': 3726}}" where mtr_portfolio_id = 22947229 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22947229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573867, 0.056823103388243444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947229_15-05-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947241, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22947610 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857524, 'mtr_portfolio_id': 22947610, 'created_at': datetime.datetime(2025, 5, 15, 5, 39, 30), 'result': '0.05619088668202262', 'result_long': None, 'result_double': None}] Qualite : 0.05619088668202262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22947610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947610_15-05-2025_05_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22947610 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947610_15-05-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947628, 'pht': 3726}}" where mtr_portfolio_id = 22947610 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22947610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573868, 0.05619088668202262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947610_15-05-2025_05_39_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22947885 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857525, 'mtr_portfolio_id': 22947885, 'created_at': datetime.datetime(2025, 5, 15, 5, 39, 58), 'result': '0.04014452338009036', 'result_long': None, 'result_double': None}] Qualite : 0.04014452338009036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22947885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947885_15-05-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22947885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947885_15-05-2025_05_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947911, 'pht': 3726}}" where mtr_portfolio_id = 22947885 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22947885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573869, 0.04014452338009036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22947885_15-05-2025_05_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22947899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22947900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22947901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22947902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22947903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22947904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22947905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22947906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22947908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22947909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22947910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22947911, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22948351 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857526, 'mtr_portfolio_id': 22948351, 'created_at': datetime.datetime(2025, 5, 15, 5, 40, 28), 'result': '0.04391898745671169', 'result_long': None, 'result_double': None}] Qualite : 0.04391898745671169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22948351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_15-05-2025_05_40_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22948351 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_15-05-2025_05_40_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, 'pht': 3726}}" where mtr_portfolio_id = 22948351 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22948351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573870, 0.04391898745671169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_15-05-2025_05_40_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22948827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857527, 'mtr_portfolio_id': 22948827, 'created_at': datetime.datetime(2025, 5, 15, 5, 41, 28), 'result': '0.04315007547678833', 'result_long': None, 'result_double': None}] Qualite : 0.04315007547678833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22948827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_15-05-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22948827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_15-05-2025_05_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, 'pht': 3726}}" where mtr_portfolio_id = 22948827 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22948827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573871, 0.04315007547678833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_15-05-2025_05_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22949170 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857528, 'mtr_portfolio_id': 22949170, 'created_at': datetime.datetime(2025, 5, 15, 5, 41, 57), 'result': '0.030428824676329902', 'result_long': None, 'result_double': None}] Qualite : 0.030428824676329902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22949170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_15-05-2025_05_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22949170 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_15-05-2025_05_42_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, 'pht': 3726}}" where mtr_portfolio_id = 22949170 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22949170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573872, 0.030428824676329902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_15-05-2025_05_42_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22949616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857529, 'mtr_portfolio_id': 22949616, 'created_at': datetime.datetime(2025, 5, 15, 5, 42, 28), 'result': '0.057821987938050344', 'result_long': None, 'result_double': None}] Qualite : 0.057821987938050344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22949616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_15-05-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22949616 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_15-05-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949628, 'pht': 3726}}" where mtr_portfolio_id = 22949616 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22949616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573873, 0.057821987938050344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_15-05-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22950052 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857530, 'mtr_portfolio_id': 22950052, 'created_at': datetime.datetime(2025, 5, 15, 5, 42, 58), 'result': '0.048520356348323454', 'result_long': None, 'result_double': None}] Qualite : 0.048520356348323454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22950052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950052_15-05-2025_05_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22950052 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950052_15-05-2025_05_43_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950090, 'pht': 3726}}" where mtr_portfolio_id = 22950052 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22950052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573874, 0.048520356348323454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950052_15-05-2025_05_43_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950090, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22950465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857531, 'mtr_portfolio_id': 22950465, 'created_at': datetime.datetime(2025, 5, 15, 5, 43, 29), 'result': '0.0599378592461905', 'result_long': None, 'result_double': None}] Qualite : 0.0599378592461905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22950465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950465_15-05-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22950465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950465_15-05-2025_05_43_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950491, 'pht': 3726}}" where mtr_portfolio_id = 22950465 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22950465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573875, 0.0599378592461905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950465_15-05-2025_05_43_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22950481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22950482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22950484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22950485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22950486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22950488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22950490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22950491, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22950919 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857532, 'mtr_portfolio_id': 22950919, 'created_at': datetime.datetime(2025, 5, 15, 5, 44, 1), 'result': '0.0755095885978364', 'result_long': None, 'result_double': None}] Qualite : 0.0755095885978364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22950919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950919_15-05-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22950919 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950919_15-05-2025_05_44_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22951000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22951001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22951002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22951003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22951004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22951005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22951006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22951007, 'pht': 3726}}" where mtr_portfolio_id = 22950919 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22950919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573876, 0.0755095885978364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22950919_15-05-2025_05_44_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22950996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22950997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22950998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22950999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22951000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22951001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22951002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22951003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22951004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22951005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22951006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22951007, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22952363 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857533, 'mtr_portfolio_id': 22952363, 'created_at': datetime.datetime(2025, 5, 15, 5, 44, 58), 'result': '0.0640778613908616', 'result_long': None, 'result_double': None}] Qualite : 0.0640778613908616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22952363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_15-05-2025_05_45_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22952363 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_15-05-2025_05_45_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, 'pht': 3726}}" where mtr_portfolio_id = 22952363 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22952363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573877, 0.0640778613908616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_15-05-2025_05_45_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22952585 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857534, 'mtr_portfolio_id': 22952585, 'created_at': datetime.datetime(2025, 5, 15, 5, 45, 29), 'result': '0.05287649597433125', 'result_long': None, 'result_double': None}] Qualite : 0.05287649597433125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22952585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_15-05-2025_05_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22952585 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_15-05-2025_05_45_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, 'pht': 3726}}" where mtr_portfolio_id = 22952585 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22952585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573878, 0.05287649597433125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_15-05-2025_05_45_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22953062 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857535, 'mtr_portfolio_id': 22953062, 'created_at': datetime.datetime(2025, 5, 15, 5, 45, 58), 'result': '0.05938318383262952', 'result_long': None, 'result_double': None}] Qualite : 0.05938318383262952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22953062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_15-05-2025_05_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22953062 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_15-05-2025_05_46_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, 'pht': 3726}}" where mtr_portfolio_id = 22953062 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573879, 0.05938318383262952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_15-05-2025_05_46_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22953747 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857536, 'mtr_portfolio_id': 22953747, 'created_at': datetime.datetime(2025, 5, 15, 5, 46, 30), 'result': '0.05579770206131735', 'result_long': None, 'result_double': None}] Qualite : 0.05579770206131735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22953747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_15-05-2025_05_46_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22953747 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_15-05-2025_05_46_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, 'pht': 3726}}" where mtr_portfolio_id = 22953747 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573880, 0.05579770206131735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_15-05-2025_05_46_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22954655 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857537, 'mtr_portfolio_id': 22954655, 'created_at': datetime.datetime(2025, 5, 15, 5, 47, 29), 'result': '0.056859619539025984', 'result_long': None, 'result_double': None}] Qualite : 0.056859619539025984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22954655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954655_15-05-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22954655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954655_15-05-2025_05_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22954670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22954671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22954672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22954673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22954674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22954675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22954676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22954677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22954678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22954679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22954680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22954681, 'pht': 3726}}" where mtr_portfolio_id = 22954655 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22954655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573881, 0.056859619539025984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954655_15-05-2025_05_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22954670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22954671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22954672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22954673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22954674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22954675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22954676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22954677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22954678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22954679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22954680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22954681, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22954977 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857538, 'mtr_portfolio_id': 22954977, 'created_at': datetime.datetime(2025, 5, 15, 5, 47, 59), 'result': '0.048768957850302705', 'result_long': None, 'result_double': None}] Qualite : 0.048768957850302705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22954977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954977_15-05-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22954977 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954977_15-05-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22955006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955017, 'pht': 3726}}" where mtr_portfolio_id = 22954977 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22954977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573882, 0.048768957850302705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22954977_15-05-2025_05_48_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22955006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955017, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22955774 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857539, 'mtr_portfolio_id': 22955774, 'created_at': datetime.datetime(2025, 5, 15, 5, 48, 30), 'result': '0.02591642921782878', 'result_long': None, 'result_double': None}] Qualite : 0.02591642921782878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22955774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_15-05-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22955774 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_15-05-2025_05_48_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, 'pht': 3726}}" where mtr_portfolio_id = 22955774 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22955774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573883, 0.02591642921782878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22955774_15-05-2025_05_48_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22955829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22955830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22955831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22955832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22955833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22955834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22955835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22955836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22955837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22955838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22955839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22955841, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22956668 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857540, 'mtr_portfolio_id': 22956668, 'created_at': datetime.datetime(2025, 5, 15, 5, 49, 29), 'result': '0.033936301235292565', 'result_long': None, 'result_double': None}] Qualite : 0.033936301235292565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22956668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_15-05-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22956668 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_15-05-2025_05_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, 'pht': 3726}}" where mtr_portfolio_id = 22956668 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22956668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573884, 0.033936301235292565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22956668_15-05-2025_05_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22956707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22956708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22956709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22956710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22956711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22956712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22956713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22956714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22956715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22956716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22956717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22956718, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22957362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857541, 'mtr_portfolio_id': 22957362, 'created_at': datetime.datetime(2025, 5, 15, 5, 49, 59), 'result': '0.041798852409405424', 'result_long': None, 'result_double': None}] Qualite : 0.041798852409405424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22957362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_15-05-2025_05_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22957362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_15-05-2025_05_50_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, 'pht': 3726}}" where mtr_portfolio_id = 22957362 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22957362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573885, 0.041798852409405424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22957362_15-05-2025_05_50_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22957436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22957437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22957438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22957439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22957440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22957441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22957442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22957443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22957444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22957445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22957446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22957447, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22958312 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857542, 'mtr_portfolio_id': 22958312, 'created_at': datetime.datetime(2025, 5, 15, 5, 50, 58), 'result': '0.047160032071105425', 'result_long': None, 'result_double': None}] Qualite : 0.047160032071105425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22958312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958312_15-05-2025_05_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22958312 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958312_15-05-2025_05_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958449, 'pht': 3726}}" where mtr_portfolio_id = 22958312 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22958312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573886, 0.047160032071105425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958312_15-05-2025_05_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958449, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22958946 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857543, 'mtr_portfolio_id': 22958946, 'created_at': datetime.datetime(2025, 5, 15, 5, 51, 28), 'result': '0.03459121596206473', 'result_long': None, 'result_double': None}] Qualite : 0.03459121596206473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22958946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958946_15-05-2025_05_51_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22958946 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958946_15-05-2025_05_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958972, 'pht': 3726}}" where mtr_portfolio_id = 22958946 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22958946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573887, 0.03459121596206473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22958946_15-05-2025_05_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22958961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22958962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22958963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22958964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22958965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22958966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22958967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22958968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22958969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22958970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22958971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22958972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22962740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857544, 'mtr_portfolio_id': 22962740, 'created_at': datetime.datetime(2025, 5, 15, 5, 51, 59), 'result': '0.01893263833383947', 'result_long': None, 'result_double': None}] Qualite : 0.01893263833383947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22962740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22962740_15-05-2025_05_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22962740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22962740_15-05-2025_05_52_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22962744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22962745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22962746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22962747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22962748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22962749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22962750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22962751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22962752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22962753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22962754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22962755, 'pht': 3726}}" where mtr_portfolio_id = 22962740 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22962740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573888, 0.01893263833383947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22962740_15-05-2025_05_52_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22962744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22962745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22962746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22962747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22962748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22962749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22962750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22962751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22962752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22962753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22962754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22962755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22963704 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857545, 'mtr_portfolio_id': 22963704, 'created_at': datetime.datetime(2025, 5, 15, 5, 52, 28), 'result': '0.03960897496293761', 'result_long': None, 'result_double': None}] Qualite : 0.03960897496293761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22963704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22963704_15-05-2025_05_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22963704 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22963704_15-05-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22963737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22963738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22963740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22963741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22963742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22963744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22963745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22963746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22963748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22963749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22963750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22963752, 'pht': 3726}}" where mtr_portfolio_id = 22963704 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22963704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573889, 0.03960897496293761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22963704_15-05-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22963737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22963738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22963740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22963741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22963742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22963744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22963745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22963746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22963748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22963749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22963750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22963752, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22964232 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857546, 'mtr_portfolio_id': 22964232, 'created_at': datetime.datetime(2025, 5, 15, 5, 53, 28), 'result': '0.03734842241551445', 'result_long': None, 'result_double': None}] Qualite : 0.03734842241551445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22964232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964232_15-05-2025_05_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22964232 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964232_15-05-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22964256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964267, 'pht': 3726}}" where mtr_portfolio_id = 22964232 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22964232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573890, 0.03734842241551445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964232_15-05-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22964256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964267, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22964933 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857547, 'mtr_portfolio_id': 22964933, 'created_at': datetime.datetime(2025, 5, 15, 5, 53, 59), 'result': '0.05459281234885037', 'result_long': None, 'result_double': None}] Qualite : 0.05459281234885037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22964933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964933_15-05-2025_05_54_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22964933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964933_15-05-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22964949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964951, 'pht': 3726}}" where mtr_portfolio_id = 22964933 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22964933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573891, 0.05459281234885037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22964933_15-05-2025_05_54_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22964940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22964941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22964942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22964943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22964944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22964945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22964946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22964947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22964948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22964949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22964950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22964951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22965742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857548, 'mtr_portfolio_id': 22965742, 'created_at': datetime.datetime(2025, 5, 15, 5, 54, 31), 'result': '0.04559397571378633', 'result_long': None, 'result_double': None}] Qualite : 0.04559397571378633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22965742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22965742_15-05-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22965742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22965742_15-05-2025_05_54_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22965822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22965823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22965824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22965825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22965826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22965827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22965828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22965829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22965830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22965831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22965832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22965833, 'pht': 3726}}" where mtr_portfolio_id = 22965742 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22965742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573892, 0.04559397571378633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22965742_15-05-2025_05_54_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22965822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22965823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22965824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22965825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22965826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22965827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22965828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22965829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22965830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22965831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22965832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22965833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22966668 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857549, 'mtr_portfolio_id': 22966668, 'created_at': datetime.datetime(2025, 5, 15, 5, 55, 30), 'result': '0.046612942580901554', 'result_long': None, 'result_double': None}] Qualite : 0.046612942580901554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22966668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22966668_15-05-2025_05_55_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22966668 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22966668_15-05-2025_05_55_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22966676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22966677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22966678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22966679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22966680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22966681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22966682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22966683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22966684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22966685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22966686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22966687, 'pht': 3726}}" where mtr_portfolio_id = 22966668 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22966668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573893, 0.046612942580901554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22966668_15-05-2025_05_55_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22966676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22966677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22966678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22966679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22966680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22966681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22966682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22966683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22966684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22966685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22966686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22966687, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22967453 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857550, 'mtr_portfolio_id': 22967453, 'created_at': datetime.datetime(2025, 5, 15, 5, 55, 59), 'result': '0.044975950675879055', 'result_long': None, 'result_double': None}] Qualite : 0.044975950675879055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22967453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22967453_15-05-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22967453 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22967453_15-05-2025_05_56_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22967521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22967522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22967523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22967524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22967525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22967526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22967527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22967528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22967531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22967532, 'pht': 3726}}" where mtr_portfolio_id = 22967453 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22967453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573894, 0.044975950675879055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22967453_15-05-2025_05_56_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22967521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22967522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22967523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22967524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22967525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22967526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22967527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22967528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22967531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22967532, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22968287 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857551, 'mtr_portfolio_id': 22968287, 'created_at': datetime.datetime(2025, 5, 15, 5, 56, 30), 'result': '0.06502270972667507', 'result_long': None, 'result_double': None}] Qualite : 0.06502270972667507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22968287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22968287_15-05-2025_05_56_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22968287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22968287_15-05-2025_05_56_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22968304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22968305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22968306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22968307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22968308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22968309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22968310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22968311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22968312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22968313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22968314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22968315, 'pht': 3726}}" where mtr_portfolio_id = 22968287 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22968287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573895, 0.06502270972667507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22968287_15-05-2025_05_56_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22968304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22968305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22968306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22968307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22968308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22968309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22968310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22968311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22968312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22968313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22968314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22968315, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22969135 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857552, 'mtr_portfolio_id': 22969135, 'created_at': datetime.datetime(2025, 5, 15, 5, 56, 58), 'result': '0.035659113226306265', 'result_long': None, 'result_double': None}] Qualite : 0.035659113226306265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22969135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969135_15-05-2025_05_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22969135 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969220, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969135_15-05-2025_05_57_00.pdf'}" where mtr_portfolio_id = 22969135 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22969135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573896, 0.035659113226306265, "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969220, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969135_15-05-2025_05_57_00.pdf'}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22969729 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857553, 'mtr_portfolio_id': 22969729, 'created_at': datetime.datetime(2025, 5, 15, 5, 57, 29), 'result': '0.05872220719424746', 'result_long': None, 'result_double': None}] Qualite : 0.05872220719424746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22969729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969729_15-05-2025_05_57_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22969729 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969729_15-05-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969759, 'pht': 3726}}" where mtr_portfolio_id = 22969729 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22969729 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573897, 0.05872220719424746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22969729_15-05-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22969748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22969749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22969750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22969751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22969752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22969753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22969754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22969755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22969756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22969757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22969758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22969759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22970336 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 = 22970336 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 = 22970336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22970336 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 = 22970336 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 = 22970336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970336_15-05-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22970336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970336_15-05-2025_05_58_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22970373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22970374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22970375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22970376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22970377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22970378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22970379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22970380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22970381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22970382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22970383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22970384, 'pht': 3726}}" where mtr_portfolio_id = 22970336 and dashboard_run_id = 1814888 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22970772 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857555, 'mtr_portfolio_id': 22970772, 'created_at': datetime.datetime(2025, 5, 15, 5, 58, 31), 'result': '0.07815977622691804', 'result_long': None, 'result_double': None}] Qualite : 0.07815977622691804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22970772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970772_15-05-2025_05_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22970772 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970772_15-05-2025_05_58_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22970793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22970794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22970795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22970796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22970797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22970798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22970799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22970800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22970801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22970802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22970803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22970804, 'pht': 3726}}" where mtr_portfolio_id = 22970772 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22970772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573899, 0.07815977622691804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22970772_15-05-2025_05_58_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22970793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22970794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22970795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22970796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22970797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22970798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22970799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22970800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22970801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22970802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22970803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22970804, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22971458 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857556, 'mtr_portfolio_id': 22971458, 'created_at': datetime.datetime(2025, 5, 15, 5, 59, 27), 'result': '0.033092273792554444', 'result_long': None, 'result_double': None}] Qualite : 0.033092273792554444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22971458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_15-05-2025_05_59_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22971458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_15-05-2025_05_59_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971486, 'pht': 3726}}" where mtr_portfolio_id = 22971458 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22971458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573900, 0.033092273792554444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971458_15-05-2025_05_59_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971486, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22971781 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2851615, 'mtr_portfolio_id': 22971781, 'created_at': datetime.datetime(2025, 5, 14, 17, 34, 28), 'result': '0.026145763618794022', 'result_long': None, 'result_double': None}] Qualite : 0.026145763618794022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22971781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971781_14-05-2025_17_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22971781 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971781_14-05-2025_17_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971810, 'pht': 3726}}" where mtr_portfolio_id = 22971781 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22971781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573901, 0.026145763618794022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22971781_14-05-2025_17_34_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22971799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22971800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22971801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22971802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22971803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22971804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22971805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22971806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22971807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22971808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22971809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22971810, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22973918 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852315, 'mtr_portfolio_id': 22973918, 'created_at': datetime.datetime(2025, 5, 14, 18, 16, 59), 'result': '0.05333375845187493', 'result_long': None, 'result_double': None}] Qualite : 0.05333375845187493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22973918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22973918_14-05-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22973918 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22973918_14-05-2025_18_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22973925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22973927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22973928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22973929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22973930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22973931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22973932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22973933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22973934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22973935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22973936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22973937, 'pht': 3726}}" where mtr_portfolio_id = 22973918 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22973918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573902, 0.05333375845187493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22973918_14-05-2025_18_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22973925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22973927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22973928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22973929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22973930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22973931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22973932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22973933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22973934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22973935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22973936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22973937, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22974968 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852534, 'mtr_portfolio_id': 22974968, 'created_at': datetime.datetime(2025, 5, 14, 18, 46, 58), 'result': '0.0553507673140117', 'result_long': None, 'result_double': None}] Qualite : 0.0553507673140117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22974968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22974968_14-05-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22974968 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22974968_14-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22974976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22974977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22974978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22974979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22974980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22974981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22974982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22974983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22974984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22974985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22974986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22974987, 'pht': 3726}}" where mtr_portfolio_id = 22974968 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22974968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573903, 0.0553507673140117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22974968_14-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22974976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22974977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22974978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22974979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22974980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22974981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22974982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22974983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22974984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22974985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22974986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22974987, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22975448 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852618, 'mtr_portfolio_id': 22975448, 'created_at': datetime.datetime(2025, 5, 14, 19, 4, 59), 'result': '0.05254138476567912', 'result_long': None, 'result_double': None}] Qualite : 0.05254138476567912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22975448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975448_14-05-2025_19_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22975448 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975448_14-05-2025_19_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22975455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22975456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22975457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22975458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22975459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22975460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22975461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22975462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22975463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22975464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22975465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22975466, 'pht': 3726}}" where mtr_portfolio_id = 22975448 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22975448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573904, 0.05254138476567912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975448_14-05-2025_19_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22975455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22975456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22975457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22975458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22975459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22975460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22975461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22975462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22975463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22975464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22975465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22975466, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22975977 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852748, 'mtr_portfolio_id': 22975977, 'created_at': datetime.datetime(2025, 5, 14, 19, 17, 28), 'result': '0.04566419850421535', 'result_long': None, 'result_double': None}] Qualite : 0.04566419850421535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22975977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975977_14-05-2025_19_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22975977 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975977_14-05-2025_19_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976035, 'pht': 3726}}" where mtr_portfolio_id = 22975977 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22975977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573905, 0.04566419850421535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22975977_14-05-2025_19_17_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976035, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22976406 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852885, 'mtr_portfolio_id': 22976406, 'created_at': datetime.datetime(2025, 5, 14, 19, 32, 59), 'result': '0.03632085811030235', 'result_long': None, 'result_double': None}] Qualite : 0.03632085811030235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22976406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976406_14-05-2025_19_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22976406 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976406_14-05-2025_19_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22976410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976421, 'pht': 3726}}" where mtr_portfolio_id = 22976406 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22976406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573906, 0.03632085811030235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976406_14-05-2025_19_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22976410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22976420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976421, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22976844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2852984, 'mtr_portfolio_id': 22976844, 'created_at': datetime.datetime(2025, 5, 14, 19, 48, 58), 'result': '0.02248323142464015', 'result_long': None, 'result_double': None}] Qualite : 0.02248323142464015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22976844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976844_14-05-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22976844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976844_14-05-2025_19_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22976936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976948, 'pht': 3726}}" where mtr_portfolio_id = 22976844 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22976844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573907, 0.02248323142464015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22976844_14-05-2025_19_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22976936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22976937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22976938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22976939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22976940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22976941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22976942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22976943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22976944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22976946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22976947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22976948, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22977577 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2853253, 'mtr_portfolio_id': 22977577, 'created_at': datetime.datetime(2025, 5, 14, 20, 2, 57), 'result': '0.07622712428530339', 'result_long': None, 'result_double': None}] Qualite : 0.07622712428530339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22977577 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22977577_14-05-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22977577 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22977577_14-05-2025_20_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22977625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22977626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22977627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22977628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22977630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22977631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22977632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22977633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22977634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22977636, 'pht': 3726}}" where mtr_portfolio_id = 22977577 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22977577 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573908, 0.07622712428530339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22977577_14-05-2025_20_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22977625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22977626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22977627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22977628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22977630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22977631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22977632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22977633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22977634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22977636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22978253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2853451, 'mtr_portfolio_id': 22978253, 'created_at': datetime.datetime(2025, 5, 14, 20, 16, 58), 'result': '0.01209043838154224', 'result_long': None, 'result_double': None}] Qualite : 0.01209043838154224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22978253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22978253_14-05-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22978253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22978253_14-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22978297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22978298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22978299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22978300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22978301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22978302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22978303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22978304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22978305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22978306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22978308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22978309, 'pht': 3726}}" where mtr_portfolio_id = 22978253 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22978253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573909, 0.01209043838154224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22978253_14-05-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22978297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22978298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22978299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22978300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22978301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22978302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22978303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22978304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22978305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22978306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22978308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22978309, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22979051 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2853616, 'mtr_portfolio_id': 22979051, 'created_at': datetime.datetime(2025, 5, 14, 20, 32, 29), 'result': '0.06284477700551484', 'result_long': None, 'result_double': None}] Qualite : 0.06284477700551484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22979051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979051_14-05-2025_20_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22979051 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979051_14-05-2025_20_32_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22979092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979094, 'pht': 3726}}" where mtr_portfolio_id = 22979051 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22979051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573910, 0.06284477700551484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979051_14-05-2025_20_32_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22979092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22979674 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2853880, 'mtr_portfolio_id': 22979674, 'created_at': datetime.datetime(2025, 5, 14, 21, 6, 58), 'result': '0.028085207562369326', 'result_long': None, 'result_double': None}] Qualite : 0.028085207562369326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22979674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979674_14-05-2025_21_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22979674 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979674_14-05-2025_21_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22979688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979700, 'pht': 3726}}" where mtr_portfolio_id = 22979674 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22979674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573911, 0.028085207562369326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22979674_14-05-2025_21_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22979688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22979689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22979690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22979691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22979692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22979693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22979694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22979695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22979696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22979697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22979699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22979700, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22980730 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2854286, 'mtr_portfolio_id': 22980730, 'created_at': datetime.datetime(2025, 5, 14, 21, 19), 'result': '0.030726953558613216', 'result_long': None, 'result_double': None}] Qualite : 0.030726953558613216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22980730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22980730_14-05-2025_21_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22980730 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22980730_14-05-2025_21_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22980782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22980783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22980784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22980785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22980786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22980787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22980788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22980789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22980790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22980791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22980792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22980793, 'pht': 3726}}" where mtr_portfolio_id = 22980730 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22980730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573912, 0.030726953558613216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22980730_14-05-2025_21_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22980782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22980783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22980784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22980785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22980786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22980787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22980788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22980789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22980790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22980791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22980792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22980793, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22981091 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2854385, 'mtr_portfolio_id': 22981091, 'created_at': datetime.datetime(2025, 5, 14, 21, 32, 59), 'result': '0.02959208015930433', 'result_long': None, 'result_double': None}] Qualite : 0.02959208015930433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22981091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981091_14-05-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22981091 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981091_14-05-2025_21_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981118, 'pht': 3726}}" where mtr_portfolio_id = 22981091 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22981091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573913, 0.02959208015930433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981091_14-05-2025_21_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981118, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22981409 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2854498, 'mtr_portfolio_id': 22981409, 'created_at': datetime.datetime(2025, 5, 14, 21, 50, 56), 'result': '0.03239026893266957', 'result_long': None, 'result_double': None}] Qualite : 0.03239026893266957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22981409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981409_14-05-2025_21_50_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22981409 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981409_14-05-2025_21_50_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981446, 'pht': 3726}}" where mtr_portfolio_id = 22981409 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22981409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573914, 0.03239026893266957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22981409_14-05-2025_21_50_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22981433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22981435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22981436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22981437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22981438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22981439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22981440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22981442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22981443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22981444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22981445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22981446, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22982000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2854610, 'mtr_portfolio_id': 22982000, 'created_at': datetime.datetime(2025, 5, 14, 22, 3, 30), 'result': '0.05360566505039001', 'result_long': None, 'result_double': None}] Qualite : 0.05360566505039001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22982000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982000_14-05-2025_22_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22982000 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982000_14-05-2025_22_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982056, 'pht': 3726}}" where mtr_portfolio_id = 22982000 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22982000 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573915, 0.05360566505039001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982000_14-05-2025_22_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982056, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22982544 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2854829, 'mtr_portfolio_id': 22982544, 'created_at': datetime.datetime(2025, 5, 14, 22, 17), 'result': '0.0773658440994105', 'result_long': None, 'result_double': None}] Qualite : 0.0773658440994105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22982544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982544_14-05-2025_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22982544 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982544_14-05-2025_22_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982580, 'pht': 3726}}" where mtr_portfolio_id = 22982544 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22982544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573916, 0.0773658440994105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22982544_14-05-2025_22_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22982568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22982569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22982571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22982572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22982573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22982574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22982575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22982576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22982577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22982578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22982579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22982580, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22983615 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2855052, 'mtr_portfolio_id': 22983615, 'created_at': datetime.datetime(2025, 5, 14, 22, 30, 58), 'result': '0.07954666493013751', 'result_long': None, 'result_double': None}] Qualite : 0.07954666493013751 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22983615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22983615_14-05-2025_22_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22983615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22983615_14-05-2025_22_30_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22983628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22983629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22983630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22983631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22983632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22983633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22983634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22983635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22983636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22983637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22983638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22983639, 'pht': 3726}}" where mtr_portfolio_id = 22983615 and dashboard_run_id = 1814888 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22983615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10573917, 0.07954666493013751, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22983615_14-05-2025_22_30_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22983628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22983629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22983630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22983631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22983632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22983633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22983634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22983635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22983636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22983637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22983638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22983639, '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 (22945509,22945880,22945987,22946016,22946286,22946489,22946811,22947229,22947610,22947885,22948351,22948827,22949170,22949616,22950052,22950465,22950919,22952363,22952585,22953062,22953747,22954655,22954977,22955774,22956668,22957362,22958312,22958946,22962740,22963704,22964232,22964933,22965742,22966668,22967453,22968287,22969135,22969729,22970336,22970772,22971458,22971781,22973918,22974968,22975448,22975977,22976406,22976844,22977577,22978253,22979051,22979674,22980730,22981091,22981409,22982000,22982544,22983615) result : ((1358087078,), (1358087106,), (1358088095,), (1358088463,), (1358088467,), (1358088468,), (1358088775,), (1358089999,), (1358092462,), (1358092490,), (1358092514,), (1358092544,), (1358092547,), (1358092549,), (1358092598,), (1358092626,), (1358092671,), (1358092674,), (1358092713,), (1358092715,), (1358092737,), (1358092821,), (1358092980,), (1358093097,), (1358093098,), (1358093099,), (1358093124,), (1358093127,), (1358093133,), (1358093134,), (1358093156,), (1358093159,), (1358093162,), (1358093164,), (1358093181,), (1358093183,), (1358093185,), (1358093208,), (1358093240,), (1358093243,), (1358093246,), (1358093254,), (1358093315,), (1358093312,), (1358093342,), (1358093343,), (1358093366,), (1358093368,), (1358093369,), (1358093370,), (1358093371,), (1358093373,), (1358093396,), (1358093398,), (1358093399,), (1358093400,), (1358093401,), (1358093403,), (1358093427,), (1358093430,), (1358093432,), (1358093433,), (1358093436,), (1358093456,), (1358093458,), (1358093459,), (1358093460,), (1358093461,), (1358093463,), (1358093480,), (1358093482,), (1358093485,), (1358093493,), (1358093495,), (1358093497,), (1358093517,), (1358093520,), (1358093528,), (1358093546,), (1358093550,), (1358093552,), (1358093554,), (1358093557,), (1358093575,), (1358093579,), (1358093581,), (1358093583,), (1358093584,), (1358093587,), (1358093605,), (1358093613,), (1358093615,), (1358093634,), (1358093637,), (1358093639,), (1358093641,), (1358093644,), (1358093646,), (1358093667,), (1358093669,), (1358093670,), (1358093671,), (1358093685,), (1358093687,), (1358093690,), (1358093692,), (1358093694,), (1358093696,), (1358093725,), (1358093710,), (1358093716,), (1358093720,), (1358093721,), (1358093723,), (1358093745,), (1358093748,), (1358093750,), (1358093752,), (1358093766,), (1358093767,), (1358093770,), (1358093775,), (1358093778,), (1358093780,), (1358093803,), (1358093806,), (1358093809,), (1358093812,), (1358093841,), (1358093843,), (1358093845,), (1358093848,), (1358093850,), (1358093854,), (1358093872,), (1358093875,), (1358093877,), (1358093879,), (1358093887,), (1358093893,), (1358093919,), (1358093921,), (1358093924,), (1358093925,), (1358093951,), (1358093955,), (1358093957,), (1358093959,), (1358093962,), (1358093964,), (1358093987,), (1358093989,), (1358093991,), (1358093992,), (1358094017,), (1358094020,), (1358094022,), (1358094023,), (1358094054,), (1358094067,), (1358094070,), (1358094072,), (1358094074,), (1358094076,), (1358094095,), (1358094097,), (1358094098,), (1358094099,), (1358094118,), (1358094123,), (1358094126,), (1358094127,), (1358094128,), (1358094129,), (1358094166,), (1358094170,), (1358094175,), (1358094179,), (1358094183,), (1358094222,), (1358094214,), (1358094216,), (1358094218,), (1358094220,), (1358094244,), (1358094247,), (1358094249,), (1358094250,), (1358094252,), (1358094255,), (1358094277,), (1358094283,), (1358094285,), (1358094371,), (1358094381,), (1358094383,), (1358094386,), (1358094407,), (1358094411,), (1358094414,), (1358094418,), (1358094420,), (1358094433,), (1358094439,), (1358094470,), (1358094475,), (1358094479,), (1358094480,), (1358094509,), (1358094512,), (1358094514,), (1358094517,), (1358094520,), (1358094522,), (1358094544,), (1358094547,), (1358094548,), (1358094549,), (1358094550,), (1358094552,), (1358094578,), (1358094581,), (1358094584,), (1358094619,), (1358094622,), (1358094624,), (1358094626,), (1358094629,), (1358094652,), (1358094655,), (1358094657,), (1358094659,), (1358094662,), (1358094682,), (1358094685,), (1358094686,), (1358094689,), (1358094728,), (1358094716,), (1358094718,), (1358094720,), (1358094722,), (1358094725,), (1358094747,), (1358094749,), (1358094752,), (1358094760,), (1358094794,), (1358094796,), (1358094798,), (1358094800,), (1358094803,), (1358094823,), (1358094826,), (1358094828,), (1358094830,), (1358094833,), (1358094836,), (1358094858,), (1358094861,), (1358094863,), (1358094933,), (1358094937,), (1358094939,), (1358094941,), (1358094943,), (1358094979,), (1358094983,), (1358094986,), (1358094989,), (1358095017,), (1358095020,), (1358095021,), (1358095022,), (1358095050,), (1358095055,), (1358095058,), (1358095061,), (1358095065,), (1358095089,), (1358095091,), (1358095092,), (1358095093,), (1358095096,), (1358095117,), (1358095129,), (1358095131,), (1358095134,), (1358095153,), (1358095155,), (1358095157,), (1358095160,), (1358095164,), (1358095200,), (1358095207,), (1358095209,), (1358095211,), (1358095239,), (1358095243,), (1358095245,), (1358095247,), (1358095249,), (1358095253,), (1358095276,), (1358095272,), (1358095274,), (1358095303,), (1358095310,), (1358095318,), (1358095321,), (1358095323,), (1358095327,), (1358095352,), (1358095354,), (1358095357,), (1358095360,), (1358095363,), (1358095390,), (1358095394,), (1358095445,), (1358095466,), (1358095505,), (1358095508,), (1358095509,), (1358095510,), (1358095544,), (1358095551,), (1358095556,), (1358095558,), (1358095562,), (1358095593,), (1358095595,), (1358095596,), (1358095597,), (1358095628,), (1358095632,), (1358095635,), (1358095638,), (1358095641,), (1358095646,), (1358095669,), (1358095672,), (1358095673,), (1358095674,), (1358095677,), (1358095679,), (1358095708,), (1358095715,), (1358095719,), (1358095757,), (1358095760,), (1358095762,), (1358095764,), (1358095793,), (1358095797,), (1358095801,), (1358095804,), (1358095807,), (1358095838,), (1358095841,), (1358095842,), (1358095845,), (1358095894,), (1358095877,), (1358095881,), (1358095884,), (1358095887,), (1358095891,), (1358095931,), (1358095934,), (1358095937,), (1358095942,), (1358095945,), (1358095963,), (1358095974,), (1358095978,), (1358095981,), (1358095983,), (1358096014,), (1358096016,), (1358096017,), (1358096018,), (1358096020,), (1358096050,), (1358096053,), (1358096055,), (1358096085,), (1358096087,), (1358096122,), (1358096126,), (1358096129,), (1358096132,), (1358096135,), (1358096169,), (1358096172,), (1358096174,), (1358096176,), (1358096179,), (1358096183,), (1358096220,), (1358096222,), (1358096223,), (1358096224,), (1358096254,), (1358096257,), (1358096259,), (1358096261,), (1358096264,), (1358096267,), (1358096300,), (1358096302,), (1358096303,), (1358096304,), (1358096339,), (1358096349,), (1358096351,), (1358096353,), (1358096356,), (1358096376,), (1358096378,), (1358096380,), (1358096383,), (1358096386,), (1358096389,), (1358096417,), (1358096422,), (1358096427,), (1358096487,), (1358096470,), (1358096476,), (1358096479,), (1358096483,), (1358096513,), (1358096517,), (1358096521,), (1358096554,), (1358096557,), (1358096559,), (1358096562,), (1358096565,), (1358096588,), (1358096601,), (1358096603,), (1358096607,), (1358096610,), (1358096613,), (1358096639,), (1358096643,), (1358096645,), (1358096675,), (1358096679,), (1358096683,), (1358096687,), (1358096690,), (1358096693,), (1358096717,), (1358096720,), (1358096723,), (1358096748,), (1358096751,), (1358096758,), (1358096762,), (1358096791,), (1358096794,), (1358096796,), (1358096799,), (1358096802,), (1358096807,), (1358096840,), (1358096845,), (1358096848,), (1358096851,), (1358096891,), (1358096893,), (1358096896,), (1358096900,), (1358096902,), (1358096942,), (1358096946,), (1358096949,), (1358096952,), (1358096957,), (1358096983,), (1358096987,), (1358096991,), (1358096994,), (1358096998,), (1358097026,), (1358097030,), (1358097034,), (1358097037,), (1358097073,), (1358097078,), (1358097081,), (1358097128,), (1358097118,), (1358097124,), (1358097159,), (1358097164,), (1358097168,), (1358097171,), (1358097196,), (1358097200,), (1358097204,), (1358097207,), (1358097210,), (1358097239,), (1358097242,), (1358097245,), (1358097248,), (1358097253,), (1358097257,), (1358097284,), (1358097288,), (1358097292,), (1358097326,), (1358097330,), (1358097333,), (1358097337,), (1358097341,), (1358097344,), (1358097366,), (1358097378,), (1358097381,), (1358097385,), (1358097422,), (1358097425,), (1358097427,), (1358097430,), (1358097458,), (1358097465,), (1358097469,), (1358097473,), (1358097477,), (1358097479,), (1358097529,), (1358097555,), (1358097560,), (1358097659,), (1358097663,), (1358097665,), (1358097667,), (1358097671,), (1358097696,), (1358097700,), (1358097704,), (1358097708,), (1358097711,), (1358097714,), (1358097739,), (1358097749,), (1358097755,), (1358097768,), (1358097772,), (1358097831,), (1358097837,), (1358097855,), (1358097859,), (1358097864,), (1358098164,), (1358098169,), (1358098172,), (1358098174,), (1358098203,), (1358098229,), (1358098734,), (1358098583,), (1358098676,), (1358098728,), (1358098732,), (1358098837,), (1358098841,), (1358098843,), (1358098845,), (1358098891,), (1358098915,), (1358098921,), (1358098927,), (1358098930,), (1358098962,), (1358098968,), (1358098971,), (1358098974,), (1358098976,), (1358098980,), (1358099008,), (1358099011,), (1358099015,), (1358099018,), (1358099054,), (1358099059,), (1358099062,), (1358099064,), (1358099066,), (1358099070,), (1358099097,), (1358099101,), (1358099105,), (1358099132,), (1358099135,), (1358099138,), (1358099141,), (1358099145,), (1358099177,), (1358099180,), (1358099184,), (1358099188,), (1358099192,), (1358099195,), (1358099238,), (1358099248,), (1358099250,), (1358099254,), (1358099290,), (1358099295,), (1358099298,), (1358099303,), (1358099307,), (1358099344,), (1358099348,), (1358099354,), (1358099357,), (1358099362,), (1358099404,), (1358099408,), (1358099412,), (1358099416,), (1358099499,), (1358099531,), (1358099558,), (1358099585,), (1358099619,), (1358099646,), (1358099664,), (1358099667,), (1358099672,), (1358099676,), (1358099726,), (1358099706,), (1358099711,), (1358099715,), (1358099719,), (1358099722,), (1358099748,), (1358099751,), (1358099754,), (1358099778,), (1358099781,), (1358099785,), (1358099789,), (1358099796,), (1358099807,), (1358099827,), (1358099839,), (1358099842,), (1358099846,), (1358099849,), (1358099853,), (1358099877,), (1358099882,), (1358099885,), (1358099888,), (1358099951,), (1358099960,), (1358099969,), (1358099974,), (1358100000,), (1358100005,), (1358100009,), (1358100012,), (1358100016,), (1358100020,), (1358100021,), (1358100023,), (1358100024,), (1358100032,), (1358100033,), (1358100043,), (1358100044,), (1358100047,), (1358100048,), (1358100061,), (1358100065,), (1358100068,), (1358100102,), (1358100107,), (1358100110,), (1358100113,), (1358100138,), (1358100141,), (1358100144,), (1358100147,), (1358100150,), (1358100152,), (1358100182,), (1358100185,), (1358100189,), (1358100225,), (1358100231,), (1358100234,), (1358100261,), (1358100263,), (1358100268,), (1358100281,), (1358100284,), (1358100288,), (1358100290,), (1358100293,), (1358100340,), (1358100345,), (1358100352,), (1358100357,), (1358100382,), (1358100385,), (1358100387,), (1358100392,), (1358100412,), (1358100416,), (1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,), (1358100666,), (1358100671,), (1358100675,), (1358100683,), (1358100685,), (1358100703,), (1358100706,), (1358100710,), (1358100712,), (1358100715,), (1358100759,), (1358100762,), (1358100765,), (1358100807,), (1358100810,), (1358100813,), (1358100816,), (1358100818,), (1358100878,), (1358100881,), (1358100903,), (1358100933,), (1358100949,), (1358100958,), (1358100994,), (1358100997,), (1358101000,), (1358101107,), (1358101135,), (1358101161,), (1358101186,), (1358101233,), (1358101243,), (1358101403,), (1358101325,), (1358101350,), (1358101377,), (1358101388,), (1358101399,), (1358101482,), (1358101485,), (1358101488,), (1358101609,), (1358101611,), (1358101614,), (1358101620,), (1358101623,), (1358101627,), (1358101645,), (1358101651,), (1358101670,), (1358101690,), (1358101701,), (1358101749,), (1358101753,), (1358101757,), (1358101965,), (1358101968,), (1358102011,), (1358102659,), (1358102667,), (1358102676,), (1358102731,), (1358102763,), (1358102765,), (1358102768,), (1358102771,), (1358102790,), (1358102792,), (1358102794,), (1358102809,), (1358102810,), (1358102859,), (1358102887,), (1358102889,), (1358102892,), (1358102936,), (1358102926,), (1358102929,), (1358102931,), (1358102932,), (1358102934,), (1358102963,), (1358102964,), (1358102966,), (1358102970,), (1358102973,), (1358103004,), (1358103006,), (1358103033,), (1358103035,), (1358103038,), (1358103057,), (1358103071,), (1358103078,), (1358103081,), (1358103083,), (1358103100,), (1358103103,), (1358103106,), (1358103107,), (1358103108,), (1358103127,), (1358103131,), (1358103134,), (1358103136,), (1358103137,), (1358103154,), (1358103155,), (1358103157,), (1358103178,), (1358103181,), (1358103183,), (1358103188,), (1358103194,), (1358103195,), (1358103219,), (1358103222,), (1358103224,), (1358103225,), (1358103256,), (1358103258,), (1358103292,), (1358103300,), (1358103303,), (1358103314,), (1358103317,), (1358103319,), (1358103356,), (1358103358,), (1358103360,), (1358103362,), (1358103363,), (1358103386,), (1358103390,), (1358103392,), (1358103396,), (1358103421,), (1358103423,), (1358103426,), (1358103428,), (1358103431,), (1358103535,), (1358103483,), (1358103509,), (1358104934,), (1358105497,), (1358106222,), (1358106255,), (1358106259,), (1358106263,), (1358106267,), (1358106301,), (1358106304,), (1358106307,), (1358106311,), (1358106492,), (1358106495,), (1358106498,), (1358106501,), (1358106505,), (1358106857,), (1358106885,), (1358106934,), (1358106982,), (1358107013,), (1358107041,), (1358107425,), (1358112171,), (1358112175,), (1358112179,), (1358112182,), (1358112208,), (1358112210,), (1358112212,), (1358112215,), (1358112217,), (1358112222,), (1358112246,), (1358112250,), (1358112286,), (1358112290,), (1358112293,), (1358112296,), (1358112298,), (1358112300,), (1358112324,), (1358112326,), (1358112329,), (1358112332,), (1358112335,), (1358112344,), (1358112396,), (1358112400,), (1358112404,), (1358112447,), (1358112450,), (1358112453,), (1358112456,), (1358112493,), (1358112497,), (1358112501,), (1358112508,), (1358112516,), (1358112551,), (1358112555,), (1358112825,), (1358112787,), (1358112822,), (1358112870,), (1358112878,), (1358112883,), (1358112885,), (1358112888,), (1358112920,), (1358112923,), (1358112962,), (1358112965,), (1358112968,), (1358113009,), (1358113012,), (1358113015,), (1358113018,), (1358113055,), (1358113057,), (1358113059,), (1358113084,), (1358113087,), (1358113090,), (1358113092,), (1358113095,), (1358113136,), (1358113139,), (1358113142,), (1358113178,), (1358113181,), (1358113204,), (1358113231,), (1358113260,), (1358113286,), (1358113429,), (1358113431,), (1358113463,), (1358113501,), (1358113527,), (1358114565,), (1358114617,), (1358115736,), (1358115602,), (1358115647,), (1358115677,), (1358115707,), (1358115938,), (1358115948,), (1358115951,), (1358115976,), (1358116005,), (1358116032,), (1358116390,), (1358116463,), (1358117961,), (1358118689,), (1358118693,), (1358118705,), (1358118736,), (1358118788,), (1358119180,), (1358120295,), (1358120471,), (1358120512,), (1358120516,), (1358120521,), (1358120551,), (1358120585,), (1358120820,), (1358120846,), (1358121050,), (1358121054,), (1358121058,), (1358121067,), (1358121097,), (1358121332,), (1358121335,), (1358121339,), (1358121342,), (1358121346,), (1358121453,), (1358122047,), (1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,), (1358130415,), (1358130403,), (1358130410,), (1358130739,), (1358130768,), (1358130774,), (1358130786,), (1358130795,), (1358131153,), (1358131157,), (1358131160,), (1358131163,), (1358131188,), (1358131358,), (1358131381,), (1358131410,), (1358131439,), (1358131461,), (1358131571,), (1358131579,), (1358131607,), (1358131720,), (1358131723,), (1358131726,), (1358131729,), (1358131733,), (1358131736,), (1358131768,), (1358131774,), (1358131777,), (1358131780,), (1358131785,), (1358132019,), (1358132022,), (1358132024,), (1358132028,), (1358132386,), (1358132389,), (1358132392,), (1358132395,), (1358132408,), (1358132434,), (1358132715,), (1358132720,), (1358132725,), (1358132889,), (1358132894,), (1358132898,), (1358132915,), (1358132919,), (1358133027,), (1358133035,), (1358133065,), (1358133092,), (1358133106,), (1358133118,), (1358133186,), (1358133192,), (1358133196,), (1358133443,), (1358133485,), (1358133536,), (1358133589,), (1358133643,), (1358133929,), (1358133935,), (1358133965,), (1358133992,), (1358134002,), (1358134005,), (1358134255,), (1358134203,), (1358134229,), (1358134466,), (1358134492,), (1358134502,), (1358134512,), (1358134852,), (1358134877,), (1358134905,), (1358134930,), (1358134957,), (1358134985,), (1358135103,), (1358135127,), (1358135154,), (1358135181,), (1358135331,), (1358135365,), (1358135407,), (1358135435,), (1358135467,), (1358135651,), (1358135653,), (1358135667,), (1358135697,), (1358135804,), (1358135843,), (1358135872,), (1358135874,), (1358136094,), (1358136131,), (1358136154,), (1358136164,), (1358136172,), (1358136193,), (1358136244,), (1358136248,), (1358136251,), (1358136253,), (1358136255,), (1358136264,), (1358136278,), (1358136286,), (1358136359,), (1358136387,), (1358136411,), (1358136435,), (1358136443,), (1358136447,), (1358136682,), (1358136739,), (1358136754,), (1358136759,), (1358136769,), (1358136806,), (1358137552,), (1358137624,), (1358137710,), (1358137761,), (1358137764,), (1358138328,), (1358138415,), (1358138510,), (1358138560,), (1358138579,), (1358138832,), (1358138648,), (1358138660,), (1358138687,), (1358138759,), (1358139111,), (1358139114,), (1358139152,), (1358139197,), (1358139228,), (1358139472,), (1358139485,), (1358139488,), (1358139496,), (1358139524,), (1358139576,), (1358139580,), (1358139582,), (1358139584,), (1358139587,), (1358139591,), (1358139688,), (1358139712,), (1358139733,), (1358139747,), (1358139756,), (1358139822,), (1358139826,), (1358139829,), (1358139946,), (1358139979,), (1358139999,), (1358140065,), (1358140143,), (1358140434,), (1358140437,), (1358140505,), (1358140509,), (1358140511,), (1358140514,), (1358140711,), (1358140738,), (1358140749,), (1358140753,), (1358140756,), (1358140906,), (1358140909,), (1358140911,), (1358140913,), (1358140914,), (1358141130,), (1358141157,), (1358141174,), (1358141181,), (1358141427,), (1358141431,), (1358141433,), (1358141434,), (1358141439,), (1358141465,), (1358141545,), (1358141548,), (1358141551,), (1358141554,), (1358142139,), (1358142170,), (1358142199,), (1358142228,), (1358142253,), (1358142283,), (1358142370,), (1358142372,), (1358142389,), (1358142419,), (1358142446,), (1358142474,), (1358142667,), (1358142657,), (1358142660,), (1358142663,), (1358142665,), (1358142865,), (1358142868,), (1358142869,), (1358142870,), (1358142871,), (1358142976,), (1358143003,), (1358143027,), (1358143060,), (1358143110,), (1358143545,), (1358143571,), (1358143603,), (1358143675,), (1358143755,), (1358144442,), (1358144496,), (1358144552,), (1358144624,), (1358144700,), (1358144749,), (1358145051,), (1358145160,), (1358145258,), (1358145365,), (1358145455,), (1358146027,), (1358146080,), (1358146151,), (1358146218,), (1358146289,), (1358147241,), (1358147294,), (1358147330,), (1358147375,), (1358147399,), (1358147502,), (1358147982,), (1358148008,), (1358148057,), (1358148104,), (1358148775,), (1358148841,), (1358148911,), (1358148998,), (1358149073,), (1358149155,), (1358149658,), (1358149706,), (1358149739,), (1358149763,), (1358150214,), (1358150249,), (1358150317,), (1358150386,), (1358150485,), (1358150581,), (1358150990,), (1358151057,), (1358151126,), (1358151186,), (1358151566,), (1358151581,), (1358151607,), (1358151633,), (1358151668,), (1358151718,), (1358151923,), (1358151925,), (1358151928,), (1358152253,), (1358151981,), (1358152028,), (1358152103,), (1358152176,), (1358152806,), (1358152808,), (1358152810,), (1358152812,), (1358153318,), (1358153377,), (1358153434,), (1358153486,), (1358153542,), (1358153618,), (1358153979,), (1358154024,), (1358154074,), (1358154131,), (1358154222,), (1358155013,), (1358155035,), (1358155060,), (1358155085,), (1358155109,), (1358155585,), (1358155634,), (1358155681,), (1358155706,), (1358155732,), (1358155767,), (1358155926,), (1358155929,), (1358155932,), (1358155935,), (1358156383,), (1358156418,), (1358156480,), (1358156540,), (1358156592,), (1358156641,), (1358156995,), (1358157028,), (1358157052,), (1358157092,), (1358157119,), (1358157146,), (1358157609,), (1358157633,), (1358157654,), (1358157990,), (1358158035,), (1358158088,), (1358158139,), (1358158189,), (1358158252,), (1358158585,), (1358158624,), (1358158682,), (1358158722,), (1358158747,), (1358158781,), (1358158806,), (1358158832,), (1358158856,), (1358159060,), (1358159062,), (1358159064,), (1358159066,), (1358159067,), (1358159086,), (1358159434,), (1358159447,), (1358159521,), (1358159889,), (1358159837,), (1358159863,), (1358159881,), (1358159884,), (1358159886,), (1358160287,), (1358160327,), (1358160362,), (1358160390,), (1358160419,), (1358160488,), (1358160489,), (1358160491,), (1358160493,), (1358160494,), (1358160498,), (1358160534,), (1358160537,), (1358160540,), (1358160543,), (1358160630,), (1358160633,), (1358160636,), (1358160639,), (1358160641,), (1358160645,), (1358160683,), (1358160687,), (1358160691,), (1358160695,), (1358160698,), (1358160724,), (1358160729,), (1358160733,), (1358160736,), (1358160741,), (1358160744,), (1358160768,), (1358160774,), (1358160779,), (1358160783,), (1358160817,), (1358160820,), (1358160823,), (1358160826,), (1358160828,), (1358160832,), (1358160866,), (1358160869,), (1358160875,), (1358161139,), (1358161196,), (1358161227,), (1358161257,), (1358161286,), (1358161314,), (1358161520,), (1358161621,), (1358161649,), (1358161678,), (1358161708,), (1358161848,), (1358161874,), (1358161900,), (1358161929,), (1358161955,), (1358162828,), (1358162907,), (1358162992,), (1358163067,), (1358163126,), (1358163182,), (1358163958,), (1358163794,), (1358163826,), (1358163857,), (1358163900,), (1358164259,), (1358164355,), (1358164458,), (1358164556,), (1358165236,), (1358165254,), (1358165268,), (1358165271,), (1358165273,), (1358165276,), (1358165543,), (1358165570,), (1358165617,), (1358165667,), (1358166116,), (1358166125,), (1358166151,), (1358166178,), (1358166182,), (1358166186,), (1358166518,), (1358166531,), (1358166535,), (1358166539,), (1358166918,), (1358166958,), (1358167007,), (1358167074,), (1358167126,), (1358167178,), (1358167303,), (1358167307,), (1358167316,), (1358167331,), (1358167333,), (1358167579,), (1358167583,), (1358167587,), (1358167591,), (1358167604,), (1358167755,), (1358167784,), (1358167791,), (1358167796,), (1358167800,), (1358167930,), (1358167953,), (1358167957,), (1358167961,), (1358168263,), (1358169478,), (1358200905,), (1358200950,), (1358200982,), (1358201030,), (1358201615,), (1358201655,), (1358201669,), (1358201720,), (1358202005,), (1358202611,), (1358202655,), (1358202725,), (1358203202,), (1358203214,), (1358203220,), (1358212799,), (1358213094,), (1358213098,), (1358213101,), (1358213103,), (1358213446,), (1358213475,), (1358213509,), (1358213662,), (1358213690,), (1358213719,), (1358213750,), (1358213779,), (1358214185,), (1358214281,), (1358215139,), (1358215181,), (1358215236,), (1358215326,), (1358215426,), (1358215520,), (1358216063,), (1358216091,), (1358216144,), (1358216638,), (1358216665,), (1358216722,), (1358216745,), (1358217112,), (1358217146,), (1358217173,), (1358217327,), (1358217355,), (1358217385,), (1358217414,), (1358217448,), (1358217475,), (1358217661,), (1358217668,), (1358217685,), (1358217697,), (1358217717,), (1358217720,), (1358217861,), (1358217890,), (1358217932,), (1358217946,), (1358218175,), (1358218180,), (1358218181,), (1358218187,), (1358218191,), (1358218315,), (1358218335,), (1358218338,), (1358218341,), (1358218353,), (1358218423,), (1358218427,), (1358218433,), (1358218582,), (1358218564,), (1358218568,), (1358218573,), (1358218577,), (1358218673,), (1358218706,), (1358218735,), (1358218764,), (1358218979,), (1358219008,), (1358219035,), (1358219061,), (1358219278,), (1358219297,), (1358219454,), (1358219459,), (1358219463,), (1358219466,), (1358219794,), (1358219804,), (1358219841,), (1358219873,), (1358219922,), (1358220036,), (1358220041,), (1358220046,), (1358220051,), (1358220272,), (1358220349,), (1358220426,), (1358220471,), (1358220480,), (1358220680,), (1358220710,), (1358220742,), (1358220772,), (1358221043,), (1358221066,), (1358221119,), (1358221166,), (1358221606,), (1358221638,), (1358221670,), (1358221725,), (1358221763,), (1358221985,), (1358222188,), (1358222192,), (1358222197,), (1358222201,), (1358222205,), (1358222211,), (1358222245,), (1358222250,), (1358222277,), (1358222309,), (1358222340,), (1358222596,), (1358222600,), (1358222605,), (1358222610,), (1358222687,), (1358222670,), (1358222674,), (1358222680,), (1358222684,), (1358222909,), (1358222952,), (1358222976,), (1358222982,), (1358223004,), (1358223016,), (1358223388,), (1358223468,), (1358223488,), (1358223491,), (1358223634,), (1358223638,), (1358223641,), (1358223645,), (1358223648,), (1358223693,), (1358223707,), (1358223762,), (1358223808,), (1358223832,), (1358223863,), (1358224075,), (1358224099,), (1358224111,), (1358224113,), (1358224446,), (1358224450,), (1358224498,), (1358224518,), (1358224543,), (1358224562,), (1358224637,), (1358224641,), (1358224644,), (1358224648,), (1358224652,), (1358224807,), (1358224834,), (1358224863,), (1358224889,), (1358225061,), (1358225086,), (1358225113,), (1358225140,), (1358225278,), (1358225302,), (1358225331,), (1358225357,), (1358225382,), (1358225558,), (1358225645,), (1358225671,), (1358225679,), (1358225721,), (1358227170,), (1358227247,), (1358227362,), (1358227404,), (1358227493,), (1358227496,), (1358227532,), (1358227538,), (1358227541,), (1358227543,), (1358227585,), (1358227573,), (1358227576,), (1358227581,), (1358227837,), (1358227866,), (1358227899,), (1358227969,), (1358228273,), (1358228280,), (1358228284,), (1358228288,), (1358228291,), (1358228398,), (1358228426,), (1358228453,), (1358228479,), (1358228506,), (1358228833,), (1358228870,), (1358228909,), (1358228938,), (1358228955,), (1358229109,), (1358229115,), (1358229120,), (1358229178,), (1358229236,), (1358229265,), (1358229772,), (1358229778,), (1358229783,), (1358229786,), (1358229934,), (1358229936,), (1358229939,), (1358229941,), (1358229943,), (1358229948,), (1358229983,), (1358229987,), (1358229991,), (1358229995,), (1358229999,), (1358230007,), (1358230070,), (1358230073,), (1358230076,), (1358230487,), (1358230549,), (1358230599,), (1358230650,), (1358230706,), (1358230764,), (1358231313,), (1358231405,), (1358231483,), (1358231537,), (1358231606,), (1358232138,), (1358232205,), (1358232262,), (1358232319,), (1358232862,), (1358232895,), (1358232962,), (1358233016,), (1358233094,), (1358233529,), (1358233558,), (1358233582,), (1358233588,), (1358233940,), (1358234271,), (1358234299,), (1358234462,), (1358234467,), (1358234471,), (1358234473,), (1358234478,), (1358234483,), (1358234514,), (1358234519,), (1358234522,), (1358234525,), (1358234683,), (1358234713,), (1358234740,), (1358234791,), (1358235293,), (1358235323,), (1358235370,), (1358235413,), (1358235446,), (1358235479,), (1358235552,), (1358235584,), (1358235619,), (1358235674,), (1358236141,), (1358236167,), (1358236197,), (1358236242,), (1358236288,), (1358236349,), (1358236358,), (1358236367,), (1358236396,), (1358236423,), (1358236778,), (1358236807,), (1358236825,), (1358236947,), (1358236966,), (1358236970,), (1358236977,), (1358237007,), (1358237024,), (1358237121,), (1358237129,), (1358237132,), (1358237136,), (1358237170,), (1358237174,), (1358237328,), (1358237338,), (1358237346,), (1358237426,), (1358237455,), (1358237483,), (1358237522,), (1358238003,), (1358237842,), (1358237873,), (1358237905,), (1358237938,), (1358237973,), (1358238231,), (1358238263,), (1358238293,), (1358238320,), (1358239056,), (1358239095,), (1358239125,), (1358239167,), (1358239231,), (1358239573,), (1358239577,), (1358239580,), (1358239601,), (1358239700,), (1358240162,), (1358240165,), (1358240170,), (1358240200,), (1358240349,), (1358240353,), (1358240357,), (1358240394,), (1358240398,), (1358240424,), (1358240902,), (1358240946,), (1358240977,), (1358241004,), (1358241037,), (1358241074,), (1358241416,), (1358241450,), (1358241500,), (1358241548,), (1358242271,), (1358242324,), (1358242384,), (1358242426,), (1358242474,), (1358242530,), (1358242914,), (1358242963,), (1358243676,), (1358244828,), (1358245326,), (1358245357,), (1358245391,), (1358246684,), (1358246988,), (1358247095,), (1358247223,), (1358247361,), (1358247644,), (1358247696,), (1358247729,), (1358248097,), (1358247975,), (1358247988,), (1358247992,), (1358248003,), (1358248048,), (1358248351,), (1358248370,), (1358248374,), (1358248378,), (1358248418,), (1358248422,), (1358248425,), (1358248470,), (1358248474,), (1358248479,), (1358248483,), (1358248489,), (1358248493,), (1358248520,), (1358248528,), (1358248531,), (1358248538,), (1358248545,), (1358248551,), (1358248616,), (1358248620,), (1358248623,), (1358248627,), (1358248671,), (1358248673,), (1358248677,), (1358248680,), (1358248686,), (1358248691,), (1358248966,), (1358249021,), (1358249107,), (1358249113,), (1358249117,), (1358249251,), (1358249261,), (1358249280,), (1358249285,), (1358249290,), (1358249309,), (1358249394,), (1358249423,), (1358249455,), (1358249483,), (1358249494,), (1358249530,), (1358249534,), (1358249538,), (1358249542,), (1358249570,), (1358249574,), (1358249641,), (1358250226,), (1358250282,), (1358250400,), (1358250444,), (1358250501,), (1358250801,), (1358250796,), (1358251006,), (1358251036,), (1358251086,), (1358251090,), (1358251094,), (1358251177,), (1358251181,), (1358251185,), (1358251189,), (1358251221,), (1358251231,), (1358251232,), (1358251237,), (1358251383,), (1358251416,), (1358252204,), (1358253389,), (1358253393,), (1358253397,), (1358253631,), (1358253635,), (1358253638,), (1358253674,), (1358253679,), (1358253688,), (1358253698,), (1358253702,), (1358253705,), (1358253732,), (1358253737,), (1358253745,), (1358253749,), (1358253787,), (1358253791,), (1358253848,), (1358253877,), (1358253907,), (1358253937,), (1358253964,), (1358254427,), (1358254273,), (1358254302,), (1358254332,), (1358254361,), (1358254397,), (1358254704,), (1358254736,), (1358254766,), (1358254791,), (1358254834,), (1358254839,), (1358254845,), (1358254945,), (1358255151,), (1358255206,), (1358255236,), (1358255259,), (1358255322,), (1358255352,), (1358255384,), (1358255865,), (1358255893,), (1358255920,), (1358255948,), (1358256002,), (1358256037,), (1358256066,), (1358256095,), (1358256125,), (1358256323,), (1358256326,), (1358256329,), (1358256332,), (1358256335,), (1358256370,), (1358256373,), (1358256375,), (1358256377,), (1358256410,), (1358256416,), (1358256420,), (1358256423,), (1358256479,), (1358256482,), (1358256486,), (1358256489,), (1358256492,), (1358256495,), (1358256531,), (1358256534,), (1358256536,), (1358256538,), (1358256539,), (1358256542,), (1358256591,), (1358256596,), (1358256601,), (1358256636,), (1358256640,), (1358256643,), (1358256645,), (1358256649,), (1358256683,), (1358256686,), (1358256688,), (1358256690,), (1358256693,), (1358256732,), (1358256729,), (1358256766,), (1358256769,), (1358256774,), (1358256777,), (1358256809,), (1358256813,), (1358256815,), (1358256816,), (1358256818,), (1358256850,), (1358256853,), (1358256855,), (1358256856,), (1358256887,), (1358256977,), (1358256980,), (1358256984,), (1358256988,), (1358257020,), (1358257022,), (1358257025,), (1358257028,), (1358257030,), (1358257065,), (1358257067,), (1358257069,), (1358257071,), (1358257072,), (1358257127,), (1358257130,), (1358257133,), (1358257140,), (1358257144,), (1358257165,), (1358257168,), (1358257171,), (1358257174,), (1358257205,), (1358257207,), (1358257209,), (1358257211,), (1358257213,), (1358257242,), (1358257246,), (1358257249,), (1358257252,), (1358257256,), (1358257260,), (1358257282,), (1358257286,), (1358257290,), (1358257296,), (1358257299,), (1358257351,), (1358257356,), (1358257399,), (1358257404,), (1358257409,), (1358257413,), (1358257422,), (1358257794,), (1358257797,), (1358257802,), (1358257806,), (1358257810,), (1358257842,), (1358257833,), (1358257837,), (1358257876,), (1358257881,), (1358257885,), (1358257889,), (1358257893,), (1358257923,), (1358257928,), (1358257933,), (1358257938,), (1358257970,), (1358257974,), (1358257977,), (1358257980,), (1358257983,), (1358258009,), (1358258014,), (1358258019,), (1358258058,), (1358258063,), (1358258068,), (1358258073,), (1358258113,), (1358258116,), (1358258118,), (1358258121,), (1358258127,), (1358258177,), (1358258182,), (1358258224,), (1358258228,), (1358258232,), (1358258236,), (1358258240,), (1358258244,), (1358258277,), (1358258282,), (1358258287,), (1358258291,), (1358258296,), (1358258302,), (1358258335,), (1358258340,), (1358258344,), (1358258347,), (1358258383,), (1358258387,), (1358258393,), (1358258395,), (1358258399,), (1358258402,), (1358258466,), (1358258471,), (1358258517,), (1358258524,), (1358258533,), (1358258540,), (1358258546,), (1358258551,), (1358258583,), (1358258912,), (1358258917,), (1358259121,), (1358259150,), (1358259177,), (1358259207,), (1358259234,), (1358259567,), (1358259597,), (1358259627,), (1358259657,), (1358259800,), (1358259803,), (1358259806,), (1358260098,), (1358260102,), (1358260123,), (1358260292,), (1358260297,), (1358260301,), (1358260305,), (1358260336,), (1358260338,), (1358260342,), (1358260345,), (1358260347,), (1358260351,), (1358260629,), (1358260515,), (1358260542,), (1358260569,), (1358260600,), (1358261013,), (1358261045,), (1358261529,), (1358261556,), (1358261581,), (1358261606,), (1358261644,), (1358261742,), (1358261745,), (1358261748,), (1358261773,), (1358261802,), (1358261830,), (1358262035,), (1358262040,), (1358262043,), (1358262048,), (1358262148,), (1358262151,), (1358262154,), (1358262168,), (1358262196,), (1358262215,), (1358262238,), (1358262243,), (1358262249,), (1358262254,), (1358262257,), (1358262262,), (1358262539,), (1358262548,), (1358262553,), (1358262724,), (1358262729,), (1358262733,), (1358262737,), (1358262740,), (1358262744,), (1358262765,), (1358262771,), (1358262780,), (1358262786,), (1358262790,), (1358262844,), (1358262848,), (1358262852,), (1358262856,), (1358262858,), (1358262901,), (1358262904,), (1358262908,), (1358262911,), (1358262914,), (1358262917,), (1358262942,), (1358262945,), (1358262951,), (1358262957,), (1358262964,), (1358263005,), (1358263347,), (1358263373,), (1358263413,), (1358264053,), (1358264109,), (1358264154,), (1358264182,), (1358264210,), (1358264234,), (1358264663,), (1358275226,), (1358275243,), (1358275246,), (1358275248,), (1358275284,), (1358275287,), (1358275290,), (1358275292,), (1358275296,), (1358275327,), (1358275330,), (1358275564,), (1358275577,), (1358275611,), (1358275641,), (1358275671,), (1358276023,), (1358276050,), (1358276077,), (1358276110,), (1358276139,), (1358276634,), (1358276708,), (1358276750,), (1358276779,), (1358276826,), (1358277124,), (1358277161,), (1358277209,), (1358277259,), (1358277273,), (1358277426,), (1358277442,), (1358277444,), (1358277445,), (1358277584,), (1358277641,), (1358277678,), (1358277705,), (1358277750,), (1358278012,), (1358278090,), (1358278102,), (1358278127,), (1358278131,), (1358278156,), (1358278199,), (1358278203,), (1358278206,), (1358278208,), (1358278211,), (1358278319,), (1358278330,), (1358278344,), (1358278433,), (1358278436,), (1358278437,), (1358278439,), (1358278441,), (1358278482,), (1358282961,), (1358283164,), (1358283168,), (1358283195,), (1358283207,), (1358283210,), (1358283213,), (1358283353,), (1358283357,), (1358283396,), (1358283401,), (1358283405,), (1358283409,), (1358283414,), (1358283589,), (1358283619,), (1358283650,), (1358284160,), (1358284212,), (1358284270,), (1358284322,), (1358284379,), (1358285011,), (1358285086,), (1358285138,), (1358285760,), (1358285766,), (1358285772,), (1358285778,), (1358285781,), (1358285784,), (1358286007,), (1358286359,), (1358286391,), (1358286420,), (1358286554,), (1358286576,), (1358287084,), (1358287143,), (1358287196,), (1358287245,), (1358287659,), (1358287688,), (1358287716,), (1358288095,), (1358288144,), (1358288203,), (1358288264,), (1358288318,), (1358288358,), (1358289084,), (1358289138,), (1358289188,), (1358289263,), (1358289340,), (1358289400,), (1358290055,), (1358289947,), (1358290444,), (1358290447,), (1358290450,), (1358290452,), (1358290468,), (1358290884,), (1358290914,), (1358290960,), (1358291451,), (1358291495,), (1358291522,), (1358291552,), (1358291986,), (1358292014,), (1358292064,), (1358292097,), (1358292168,), (1358292185,), (1358292444,), (1358292472,), (1358292502,), (1358292534,), (1358292591,), (1358293002,), (1358293016,), (1358293031,), (1358293034,), (1358293036,), (1358293398,), (1358293558,), (1358293567,), (1358293572,), (1358293738,), (1358293764,), (1358293790,), (1358293819,), (1358293918,), (1358293921,), (1358293925,), (1358293929,), (1358293932,), (1358293936,), (1358293971,), (1358293978,), (1358293983,), (1358293987,), (1358294000,), (1358294073,), (1358294109,), (1358294159,), (1358294220,), (1358294270,), (1358295478,), (1358295539,), (1358295603,), (1358295674,), (1358295764,), (1358295856,), (1358296047,), (1358296117,), (1358296198,), (1358296259,), (1358296322,), (1358296620,), (1358296485,), (1358296552,), (1358296990,), (1358297072,), (1358297129,), (1358297192,), (1358297301,), (1358297363,), (1358297505,), (1358297555,), (1358297589,), (1358297618,), (1358297860,), (1358297891,), (1358297907,), (1358298023,), (1358298026,), (1358298029,), (1358298031,), (1358298033,), (1358298069,), (1358298072,), (1358298074,), (1358298077,), (1358298080,), (1358298082,), (1358298423,), (1358298434,), (1358298497,), (1358298500,), (1358298503,), (1358298507,), (1358298510,), (1358298514,), (1358298543,), (1358298546,), (1358298549,), (1358298554,), (1358298561,), (1358298581,), (1358298591,), (1358298596,), (1358298603,), (1358298606,), (1358298621,), (1358298625,), (1358299365,), (1358299242,), (1358299338,), (1358299700,), (1358299727,), (1358300085,), (1358300090,), (1358300093,), (1358300560,), (1358301099,), (1358301107,), (1358301122,), (1358301124,), (1358301196,), (1358301201,), (1358301202,), (1358301209,), (1358301230,), (1358301236,), (1358301240,), (1358301245,), (1358301277,), (1358301279,), (1358301280,), (1358301314,), (1358301317,), (1358301320,), (1358301323,), (1358301325,), (1358301328,), (1358301367,), (1358301370,), (1358301372,), (1358301374,), (1358301377,), (1358301490,), (1358301511,), (1358301514,), (1358301517,), (1358301520,), (1358301545,), (1358301548,), (1358301553,), (1358301613,), (1358301620,), (1358301697,), (1358301686,), (1358301689,), (1358301692,), (1358301695,), (1358301725,), (1358301727,), (1358301730,), (1358301733,), (1358301735,), (1358301784,), (1358301786,), (1358301788,), (1358301824,), (1358301827,), (1358301829,), (1358301854,), (1358301857,), (1358301866,), (1358301871,), (1358301875,), (1358301899,), (1358301905,), (1358301907,), (1358301911,), (1358301914,), (1358301954,), (1358301958,), (1358301962,), (1358302000,), (1358302010,), (1358302013,), (1358302015,), (1358302018,), (1358302022,), (1358302050,), (1358302054,), (1358302057,), (1358302058,), (1358302061,), (1358302064,), (1358302097,), (1358302099,), (1358302101,), (1358302143,), (1358302147,), (1358302151,), (1358302155,), (1358302281,), (1358302320,), (1358302351,), (1358302550,), (1358302562,), (1358302652,), (1358302683,), (1358303014,), (1358303029,), (1358303040,), (1358303235,), (1358303137,), (1358303160,), (1358303186,), (1358303212,), (1358303378,), (1358303383,), (1358303411,), (1358303421,), (1358303430,), (1358303449,), (1358303496,), (1358303499,), (1358303503,), (1358303505,), (1358303508,), (1358303512,), (1358303689,), (1358303719,), (1358304011,), (1358304013,), (1358304439,), (1358304470,), (1358304509,), (1358304558,), (1358304581,), (1358304921,), (1358304930,), (1358304942,), (1358304965,), (1358305003,), (1358305008,), (1358305010,), (1358305092,), (1358305121,), (1358305147,), (1358305421,), (1358305451,), (1358305482,), (1358305510,), (1358305523,), (1358305528,), (1358305692,), (1358305719,), (1358305724,), (1358305728,), (1358305732,), (1358305736,), (1358306020,), (1358306068,), (1358306107,), (1358306136,), (1358306656,), (1358306710,), (1358306766,), (1358306853,), (1358306931,), (1358307006,), (1358308289,), (1358308321,), (1358308370,), (1358308407,), (1358308667,), (1358308669,), (1358308749,), (1358308769,), (1358308809,), (1358308828,), (1358308875,), (1358308884,), (1358308923,), (1358308929,), (1358309270,), (1358309087,), (1358309120,), (1358309196,), (1358309759,), (1358309816,), (1358309882,), (1358309911,), (1358309945,), (1358309988,), (1358310469,), (1358310474,), (1358310477,), (1358310480,), (1358310500,), (1358310849,), (1358310904,), (1358310964,), (1358311026,), (1358311378,), (1358311435,), (1358311491,), (1358311539,), (1358311568,), (1358311733,), (1358311746,), (1358311751,), (1358311785,), (1358311790,), (1358311794,), (1358311798,), (1358311806,), (1358311814,), (1358311912,), (1358311930,), (1358311933,), (1358311952,), (1358311996,), (1358312159,), (1358312164,), (1358312167,), (1358312170,), (1358312204,), (1358312210,), (1358312215,), (1358312220,), (1358312274,), (1358312354,), (1358312387,), (1358312431,), (1358312475,), (1358312500,), (1358312616,), (1358312626,), (1358312659,), (1358312677,), (1358312681,), (1358313335,), (1358313421,), (1358313448,), (1358313482,), (1358313721,), (1358313766,), (1358313815,), (1358313854,), (1358313881,), (1358313908,), (1358314186,), (1358314195,), (1358314214,), (1358314262,), (1358314276,), (1358314374,), (1358314356,), (1358314360,), (1358314364,), (1358314369,), (1358314406,), (1358314411,), (1358314414,), (1358314416,), (1358314419,), (1358314423,), (1358314595,), (1358314624,), (1358314652,), (1358314681,), (1358314885,), (1358314889,), (1358314893,), (1358314990,), (1358315003,), (1358315005,), (1358315009,), (1358315013,), (1358315017,), (1358315042,), (1358315047,), (1358315052,), (1358315056,), (1358315060,), (1358315061,), (1358315093,), (1358315096,), (1358315099,), (1358315126,), (1358315159,), (1358315229,), (1358315283,), (1358315346,), (1358315403,), (1358315528,), (1358315560,), (1358315589,), (1358315617,), (1358315645,), (1358315913,), (1358315923,), (1358315926,), (1358316079,), (1358316105,), (1358316130,), (1358316151,), (1358316172,), (1358316265,), (1358316291,), (1358316317,), (1358316328,), (1358316377,), (1358316389,), (1358316416,), (1358316446,), (1358316473,), (1358316498,), (1358316700,), (1358316703,), (1358316706,), (1358316708,), (1358316712,), (1358316714,), (1358316762,), (1358316767,), (1358316769,), (1358316810,), (1358316806,), (1358316841,), (1358316843,), (1358316845,), (1358316847,), (1358316849,), (1358316875,), (1358316877,), (1358316880,), (1358316883,), (1358316887,), (1358316934,), (1358316936,), (1358316938,), (1358316940,), (1358316943,), (1358317046,), (1358317074,), (1358317080,), (1358317271,), (1358317314,), (1358317321,), (1358317325,), (1358317328,), (1358317332,), (1358317363,), (1358317367,), (1358317370,), (1358317372,), (1358317373,), (1358317377,), (1358317414,), (1358317428,), (1358317547,), (1358317551,), (1358317572,), (1358317601,), (1358321868,), (1358321809,), (1358322535,), (1358322613,), (1358323248,), (1358323659,), (1358323687,), (1358324071,), (1358324100,), (1358324130,), (1358324158,), (1358324478,), (1358324483,), (1358324488,), (1358324492,), (1358324512,), (1358324584,), (1358324615,), (1358324649,), (1358324681,), (1358324921,), (1358324932,), (1358324964,), (1358325144,), (1358325150,), (1358325156,), (1358325160,), (1358325193,), (1358325197,), (1358325203,), (1358325208,), (1358325213,), (1358325218,), (1358325537,), (1358325560,), (1358325569,), (1358325574,), (1358325580,), (1358325585,), (1358325813,), (1358325834,), (1358325838,), (1358325842,), (1358325980,), (1358325958,), (1358325961,), (1358325965,), (1358325970,), (1358325975,), (1358326093,), (1358326098,), (1358326103,), (1358326167,), (1358326184,), (1358326192,), (1358326195,), (1358326230,), (1358326234,), (1358326239,), (1358326244,), (1358326248,), (1358326281,), (1358326285,), (1358326288,), (1358326332,), (1358326337,), (1358326341,), (1358326344,), (1358326349,), (1358326384,), (1358326392,), (1358326396,), (1358326400,), (1358326404,), (1358326408,), (1358326452,), (1358326454,), (1358326456,), (1358326527,), (1358326531,), (1358326535,), (1358326539,), (1358326676,), (1358326689,), (1358326715,), (1358326719,), (1358326737,), (1358326743,), (1358326777,), (1358326781,), (1358326820,), (1358326825,), (1358326828,), (1358326924,), (1358327010,), (1358327142,), (1358327105,), (1358327122,), (1358327125,), (1358327174,), (1358327177,), (1358327179,), (1358327180,), (1358327183,), (1358327186,), (1358327221,), (1358327224,), (1358327230,), (1358327234,), (1358327265,), (1358327269,), (1358327273,), (1358327276,), (1358327277,), (1358327305,), (1358327308,), (1358327311,), (1358327314,), (1358327317,), (1358327319,), (1358327361,), (1358327368,), (1358327371,), (1358327455,), (1358327459,), (1358327468,), (1358327473,), (1358327477,), (1358327479,), (1358327503,), (1358327507,), (1358327510,), (1358327513,), (1358327516,), (1358327553,), (1358327556,), (1358327558,), (1358327591,), (1358327596,), (1358327600,), (1358327603,), (1358327605,), (1358327608,), (1358327894,), (1358327924,), (1358327976,), (1358328354,), (1358328356,), (1358328357,), (1358328359,), (1358328362,), (1358328365,), (1358328848,), (1358328878,), (1358328906,), (1358328923,), (1358328931,), (1358329087,), (1358329097,), (1358329102,), (1358329708,), (1358329714,), (1358329718,), (1358329724,), (1358329727,), (1358329731,), (1358329866,), (1358329839,), (1358329848,), (1358329852,), (1358329857,), (1358329861,), (1358329976,), (1358330006,), (1358330013,), (1358330164,), (1358330168,), (1358330170,), (1358330198,), (1358330249,), (1358330254,), (1358330260,), (1358330280,), (1358330282,), (1358330287,), (1358330292,), (1358330296,), (1358330299,), (1358330324,), (1358330338,), (1358330343,), (1358330347,), (1358330350,), (1358330390,), (1358330395,), (1358330401,), (1358330405,), (1358330410,), (1358330436,), (1358330476,), (1358330480,), (1358330484,), (1358330488,), (1358330515,), (1358330519,), (1358330523,), (1358330526,), (1358330529,), (1358330579,), (1358330582,), (1358330587,), (1358330592,), (1358330597,), (1358330619,), (1358330625,), (1358330629,), (1358330633,), (1358330647,), (1358330651,), (1358330718,), (1358330723,), (1358330726,), (1358330728,), (1358331533,), (1358331600,), (1358331665,), (1358331722,), (1358331777,), (1358331841,), (1358332833,), (1358332580,), (1358332656,), (1358332747,), (1358333568,), (1358333668,), (1358334358,), (1358334426,), (1358334498,), (1358334551,), (1358334604,), (1358335035,), (1358335040,), (1358335065,), (1358335070,), (1358335121,), (1358335125,), (1358335128,), (1358335131,), (1358335147,), (1358335180,), (1358335327,), (1358335358,), (1358335364,), (1358335379,), (1358335381,), (1358335447,), (1358335450,), (1358335453,), (1358335457,), (1358335460,), (1358335488,), (1358335773,), (1358335795,), (1358335799,), (1358336013,), (1358336066,), (1358336387,), (1358336419,), (1358336432,), (1358336436,), (1358336464,), (1358336473,), (1358336562,), (1358336566,), (1358336569,), (1358336572,), (1358336575,), (1358336577,), (1358336686,), (1358336725,), (1358336776,), (1358336841,), (1358337333,), (1358337361,), (1358337390,), (1358337428,), (1358337472,), (1358337505,), (1358337790,), (1358337841,), (1358337856,), (1358337866,), (1358338060,), (1358338066,), (1358338070,), (1358338074,), (1358338080,), (1358338084,), (1358338114,), (1358338111,), (1358338339,), (1358338466,), (1358338494,), (1358338503,), (1358338506,), (1358338508,), (1358338511,), (1358338558,), (1358338601,), (1358338630,), (1358338663,), (1358338901,), (1358338921,), (1358338948,), (1358338973,), (1358339155,), (1358339195,), (1358339199,), (1358339203,), (1358339207,), (1358339211,), (1358339214,), (1358339242,), (1358339245,), (1358339247,), (1358341029,), (1358341530,), (1358341555,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14052025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22971458]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] map_info['map_portfolio_photo'] : {22971458: [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912]} final : True mtd_id 4302 list_pids : [1358260629, 1358260351, 1358260347, 1358260345, 1358260342, 1358260338, 1358260336, 1358260305, 1358260301, 1358260297, 1358260292, 1358260123, 1358260102, 1358260098, 1358259806, 1358259803, 1358259800, 1358259657, 1358259627, 1358259597, 1358259567, 1358259234, 1358259207, 1358259177, 1358259150, 1358259121, 1358258917, 1358258912] Looping around the photos to save general results len do output : 1 /22971458Didn'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, '2857556') ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556') ('4302', None, None, None, None, None, None, None, '2857556') ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '22971458', 'None', None, None, None, None, '2857556'), ('4302', '22971458', '1358260629', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260351', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260347', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260345', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260342', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260338', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260336', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260305', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260301', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260297', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260292', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260123', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260102', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358260098', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259806', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259803', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259800', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259657', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259627', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259597', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259567', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259234', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259207', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259177', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259150', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358259121', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258917', None, None, None, None, None, '2857556'), ('4302', '22971458', '1358258912', None, None, None, None, None, '2857556')] time used for this insertion : 0.01984691619873047 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.185555458068848 time spend to save output : 0.020224571228027344 total time spend for step 5 : 5.205780029296875 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 (2857556) 2.72user 2.36system 0:15.16elapsed 33%CPU (0avgtext+0avgdata 168148maxresident)k 344inputs+19464outputs (2major+76888minor)pagefaults 0swaps