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 : 842724 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 (2767386) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2767386) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22476856 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2767386'] with mtr_portfolio_ids : ['22476856'] and first list_photo_ids : [] new path : /proc/842724/ Name: python3 Umask: 0002 State: R (running) Tgid: 842724 Ngid: 0 Pid: 842724 PPid: 842719 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 842724 NSpid: 842724 NSpgid: 842256 NSsid: 842256 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98304 kB VmRSS: 98304 kB RssAnon: 60184 kB RssFile: 38120 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 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: 112 nonvoluntary_ctxt_switches: 138 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '842724', 'Ngid': '0', 'Pid': '842724', 'PPid': '842719', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '842724', 'NSpid': '842724', 'NSpgid': '842256', 'NSsid': '842256', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98304 kB', 'VmRSS': '98304 kB', 'RssAnon': '60184 kB', 'RssFile': '38120 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 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': '112', 'nonvoluntary_ctxt_switches': '138'} ('datou_batch_current', '842724', '1107228', '0', '1107228', '865976', '98304', b'', 'marlene', '2767386') 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 (22476856) 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 (2767386 ) ) 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 (22476856) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353879012, 'portfolio_id': 22476856}, {'photo_id': 1353878956, 'portfolio_id': 22476856}, {'photo_id': 1353878882, 'portfolio_id': 22476856}, {'photo_id': 1353878812, 'portfolio_id': 22476856}, {'photo_id': 1353878754, 'portfolio_id': 22476856}, {'photo_id': 1353878579, 'portfolio_id': 22476856}, {'photo_id': 1353878469, 'portfolio_id': 22476856}, {'photo_id': 1353878383, 'portfolio_id': 22476856}, {'photo_id': 1353878317, 'portfolio_id': 22476856}, {'photo_id': 1353877213, 'portfolio_id': 22476856}, {'photo_id': 1353877149, 'portfolio_id': 22476856}] map_portfolio_id_photo_id: {22476856: [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149]} ##### 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.01729416847229004 #### 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 Tue Apr 29 05:35: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 (22476856) 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 : 22476856 get user id for portfolio 22476856 get sub ptf for main ptf 22476856, type 3726 and hashtags ['autre_refus', 'papier', 'mal_croppe', 'metal', 'plastique', 'flou', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22476856 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','mal_croppe','metal','plastique','flou','kraft','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette')) 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`=22476856 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','mal_croppe','metal','plastique','flou','kraft','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22476856, 'sub_port_id': 22477287, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919285, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'cartonnette': {'main_port_id': 22476856, 'sub_port_id': 22477288, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919286, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'autre_refus': {'main_port_id': 22476856, 'sub_port_id': 22477289, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919287, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'papier': {'main_port_id': 22476856, 'sub_port_id': 22477290, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919288, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'metal': {'main_port_id': 22476856, 'sub_port_id': 22477291, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919289, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'kraft': {'main_port_id': 22476856, 'sub_port_id': 22477292, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919290, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'Carton_brun': {'main_port_id': 22476856, 'sub_port_id': 22477293, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919291, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'plastique': {'main_port_id': 22476856, 'sub_port_id': 22477294, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919292, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'mal_croppe': {'main_port_id': 22476856, 'sub_port_id': 22477295, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919293, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'Carton_gris': {'main_port_id': 22476856, 'sub_port_id': 22477296, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919294, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'flou': {'main_port_id': 22476856, 'sub_port_id': 22477297, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919295, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22476856, 'sub_port_id': 22477298, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919296, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477287 , 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=22476856 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 (22477287) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477288 , 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=22476856 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 (22477288) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477289 , 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=22476856 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 (22477289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477290 , 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=22476856 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 (22477290) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477291 , 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=22476856 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 (22477291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477292 , 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=22476856 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 (22477292) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477293 , 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=22476856 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 (22477293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477294 , 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=22476856 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 (22477294) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477295 , 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=22476856 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 (22477295) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477296 , 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=22476856 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 (22477296) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477297 , 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=22476856 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 (22477297) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22477298 , 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=22476856 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 (22477298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22476856) result : ((1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22476856 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','mal_croppe','metal','plastique','flou','kraft','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette')) 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`=22476856 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','mal_croppe','metal','plastique','flou','kraft','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22476856, 'sub_port_id': 22477299, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919297, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'cartonnette': {'main_port_id': 22476856, 'sub_port_id': 22477300, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919298, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'autre_refus': {'main_port_id': 22476856, 'sub_port_id': 22477301, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919299, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'papier': {'main_port_id': 22476856, 'sub_port_id': 22477302, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919300, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'metal': {'main_port_id': 22476856, 'sub_port_id': 22477303, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919301, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'kraft': {'main_port_id': 22476856, 'sub_port_id': 22477304, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919302, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'Carton_brun': {'main_port_id': 22476856, 'sub_port_id': 22477305, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919303, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'plastique': {'main_port_id': 22476856, 'sub_port_id': 22477306, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919304, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'mal_croppe': {'main_port_id': 22476856, 'sub_port_id': 22477307, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919305, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'Carton_gris': {'main_port_id': 22476856, 'sub_port_id': 22477308, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919306, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'flou': {'main_port_id': 22476856, 'sub_port_id': 22477309, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919307, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22476856, 'sub_port_id': 22477310, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14919308, 'last_updated_at': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 29, 0, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 29, 0, 6, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477302,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477290 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477303,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477291 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477304,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22477310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22477298 lien utilise dans velours : https://www.fotonower.com/velours/22477299,22477300,22477301,22477302,22477303,22477304,22477305,22477306,22477307,22477308,22477309,22477310?tags=environnement,cartonnette,autre_refus,papier,metal,kraft,Carton_brun,plastique,mal_croppe,Carton_gris,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22476856]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] map_info['map_portfolio_photo'] : {22476856: [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149]} final : False mtd_id 4302 list_pids : [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] Looping around the photos to save general results len do output : 1 /22476856. 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, '2767386') ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22476856', "{'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298}", None, None, None, None, '2767386'), ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386')] time used for this insertion : 0.023508071899414062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3784360885620117 time spend to save output : 0.023806095123291016 total time spend for step 1 : 1.4022421836853027 step2:final Tue Apr 29 05:35: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 (22476856) 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 22476856 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353879012,1353878956,1353878882,1353878812,1353878754,1353878579,1353878469,1353878383,1353878317,1353877213,1353877149); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22476856]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} new output for save of step final : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] map_info['map_portfolio_photo'] : {22476856: [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149]} final : False mtd_id 4302 list_pids : [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] Looping around the photos to save general results len do output : 11 /1353879012.Didn't retrieve data . /1353878956.Didn't retrieve data . /1353878882.Didn't retrieve data . /1353878812.Didn't retrieve data . /1353878754.Didn't retrieve data . /1353878579.Didn't retrieve data . /1353878469.Didn't retrieve data . /1353878383.Didn't retrieve data . /1353878317.Didn't retrieve data . /1353877213.Didn't retrieve data . /1353877149.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, '2767386') ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22476856', '1353879012', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878956', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878882', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878812', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878754', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878579', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878469', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878383', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353878317', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353877213', '0.0', None, None, None, None, '2767386'), ('4302', '22476856', '1353877149', '0.0', None, None, None, None, '2767386')] time used for this insertion : 0.021569013595581055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05272793769836426 time spend to save output : 0.022121429443359375 total time spend for step 2 : 0.07484936714172363 step3:velours_tree Tue Apr 29 05:35: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 : {22476856: [{'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298}]} input_args_next_step : {22476856: ()} output_args : {22476856: [{'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298}]} args : 22476856 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 : ({'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22476856) 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([22476856]) 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.30243968963623047 time spend to save output : 6.604194641113281e-05 total time spend for step 3 : 0.3025057315826416 step4:send_mail_cod Tue Apr 29 05:35:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} input_args_next_step : {1353879012: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353879012 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878956 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878882 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878812 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878754 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878579 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878469 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878383 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353878317 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353877213 depend.output_id : 0 input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ()} output_args : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',)} args : 1353877149 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 : {22476856: [{'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298}]} input_args_next_step : {1353879012: ('0.0',), 1353878956: ('0.0',), 1353878882: ('0.0',), 1353878812: ('0.0',), 1353878754: ('0.0',), 1353878579: ('0.0',), 1353878469: ('0.0',), 1353878383: ('0.0',), 1353878317: ('0.0',), 1353877213: ('0.0',), 1353877149: ('0.0',), 22476856: ()} output_args : {22476856: [{'environnement': 22477287, 'cartonnette': 22477288, 'autre_refus': 22477289, 'papier': 22477290, 'metal': 22477291, 'kraft': 22477292, 'Carton_brun': 22477293, 'plastique': 22477294, 'mal_croppe': 22477295, 'Carton_gris': 22477296, 'flou': 22477297, 'Teint_Dans_La_Masse': 22477298}]} args : 22476856 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 :12, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22476856) 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 (1353879012,1353878956,1353878882,1353878812,1353878754,1353878579,1353878469,1353878383,1353878317,1353877213,1353877149) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353877149 begin to download photo : 1353878383 begin to download photo : 1353878754 begin to download photo : 1353878956 download finish for photo 1353878956 begin to download photo : 1353879012 download finish for photo 1353877149 begin to download photo : 1353877213 download finish for photo 1353878383 begin to download photo : 1353878469 download finish for photo 1353878754 begin to download photo : 1353878812 download finish for photo 1353878812 begin to download photo : 1353878882 download finish for photo 1353879012 download finish for photo 1353878469 begin to download photo : 1353878579 download finish for photo 1353877213 begin to download photo : 1353878317 download finish for photo 1353878579 download finish for photo 1353878882 download finish for photo 1353878317 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224772881745897728/ imagette224772891745897728/ imagette224772911745897728/ imagette224772921745897728/ imagette224772941745897728/ imagette224772951745897728/ imagette224772971745897728/ imagette224772931745897728/ imagette224772961745897728/ imagette224772981745897728/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22476856_29-04-2025_05_35_28.pdf 22477288 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=22477288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772881745897728 22477289 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=22477289 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772891745897728 22477291 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=22477291 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772911745897728 22477292 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=22477292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772921745897728 22477294 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=22477294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772941745897728 22477295 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=22477295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772951745897728 22477297 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=22477297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772971745897728 22477293 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=22477293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772931745897728 22477296 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=22477296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772961745897728 22477298 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=22477298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224772981745897728 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22476856 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22477299,22477300,22477301,22477302,22477303,22477304,22477305,22477306,22477307,22477308,22477309,22477310?tags=environnement,cartonnette,autre_refus,papier,metal,kraft,Carton_brun,plastique,mal_croppe,Carton_gris,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1353879012] : ('0.0',) no score found for photo 1353879012 We are sending mail with results at report@fotonower.com args[1353878956] : ('0.0',) no score found for photo 1353878956 We are sending mail with results at report@fotonower.com args[1353878882] : ('0.0',) no score found for photo 1353878882 We are sending mail with results at report@fotonower.com args[1353878812] : ('0.0',) no score found for photo 1353878812 We are sending mail with results at report@fotonower.com args[1353878754] : ('0.0',) no score found for photo 1353878754 We are sending mail with results at report@fotonower.com args[1353878579] : ('0.0',) no score found for photo 1353878579 We are sending mail with results at report@fotonower.com args[1353878469] : ('0.0',) no score found for photo 1353878469 We are sending mail with results at report@fotonower.com args[1353878383] : ('0.0',) no score found for photo 1353878383 We are sending mail with results at report@fotonower.com args[1353878317] : ('0.0',) no score found for photo 1353878317 We are sending mail with results at report@fotonower.com args[1353877213] : ('0.0',) no score found for photo 1353877213 We are sending mail with results at report@fotonower.com args[1353877149] : ('0.0',) no score found for photo 1353877149 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22476856 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_P22476856_29-04-2025_05_35_28.pdf results_Auto_P22476856_29-04-2025_05_35_28.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476856_29-04-2025_05_35_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','22476856','results_Auto_P22476856_29-04-2025_05_35_28.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476856_29-04-2025_05_35_28.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22476856]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] map_info['map_portfolio_photo'] : {22476856: [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149]} final : False mtd_id 4302 list_pids : [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] 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, '2767386') ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '22476856', '1353879012', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386')] time used for this insertion : 0.020547151565551758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.615929365158081 time spend to save output : 0.020790815353393555 total time spend for step 4 : 1.6367201805114746 step5:split_time_score Tue Apr 29 05:35:29 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 : ['22476856'] 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 : [('22476856',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22476856) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353878956: {'path': 'temp/1745897728_842724_1353878956_654cd03059ef06da607432ca7f338999.jpg', 'extension': 'jpg'}, 1353879012: {'path': 'temp/1745897728_842724_1353879012_6e35b55ef5627789262e30e1bf0bca81.jpg', 'extension': 'jpg'}, 1353878383: {'path': 'temp/1745897728_842724_1353878383_2670fae88f756ed99e3fa34a0b349cc5.jpg', 'extension': 'jpg'}, 1353878469: {'path': 'temp/1745897728_842724_1353878469_98a1ce608984f00b1438deab582bb206.jpg', 'extension': 'jpg'}, 1353878579: {'path': 'temp/1745897728_842724_1353878579_b43fe81364497ba6403a500ac7f33fd0.jpg', 'extension': 'jpg'}, 1353878754: {'path': 'temp/1745897728_842724_1353878754_b9ac74a2a74f7c58ceb7437bdf497ac5.jpg', 'extension': 'jpg'}, 1353878812: {'path': 'temp/1745897728_842724_1353878812_49c40d8c35b2e3c028fb88c8b52fa0ca.jpg', 'extension': 'jpg'}, 1353878882: {'path': 'temp/1745897728_842724_1353878882_1627f1a3d6f20777ebc6f92a44fac939.jpg', 'extension': 'jpg'}, 1353877149: {'path': 'temp/1745897728_842724_1353877149_46d610cd6bde5610c4f78dc87d53216e.jpg', 'extension': 'jpg'}, 1353877213: {'path': 'temp/1745897728_842724_1353877213_46724646f6679bb78cd257db37b21ef5.jpg', 'extension': 'jpg'}, 1353878317: {'path': 'temp/1745897728_842724_1353878317_7d983d3ce9ae8efde357bbedc31b1a3e.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 = 22476856; (('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 = 22476856 group by h (('06', 11),) 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=22476856 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 (22476856) 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 (22476856) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28042025 22476856 Nombre de photos uploadées : 11 / 23040 (0%) 28042025 22476856 Nombre de photos taguées (types de déchets): 0 / 11 (0%) 28042025 22476856 Nombre de photos taguées (volume) : 0 / 11 (0%) [{'photo_id': 1353879012, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6e35b55ef5627789262e30e1bf0bca81.jpg', 'username': None, 'uploaded_at': 1745834437, 'text': 'image_28042025_06_01_24_10137.jpg'}, {'photo_id': 1353878956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/654cd03059ef06da607432ca7f338999.jpg', 'username': None, 'uploaded_at': 1745834437, 'text': 'image_28042025_06_09_34_10135.jpg'}, {'photo_id': 1353878882, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1627f1a3d6f20777ebc6f92a44fac939.jpg', 'username': None, 'uploaded_at': 1745834437, 'text': 'image_28042025_06_09_44_10133.jpg'}, {'photo_id': 1353878812, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/49c40d8c35b2e3c028fb88c8b52fa0ca.jpg', 'username': None, 'uploaded_at': 1745834437, 'text': 'image_28042025_06_10_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005347728729248047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22476856, '2025-04-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1750587,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.038652896881103516 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= 1750587 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476852, 'dashboard_result_id': 10131924, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476852_29-04-2025_05_34_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477543, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476854, 'dashboard_result_id': 10131925, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476854_29-04-2025_05_34_53.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477518, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476855, 'dashboard_result_id': 10131926, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476855_29-04-2025_05_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477467, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476856, 'dashboard_result_id': 10131927, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476856_29-04-2025_00_06_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477298, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476857, 'dashboard_result_id': 10131928, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476857_29-04-2025_00_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477395, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476863, 'dashboard_result_id': 10131929, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476863_29-04-2025_00_08_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477443, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476878, 'dashboard_result_id': 10131930, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476878_29-04-2025_00_06_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477274, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476896, 'dashboard_result_id': 10131931, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476896_29-04-2025_00_05_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477226, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476898, 'dashboard_result_id': 10131932, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476898_29-04-2025_00_02_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22476924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476926, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476899, 'dashboard_result_id': 10131933, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476899_29-04-2025_00_04_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477131, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476900, 'dashboard_result_id': 10131934, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476900_29-04-2025_00_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477196, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476913, 'dashboard_result_id': 10131935, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476913_29-04-2025_00_04_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477101, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476914, 'dashboard_result_id': 10131936, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476914_29-04-2025_00_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22477005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477016, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22447695, 'dashboard_result_id': 10131937, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447695_29-04-2025_00_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447734, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22447601, 'dashboard_result_id': 10131938, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447601_28-04-2025_11_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447618, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22449052, 'dashboard_result_id': 10131939, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449052_28-04-2025_12_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449065, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22449209, 'dashboard_result_id': 10131940, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449209_28-04-2025_12_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449322, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22451062, 'dashboard_result_id': 10131941, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451062_28-04-2025_13_48_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451124, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22451421, 'dashboard_result_id': 10131942, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451421_28-04-2025_14_02_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22451449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451460, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22451813, 'dashboard_result_id': 10131943, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451813_28-04-2025_14_20_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22451817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451828, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22452592, 'dashboard_result_id': 10131944, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22452592_28-04-2025_14_32_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22452621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22452622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22452623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22452624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22452625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22452626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22452627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22452628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22452629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22452630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22452631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22452632, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22453259, 'dashboard_result_id': 10131945, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22453714, 'dashboard_result_id': 10131946, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22454148, 'dashboard_result_id': 10131947, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22454771, 'dashboard_result_id': 10131948, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22455401, 'dashboard_result_id': 10131949, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22455401_28-04-2025_15_46_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22455426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22455427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22455428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22455429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22455430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22455431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22455432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22455433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22455434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22455435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22455436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22455437, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22456046, 'dashboard_result_id': 10131950, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22456621, 'dashboard_result_id': 10131951, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22457098, 'dashboard_result_id': 10131952, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22457415, 'dashboard_result_id': 10131953, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22458137, 'dashboard_result_id': 10131954, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458137_28-04-2025_17_03_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458150, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22458367, 'dashboard_result_id': 10131955, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458367_28-04-2025_17_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458396, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22459042, 'dashboard_result_id': 10131956, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459042_28-04-2025_18_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22459077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22459078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22459079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22459081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22459082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22459083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22459084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22459085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22459086, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22459996, 'dashboard_result_id': 10131957, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22460453, 'dashboard_result_id': 10131958, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22460775, 'dashboard_result_id': 10131959, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22461545, 'dashboard_result_id': 10131960, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22462258, 'dashboard_result_id': 10131961, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462258_28-04-2025_19_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462275, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22462887, 'dashboard_result_id': 10131962, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462887_28-04-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462927, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22463379, 'dashboard_result_id': 10131963, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463379_28-04-2025_19_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22463414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22463415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22463416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22463417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22463418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22463419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22463420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22463421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22463422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22463423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22463424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22463425, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22463990, 'dashboard_result_id': 10131964, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463990_28-04-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22464015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22464016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22464017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22464018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22464019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22464020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22464021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22464022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22464023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22464024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22464025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22464026, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22465004, 'dashboard_result_id': 10131965, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465004_28-04-2025_20_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22465079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465090, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22465583, 'dashboard_result_id': 10131966, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465583_28-04-2025_20_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22465668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465670, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22466507, 'dashboard_result_id': 10131967, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22466507_28-04-2025_20_50_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22466620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22466621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22466622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22466623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22466624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22466625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22466626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22466627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22466628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22466629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22466630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22466631, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22468457, 'dashboard_result_id': 10131968, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468457_28-04-2025_21_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22468502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468506, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22468820, 'dashboard_result_id': 10131969, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468820_28-04-2025_21_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22468888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468899, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22469836, 'dashboard_result_id': 10131970, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22469836_28-04-2025_21_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22469839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22469840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22469841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22469842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22469843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22469844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22469845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22469846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22469847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22469848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22469849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22469850, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22470749, 'dashboard_result_id': 10131971, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22470749_28-04-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22470776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22470777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22470778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22470779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22470780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22470781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22470782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22470783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22470784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22470785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22470786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22470787, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22471254, 'dashboard_result_id': 10131972, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22471254_28-04-2025_22_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22471314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22471315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22471316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22471317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22471318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22471319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22471320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22471321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22471322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22471323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22471324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22471325, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22472315, 'dashboard_result_id': 10131973, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472315_28-04-2025_22_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472375, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22472922, 'dashboard_result_id': 10131974, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472922_28-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472939, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22473990, 'dashboard_result_id': 10131975, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22473990_28-04-2025_23_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22473996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22473997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22473998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22473999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474007, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22474824, 'dashboard_result_id': 10131976, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22474824_28-04-2025_23_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22474892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22474893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22474896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22474898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474901, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22475398, 'dashboard_result_id': 10131977, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22475398_28-04-2025_23_37_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22475423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22475424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22475425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22475426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22475427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22475428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22475429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22475430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22475431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22475432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22475433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22475434, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476003, 'dashboard_result_id': 10131978, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476003_28-04-2025_23_49_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22476031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476039, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1760801, 'mtr_portfolio_id': 22476414, 'dashboard_result_id': 10131979, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476414_29-04-2025_01_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22476415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476438, '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 = 22476852 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 = 22476852 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 = 22476852 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476852 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 = 22476852 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 = 22476852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476852_29-04-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476852_29-04-2025_05_34_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477543, 'pht': 3726}}" where mtr_portfolio_id = 22476852 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476854 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 = 22476854 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 = 22476854 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476854 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 = 22476854 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 = 22476854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476854_29-04-2025_05_34_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476854 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476854_29-04-2025_05_34_53.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477518, 'pht': 3726}}" where mtr_portfolio_id = 22476854 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476855 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 = 22476855 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 = 22476855 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476855 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 = 22476855 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 = 22476855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476855_29-04-2025_05_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476855 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476855_29-04-2025_05_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477467, 'pht': 3726}}" where mtr_portfolio_id = 22476855 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476856 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 = 22476856 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 = 22476856 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476856 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 = 22476856 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 = 22476856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476856_29-04-2025_05_35_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476856 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476856_29-04-2025_05_35_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477298, 'pht': 3726}}" where mtr_portfolio_id = 22476856 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476857 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 = 22476857 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 = 22476857 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476857 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 = 22476857 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 = 22476857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476857_29-04-2025_00_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476857 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476857_29-04-2025_00_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477395, 'pht': 3726}}" where mtr_portfolio_id = 22476857 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476863 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 = 22476863 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 = 22476863 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476863 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 = 22476863 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 = 22476863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476863_29-04-2025_00_08_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476863_29-04-2025_00_08_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477443, 'pht': 3726}}" where mtr_portfolio_id = 22476863 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476878 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 = 22476878 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 = 22476878 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476878 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 = 22476878 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 = 22476878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476878_29-04-2025_00_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476878_29-04-2025_00_06_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477274, 'pht': 3726}}" where mtr_portfolio_id = 22476878 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476896 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 = 22476896 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 = 22476896 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476896 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 = 22476896 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 = 22476896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476896_29-04-2025_00_05_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476896_29-04-2025_00_05_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477226, 'pht': 3726}}" where mtr_portfolio_id = 22476896 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476898 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 = 22476898 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 = 22476898 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476898 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 = 22476898 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 = 22476898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476898_29-04-2025_00_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476898 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476898_29-04-2025_00_02_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22476924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476926, 'pht': 3726}}" where mtr_portfolio_id = 22476898 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476899 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 = 22476899 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 = 22476899 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476899 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 = 22476899 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 = 22476899 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476899_29-04-2025_00_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476899 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476899_29-04-2025_00_04_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477131, 'pht': 3726}}" where mtr_portfolio_id = 22476899 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476900 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 = 22476900 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 = 22476900 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476900 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 = 22476900 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 = 22476900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476900_29-04-2025_00_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476900_29-04-2025_00_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477196, 'pht': 3726}}" where mtr_portfolio_id = 22476900 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476913 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 = 22476913 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 = 22476913 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476913 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 = 22476913 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 = 22476913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476913_29-04-2025_00_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476913_29-04-2025_00_04_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22477099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477101, 'pht': 3726}}" where mtr_portfolio_id = 22476913 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476914 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 = 22476914 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 = 22476914 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476914 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 = 22476914 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 = 22476914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476914_29-04-2025_00_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476914_29-04-2025_00_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22477005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22477006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22477007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22477008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22477009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22477010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22477011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22477012, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22477013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22477014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22477015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22477016, 'pht': 3726}}" where mtr_portfolio_id = 22476914 and dashboard_run_id = 1760801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22447695 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2763858, 'mtr_portfolio_id': 22447695, 'created_at': datetime.datetime(2025, 4, 29, 0, 3), 'result': '0.03591323070253421', 'result_long': None, 'result_double': None}] Qualite : 0.03591323070253421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22447695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447695_29-04-2025_00_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22447695 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447695_29-04-2025_00_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447734, 'pht': 3726}}" where mtr_portfolio_id = 22447695 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22447695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131937, 0.03591323070253421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447695_29-04-2025_00_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447734, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22447601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2763847, 'mtr_portfolio_id': 22447601, 'created_at': datetime.datetime(2025, 4, 28, 11, 30, 58), 'result': '0.04855226973907396', 'result_long': None, 'result_double': None}] Qualite : 0.04855226973907396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22447601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447601_28-04-2025_11_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22447601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447601_28-04-2025_11_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447618, 'pht': 3726}}" where mtr_portfolio_id = 22447601 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22447601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131938, 0.04855226973907396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22447601_28-04-2025_11_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22447607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22447608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22447609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22447610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22447611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22447612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22447613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22447614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22447615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22447616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22447617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22447618, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22449052 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2763967, 'mtr_portfolio_id': 22449052, 'created_at': datetime.datetime(2025, 4, 28, 12, 4, 58), 'result': '0.04581550100801944', 'result_long': None, 'result_double': None}] Qualite : 0.04581550100801944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22449052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449052_28-04-2025_12_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22449052 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449052_28-04-2025_12_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449065, 'pht': 3726}}" where mtr_portfolio_id = 22449052 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22449052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131939, 0.04581550100801944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449052_28-04-2025_12_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449065, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22449209 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2763978, 'mtr_portfolio_id': 22449209, 'created_at': datetime.datetime(2025, 4, 28, 12, 48, 59), 'result': '0.04185264511757148', 'result_long': None, 'result_double': None}] Qualite : 0.04185264511757148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22449209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449209_28-04-2025_12_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22449209 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449209_28-04-2025_12_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449322, 'pht': 3726}}" where mtr_portfolio_id = 22449209 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22449209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131940, 0.04185264511757148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22449209_28-04-2025_12_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22449311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22449312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22449313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22449314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22449315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22449316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22449317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22449318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22449319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22449320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22449321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22449322, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22451062 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764258, 'mtr_portfolio_id': 22451062, 'created_at': datetime.datetime(2025, 4, 28, 13, 48, 29), 'result': '0.13513462623445294', 'result_long': None, 'result_double': None}] Qualite : 0.13513462623445294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22451062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451062_28-04-2025_13_48_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22451062 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451062_28-04-2025_13_48_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451124, 'pht': 3726}}" where mtr_portfolio_id = 22451062 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22451062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131941, 0.13513462623445294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451062_28-04-2025_13_48_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451124, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22451421 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764296, 'mtr_portfolio_id': 22451421, 'created_at': datetime.datetime(2025, 4, 28, 14, 2, 28), 'result': '0.05807227511360044', 'result_long': None, 'result_double': None}] Qualite : 0.05807227511360044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22451421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451421_28-04-2025_14_02_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22451421 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451421_28-04-2025_14_02_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22451449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451460, 'pht': 3726}}" where mtr_portfolio_id = 22451421 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22451421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131942, 0.05807227511360044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451421_28-04-2025_14_02_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22451449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22451453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451460, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22451813 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764353, 'mtr_portfolio_id': 22451813, 'created_at': datetime.datetime(2025, 4, 28, 14, 20, 59), 'result': '0.05802634468751281', 'result_long': None, 'result_double': None}] Qualite : 0.05802634468751281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22451813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451813_28-04-2025_14_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22451813 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451813_28-04-2025_14_20_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22451817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451828, 'pht': 3726}}" where mtr_portfolio_id = 22451813 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22451813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131943, 0.05802634468751281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22451813_28-04-2025_14_20_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22451817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22451818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22451819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22451820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22451821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22451822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22451823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22451824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22451825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22451826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22451827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22451828, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22452592 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764411, 'mtr_portfolio_id': 22452592, 'created_at': datetime.datetime(2025, 4, 28, 14, 32, 30), 'result': '0.049546462194317735', 'result_long': None, 'result_double': None}] Qualite : 0.049546462194317735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22452592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22452592_28-04-2025_14_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22452592 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22452592_28-04-2025_14_32_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22452621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22452622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22452623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22452624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22452625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22452626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22452627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22452628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22452629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22452630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22452631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22452632, 'pht': 3726}}" where mtr_portfolio_id = 22452592 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22452592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131944, 0.049546462194317735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22452592_28-04-2025_14_32_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22452621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22452622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22452623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22452624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22452625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22452626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22452627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22452628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22452629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22452630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22452631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22452632, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22453259 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764491, 'mtr_portfolio_id': 22453259, 'created_at': datetime.datetime(2025, 4, 28, 14, 52, 59), 'result': '0.03556250229126262', 'result_long': None, 'result_double': None}] Qualite : 0.03556250229126262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22453259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22453259 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, 'pht': 3726}}" where mtr_portfolio_id = 22453259 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22453259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131945, 0.03556250229126262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22453714 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764539, 'mtr_portfolio_id': 22453714, 'created_at': datetime.datetime(2025, 4, 28, 15, 2, 30), 'result': '0.07443313121988651', 'result_long': None, 'result_double': None}] Qualite : 0.07443313121988651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22453714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22453714 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}" where mtr_portfolio_id = 22453714 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22453714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131946, 0.07443313121988651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22454148 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764583, 'mtr_portfolio_id': 22454148, 'created_at': datetime.datetime(2025, 4, 28, 15, 19), 'result': '0.05319964641723295', 'result_long': None, 'result_double': None}] Qualite : 0.05319964641723295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454148 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}" where mtr_portfolio_id = 22454148 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22454148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131947, 0.05319964641723295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22454771 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764642, 'mtr_portfolio_id': 22454771, 'created_at': datetime.datetime(2025, 4, 28, 15, 32, 58), 'result': '0.061645324297743324', 'result_long': None, 'result_double': None}] Qualite : 0.061645324297743324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454771 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, 'pht': 3726}}" where mtr_portfolio_id = 22454771 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22454771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131948, 0.061645324297743324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22455401 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764712, 'mtr_portfolio_id': 22455401, 'created_at': datetime.datetime(2025, 4, 28, 15, 46, 36), 'result': '0.04261826871360352', 'result_long': None, 'result_double': None}] Qualite : 0.04261826871360352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22455401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22455401_28-04-2025_15_46_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22455401 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22455401_28-04-2025_15_46_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22455426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22455427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22455428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22455429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22455430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22455431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22455432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22455433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22455434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22455435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22455436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22455437, 'pht': 3726}}" where mtr_portfolio_id = 22455401 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22455401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131949, 0.04261826871360352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22455401_28-04-2025_15_46_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22455426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22455427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22455428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22455429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22455430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22455431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22455432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22455433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22455434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22455435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22455436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22455437, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22456046 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764755, 'mtr_portfolio_id': 22456046, 'created_at': datetime.datetime(2025, 4, 28, 16, 2, 31), 'result': '0.0566092653677605', 'result_long': None, 'result_double': None}] Qualite : 0.0566092653677605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22456046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22456046 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, 'pht': 3726}}" where mtr_portfolio_id = 22456046 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22456046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131950, 0.0566092653677605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456046_28-04-2025_16_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22456621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764814, 'mtr_portfolio_id': 22456621, 'created_at': datetime.datetime(2025, 4, 28, 16, 18, 58), 'result': '0.02753564893748372', 'result_long': None, 'result_double': None}] Qualite : 0.02753564893748372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22456621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22456621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, 'pht': 3726}}" where mtr_portfolio_id = 22456621 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22456621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131951, 0.02753564893748372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22456621_28-04-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22456626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22456627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22456628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22456629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22456630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22456631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22456632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22456633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22456634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22456635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22456636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22456637, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22457098 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764868, 'mtr_portfolio_id': 22457098, 'created_at': datetime.datetime(2025, 4, 28, 16, 33), 'result': '0.05384356387322435', 'result_long': None, 'result_double': None}] Qualite : 0.05384356387322435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22457098 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22457098 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, 'pht': 3726}}" where mtr_portfolio_id = 22457098 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22457098 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131952, 0.05384356387322435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457098_28-04-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457110, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22457415 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764912, 'mtr_portfolio_id': 22457415, 'created_at': datetime.datetime(2025, 4, 28, 16, 52, 58), 'result': '0.051032996743958635', 'result_long': None, 'result_double': None}] Qualite : 0.051032996743958635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22457415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22457415 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, 'pht': 3726}}" where mtr_portfolio_id = 22457415 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22457415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131953, 0.051032996743958635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22457415_28-04-2025_16_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22457439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22457440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22457441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22457442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22457443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22457444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22457445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22457446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22457447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22457448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22457449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22457450, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22458137 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2764986, 'mtr_portfolio_id': 22458137, 'created_at': datetime.datetime(2025, 4, 28, 17, 3), 'result': '0.051749976467951354', 'result_long': None, 'result_double': None}] Qualite : 0.051749976467951354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22458137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458137_28-04-2025_17_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22458137 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458137_28-04-2025_17_03_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458150, 'pht': 3726}}" where mtr_portfolio_id = 22458137 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22458137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131954, 0.051749976467951354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458137_28-04-2025_17_03_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458150, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22458367 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765022, 'mtr_portfolio_id': 22458367, 'created_at': datetime.datetime(2025, 4, 28, 17, 19), 'result': '0.054551746434892766', 'result_long': None, 'result_double': None}] Qualite : 0.054551746434892766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22458367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458367_28-04-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22458367 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458367_28-04-2025_17_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458396, 'pht': 3726}}" where mtr_portfolio_id = 22458367 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22458367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131955, 0.054551746434892766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22458367_28-04-2025_17_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22458385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22458386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22458387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22458388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22458389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22458390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22458391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22458392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22458393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22458394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22458395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22458396, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22459042 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765076, 'mtr_portfolio_id': 22459042, 'created_at': datetime.datetime(2025, 4, 28, 18, 3, 30), 'result': '0.056240331511470655', 'result_long': None, 'result_double': None}] Qualite : 0.056240331511470655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22459042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459042_28-04-2025_18_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22459042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459042_28-04-2025_18_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22459077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22459078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22459079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22459081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22459082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22459083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22459084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22459085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22459086, 'pht': 3726}}" where mtr_portfolio_id = 22459042 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22459042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131956, 0.056240331511470655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459042_28-04-2025_18_03_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22459077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22459078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22459079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22459081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22459082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22459083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22459084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22459085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22459086, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22459996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765222, 'mtr_portfolio_id': 22459996, 'created_at': datetime.datetime(2025, 4, 28, 18, 21, 28), 'result': '0.04501813960792619', 'result_long': None, 'result_double': None}] Qualite : 0.04501813960792619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22459996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22459996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, 'pht': 3726}}" where mtr_portfolio_id = 22459996 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22459996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131957, 0.04501813960792619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22459996_28-04-2025_18_21_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22459997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22459998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22459999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22460453 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765277, 'mtr_portfolio_id': 22460453, 'created_at': datetime.datetime(2025, 4, 28, 18, 32, 57), 'result': '0.051329745574703045', 'result_long': None, 'result_double': None}] Qualite : 0.051329745574703045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22460453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22460453 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, 'pht': 3726}}" where mtr_portfolio_id = 22460453 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22460453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131958, 0.051329745574703045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460453_28-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22460775 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765326, 'mtr_portfolio_id': 22460775, 'created_at': datetime.datetime(2025, 4, 28, 18, 49), 'result': '0.05296067862264657', 'result_long': None, 'result_double': None}] Qualite : 0.05296067862264657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22460775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22460775 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, 'pht': 3726}}" where mtr_portfolio_id = 22460775 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22460775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131959, 0.05296067862264657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22460775_28-04-2025_18_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22460787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22460788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22460789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22460790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22460791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22460792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22460793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22460794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22460795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22460796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22460797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22460798, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22461545 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765395, 'mtr_portfolio_id': 22461545, 'created_at': datetime.datetime(2025, 4, 28, 19, 2, 58), 'result': '0.05615857833557364', 'result_long': None, 'result_double': None}] Qualite : 0.05615857833557364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22461545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22461545 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, 'pht': 3726}}" where mtr_portfolio_id = 22461545 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22461545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131960, 0.05615857833557364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22461545_28-04-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22461551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22461552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22461553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22461554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22461555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22461556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22461557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22461558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22461559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22461560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22461561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22461562, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22462258 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765465, 'mtr_portfolio_id': 22462258, 'created_at': datetime.datetime(2025, 4, 28, 19, 18, 58), 'result': '0.038378328564555184', 'result_long': None, 'result_double': None}] Qualite : 0.038378328564555184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22462258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462258_28-04-2025_19_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22462258 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462258_28-04-2025_19_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462275, 'pht': 3726}}" where mtr_portfolio_id = 22462258 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22462258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131961, 0.038378328564555184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462258_28-04-2025_19_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462275, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22462887 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765513, 'mtr_portfolio_id': 22462887, 'created_at': datetime.datetime(2025, 4, 28, 19, 33), 'result': '0.05701944779046319', 'result_long': None, 'result_double': None}] Qualite : 0.05701944779046319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22462887 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462887_28-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22462887 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462887_28-04-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462927, 'pht': 3726}}" where mtr_portfolio_id = 22462887 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22462887 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131962, 0.05701944779046319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22462887_28-04-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22462916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22462917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22462918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22462919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22462920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22462921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22462922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22462923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22462924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22462925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22462926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22462927, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22463379 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765561, 'mtr_portfolio_id': 22463379, 'created_at': datetime.datetime(2025, 4, 28, 19, 46, 29), 'result': '0.05144177784513248', 'result_long': None, 'result_double': None}] Qualite : 0.05144177784513248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22463379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463379_28-04-2025_19_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22463379 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463379_28-04-2025_19_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22463414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22463415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22463416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22463417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22463418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22463419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22463420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22463421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22463422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22463423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22463424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22463425, 'pht': 3726}}" where mtr_portfolio_id = 22463379 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22463379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131963, 0.05144177784513248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463379_28-04-2025_19_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22463414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22463415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22463416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22463417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22463418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22463419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22463420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22463421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22463422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22463423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22463424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22463425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22463990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765647, 'mtr_portfolio_id': 22463990, 'created_at': datetime.datetime(2025, 4, 28, 20, 2, 58), 'result': '0.0539887256702612', 'result_long': None, 'result_double': None}] Qualite : 0.0539887256702612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22463990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463990_28-04-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22463990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463990_28-04-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22464015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22464016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22464017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22464018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22464019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22464020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22464021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22464022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22464023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22464024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22464025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22464026, 'pht': 3726}}" where mtr_portfolio_id = 22463990 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22463990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131964, 0.0539887256702612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22463990_28-04-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22464015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22464016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22464017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22464018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22464019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22464020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22464021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22464022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22464023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22464024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22464025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22464026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22465004 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765758, 'mtr_portfolio_id': 22465004, 'created_at': datetime.datetime(2025, 4, 28, 20, 19), 'result': '0.06615452047303953', 'result_long': None, 'result_double': None}] Qualite : 0.06615452047303953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22465004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465004_28-04-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22465004 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465004_28-04-2025_20_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22465079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465090, 'pht': 3726}}" where mtr_portfolio_id = 22465004 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22465004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131965, 0.06615452047303953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465004_28-04-2025_20_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22465079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465090, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22465583 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765789, 'mtr_portfolio_id': 22465583, 'created_at': datetime.datetime(2025, 4, 28, 20, 33, 1), 'result': '0.04223046905492163', 'result_long': None, 'result_double': None}] Qualite : 0.04223046905492163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22465583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465583_28-04-2025_20_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22465583 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465583_28-04-2025_20_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22465668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465670, 'pht': 3726}}" where mtr_portfolio_id = 22465583 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22465583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131966, 0.04223046905492163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22465583_28-04-2025_20_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22465659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22465660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22465661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22465662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22465663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22465664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22465665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22465666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22465667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22465668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22465669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22465670, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22466507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2765875, 'mtr_portfolio_id': 22466507, 'created_at': datetime.datetime(2025, 4, 28, 20, 50, 30), 'result': '0.05354420628451924', 'result_long': None, 'result_double': None}] Qualite : 0.05354420628451924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22466507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22466507_28-04-2025_20_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22466507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22466507_28-04-2025_20_50_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22466620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22466621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22466622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22466623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22466624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22466625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22466626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22466627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22466628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22466629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22466630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22466631, 'pht': 3726}}" where mtr_portfolio_id = 22466507 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22466507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131967, 0.05354420628451924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22466507_28-04-2025_20_50_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22466620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22466621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22466622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22466623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22466624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22466625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22466626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22466627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22466628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22466629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22466630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22466631, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22468457 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766015, 'mtr_portfolio_id': 22468457, 'created_at': datetime.datetime(2025, 4, 28, 21, 17), 'result': '0.08027976950838131', 'result_long': None, 'result_double': None}] Qualite : 0.08027976950838131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22468457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468457_28-04-2025_21_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22468457 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468457_28-04-2025_21_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22468502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468506, 'pht': 3726}}" where mtr_portfolio_id = 22468457 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22468457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131968, 0.08027976950838131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468457_28-04-2025_21_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22468502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468506, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22468820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766039, 'mtr_portfolio_id': 22468820, 'created_at': datetime.datetime(2025, 4, 28, 21, 32, 57), 'result': '0.04624081147872922', 'result_long': None, 'result_double': None}] Qualite : 0.04624081147872922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22468820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468820_28-04-2025_21_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22468820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468820_28-04-2025_21_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22468888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468899, 'pht': 3726}}" where mtr_portfolio_id = 22468820 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22468820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131969, 0.04624081147872922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22468820_28-04-2025_21_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22468888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22468889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22468890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22468891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22468892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22468893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22468894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22468895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22468896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22468897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22468898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22468899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22469836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766127, 'mtr_portfolio_id': 22469836, 'created_at': datetime.datetime(2025, 4, 28, 21, 50, 59), 'result': '0.05857225156433133', 'result_long': None, 'result_double': None}] Qualite : 0.05857225156433133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22469836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22469836_28-04-2025_21_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22469836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22469836_28-04-2025_21_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22469839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22469840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22469841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22469842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22469843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22469844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22469845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22469846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22469847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22469848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22469849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22469850, 'pht': 3726}}" where mtr_portfolio_id = 22469836 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22469836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131970, 0.05857225156433133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22469836_28-04-2025_21_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22469839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22469840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22469841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22469842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22469843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22469844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22469845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22469846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22469847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22469848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22469849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22469850, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22470749 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766185, 'mtr_portfolio_id': 22470749, 'created_at': datetime.datetime(2025, 4, 28, 22, 2, 59), 'result': '0.06671523095829746', 'result_long': None, 'result_double': None}] Qualite : 0.06671523095829746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22470749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22470749_28-04-2025_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22470749 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22470749_28-04-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22470776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22470777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22470778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22470779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22470780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22470781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22470782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22470783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22470784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22470785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22470786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22470787, 'pht': 3726}}" where mtr_portfolio_id = 22470749 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22470749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131971, 0.06671523095829746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22470749_28-04-2025_22_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22470776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22470777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22470778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22470779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22470780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22470781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22470782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22470783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22470784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22470785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22470786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22470787, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22471254 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766260, 'mtr_portfolio_id': 22471254, 'created_at': datetime.datetime(2025, 4, 28, 22, 19, 29), 'result': '0.0545739369769143', 'result_long': None, 'result_double': None}] Qualite : 0.0545739369769143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22471254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22471254_28-04-2025_22_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22471254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22471254_28-04-2025_22_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22471314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22471315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22471316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22471317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22471318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22471319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22471320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22471321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22471322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22471323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22471324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22471325, 'pht': 3726}}" where mtr_portfolio_id = 22471254 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22471254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131972, 0.0545739369769143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22471254_28-04-2025_22_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22471314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22471315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22471316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22471317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22471318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22471319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22471320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22471321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22471322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22471323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22471324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22471325, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22472315 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766316, 'mtr_portfolio_id': 22472315, 'created_at': datetime.datetime(2025, 4, 28, 22, 32, 57), 'result': '0.05798545874189664', 'result_long': None, 'result_double': None}] Qualite : 0.05798545874189664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22472315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472315_28-04-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22472315 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472315_28-04-2025_22_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472375, 'pht': 3726}}" where mtr_portfolio_id = 22472315 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22472315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131973, 0.05798545874189664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472315_28-04-2025_22_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472375, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22472922 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766367, 'mtr_portfolio_id': 22472922, 'created_at': datetime.datetime(2025, 4, 28, 22, 46, 58), 'result': '0.07178440111393061', 'result_long': None, 'result_double': None}] Qualite : 0.07178440111393061 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22472922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472922_28-04-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22472922 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472922_28-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472939, 'pht': 3726}}" where mtr_portfolio_id = 22472922 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22472922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131974, 0.07178440111393061, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22472922_28-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22472928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22472929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22472930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22472931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22472932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22472933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22472934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22472935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22472936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22472937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22472938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22472939, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22473990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766416, 'mtr_portfolio_id': 22473990, 'created_at': datetime.datetime(2025, 4, 28, 23, 2, 30), 'result': '0.05183771874257873', 'result_long': None, 'result_double': None}] Qualite : 0.05183771874257873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22473990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22473990_28-04-2025_23_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22473990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22473990_28-04-2025_23_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22473996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22473997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22473998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22473999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474007, 'pht': 3726}}" where mtr_portfolio_id = 22473990 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22473990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131975, 0.05183771874257873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22473990_28-04-2025_23_02_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22473996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22473997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22473998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22473999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474007, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22474824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766470, 'mtr_portfolio_id': 22474824, 'created_at': datetime.datetime(2025, 4, 28, 23, 16, 59), 'result': '0.041954976923983964', 'result_long': None, 'result_double': None}] Qualite : 0.041954976923983964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22474824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22474824_28-04-2025_23_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22474824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22474824_28-04-2025_23_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22474892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22474893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22474896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22474898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474901, 'pht': 3726}}" where mtr_portfolio_id = 22474824 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22474824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131976, 0.041954976923983964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22474824_28-04-2025_23_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22474890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22474891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22474892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22474893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22474894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22474895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22474896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22474897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22474898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22474899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22474900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22474901, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22475398 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766516, 'mtr_portfolio_id': 22475398, 'created_at': datetime.datetime(2025, 4, 28, 23, 37, 29), 'result': '0.049487777800682704', 'result_long': None, 'result_double': None}] Qualite : 0.049487777800682704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22475398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22475398_28-04-2025_23_37_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22475398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22475398_28-04-2025_23_37_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22475423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22475424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22475425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22475426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22475427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22475428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22475429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22475430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22475431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22475432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22475433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22475434, 'pht': 3726}}" where mtr_portfolio_id = 22475398 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22475398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131977, 0.049487777800682704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22475398_28-04-2025_23_37_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22475423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22475424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22475425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22475426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22475427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22475428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22475429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22475430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22475431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22475432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22475433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22475434, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476003 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766559, 'mtr_portfolio_id': 22476003, 'created_at': datetime.datetime(2025, 4, 28, 23, 49, 3), 'result': '0.07176095242544925', 'result_long': None, 'result_double': None}] Qualite : 0.07176095242544925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22476003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476003_28-04-2025_23_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476003 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476003_28-04-2025_23_49_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22476031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476039, 'pht': 3726}}" where mtr_portfolio_id = 22476003 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22476003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131978, 0.07176095242544925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476003_28-04-2025_23_49_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22476031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476039, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22476414 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2766593, 'mtr_portfolio_id': 22476414, 'created_at': datetime.datetime(2025, 4, 29, 1, 1), 'result': '0.05255588857528505', 'result_long': None, 'result_double': None}] Qualite : 0.05255588857528505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22476414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476414_29-04-2025_01_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22476414 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476414_29-04-2025_01_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22476415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476438, 'pht': 3726}}" where mtr_portfolio_id = 22476414 and dashboard_run_id = 1760801 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22476414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10131979, 0.05255588857528505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22476414_29-04-2025_01_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22476415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22476417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22476423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22476427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22476431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22476432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22476433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22476434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22476435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22476436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22476437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22476438, '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 (22476852,22476854,22476855,22476856,22476857,22476863,22476878,22476896,22476898,22476899,22476900,22476913,22476914,22447695,22447601,22449052,22449209,22451062,22451421,22451813,22452592,22453259,22453714,22454148,22454771,22455401,22456046,22456621,22457098,22457415,22458137,22458367,22459042,22459996,22460453,22460775,22461545,22462258,22462887,22463379,22463990,22465004,22465583,22466507,22468457,22468820,22469836,22470749,22471254,22472315,22472922,22473990,22474824,22475398,22476003,22476414) result : ((1353861970,), (1353861978,), (1353861988,), (1353861996,), (1353862010,), (1353862012,), (1353862014,), (1353862016,), (1353862023,), (1353862025,), (1353862035,), (1353862036,), (1353863635,), (1353862027,), (1353862029,), (1353862031,), (1353862033,), (1353862038,), (1353862042,), (1353862047,), (1353862059,), (1353862081,), (1353862084,), (1353862088,), (1353862094,), (1353862099,), (1353862105,), (1353862137,), (1353862139,), (1353862177,), (1353862182,), (1353862209,), (1353862216,), (1353862243,), (1353862255,), (1353862303,), (1353862319,), (1353862376,), (1353862400,), (1353862592,), (1353862627,), (1353862662,), (1353862681,), (1353862684,), (1353862775,), (1353862793,), (1353862823,), (1353862854,), (1353862883,), (1353862915,), (1353862957,), (1353862967,), (1353862970,), (1353862977,), (1353862985,), (1353863003,), (1353863176,), (1353863245,), (1353863287,), (1353863310,), (1353863317,), (1353863336,), (1353863396,), (1353863402,), (1353863408,), (1353863429,), (1353863461,), (1353874420,), (1353876934,), (1353876938,), (1353876941,), (1353876956,), (1353876960,), (1353878186,), (1353878257,), (1353879472,), (1353879319,), (1353879421,), (1353880189,), (1353880231,), (1353880250,), (1353880257,), (1353880261,), (1353881035,), (1353881046,), (1353881054,), (1353881066,), (1353881306,), (1353881348,), (1353881379,), (1353881417,), (1353881767,), (1353881849,), (1353881866,), (1353881868,), (1353881887,), (1353881946,), (1353881950,), (1353881956,), (1353881962,), (1353882039,), (1353882131,), (1353882151,), (1353883013,), (1353883161,), (1353883305,), (1353883357,), (1353894941,), (1353910329,), (1353910359,), (1353910394,), (1353910454,), (1353910462,), (1353910635,), (1353910636,), (1353910638,), (1353910641,), (1353910644,), (1353911409,), (1353911413,), (1353911417,), (1353911428,), (1353911496,), (1353911500,), (1353911569,), (1353911585,), (1353911591,), (1353912204,), (1353912208,), (1353912212,), (1353912216,), (1353912221,), (1353912264,), (1353912268,), (1353912326,), (1353912330,), (1353912334,), (1353912450,), (1353912587,), (1353912642,), (1353912646,), (1353912656,), (1353912659,), (1353912972,), (1353913008,), (1353913049,), (1353913082,), (1353913113,), (1353913522,), (1353913555,), (1353913592,), (1353913623,), (1353913732,), (1353913737,), (1353913742,), (1353913918,), (1353913969,), (1353914000,), (1353914034,), (1353914562,), (1353914576,), (1353914592,), (1353914634,), (1353914662,), (1353914720,), (1353914721,), (1353914729,), (1353914733,), (1353914735,), (1353914739,), (1353914742,), (1353914746,), (1353914785,), (1353914791,), (1353914797,), (1353914856,), (1353914863,), (1353914869,), (1353914871,), (1353914889,), (1353914895,), (1353914909,), (1353914917,), (1353914935,), (1353914941,), (1353915601,), (1353915680,), (1353915766,), (1353917420,), (1353917205,), (1353917291,), (1353917373,), (1353917764,), (1353917792,), (1353917825,), (1353917877,), (1353917986,), (1353918038,), (1353918116,), (1353918134,), (1353918139,), (1353918380,), (1353918405,), (1353918408,), (1353918411,), (1353918412,), (1353918415,), (1353918463,), (1353918466,), (1353918531,), (1353918533,), (1353918535,), (1353918584,), (1353918589,), (1353918594,), (1353918597,), (1353918849,), (1353918878,), (1353919252,), (1353919970,), (1353920028,), (1353920064,), (1353920093,), (1353920124,), (1353920158,), (1353920160,), (1353920179,), (1353920189,), (1353920198,), (1353920207,), (1353920374,), (1353920377,), (1353920391,), (1353920604,), (1353920655,), (1353921246,), (1353921273,), (1353921303,), (1353921681,), (1353921787,), (1353921944,), (1353921981,), (1353922142,), (1353922130,), (1353922134,), (1353922138,), (1353922242,), (1353922271,), (1353922300,), (1353922730,), (1353922790,), (1353922844,), (1353922910,), (1353922958,), (1353922992,), (1353923176,), (1353923205,), (1353923239,), (1353923269,), (1353923296,), (1353923305,), (1353923535,), (1353923570,), (1353923618,), (1353923651,), (1353923674,), (1353923683,), (1353923686,), (1353923691,), (1353923782,), (1353923786,), (1353923792,), (1353923798,), (1353923818,), (1353923822,), (1353923826,), (1353923831,), (1353923835,), (1353923887,), (1353923892,), (1353923896,), (1353923900,), (1353923958,), (1353923968,), (1353923976,), (1353923978,), (1353923981,), (1353924105,), (1353924185,), (1353924189,), (1353924194,), (1353924198,), (1353924263,), (1353924269,), (1353924272,), (1353924276,), (1353924278,), (1353924325,), (1353924329,), (1353924333,), (1353924336,), (1353924341,), (1353924399,), (1353924405,), (1353924408,), (1353924474,), (1353924456,), (1353924462,), (1353924466,), (1353924471,), (1353924523,), (1353924527,), (1353924532,), (1353924535,), (1353924538,), (1353924594,), (1353924595,), (1353924599,), (1353924600,), (1353924605,), (1353924606,), (1353924611,), (1353924612,), (1353924619,), (1353924621,), (1353924813,), (1353924825,), (1353924934,), (1353924936,), (1353924942,), (1353924944,), (1353924948,), (1353924950,), (1353924955,), (1353924956,), (1353924960,), (1353924961,), (1353925017,), (1353925023,), (1353925030,), (1353925036,), (1353925041,), (1353925051,), (1353925055,), (1353925103,), (1353925117,), (1353925209,), (1353925215,), (1353925465,), (1353925884,), (1353928474,), (1353928460,), (1353928465,), (1353928470,), (1353928640,), (1353928644,), (1353928675,), (1353928707,), (1353928736,), (1353929110,), (1353929112,), (1353929140,), (1353929159,), (1353929169,), (1353929190,), (1353931215,), (1353931351,), (1353931414,), (1353932029,), (1353932068,), (1353932107,), (1353932148,), (1353932190,), (1353932226,), (1353932335,), (1353932363,), (1353932409,), (1353932437,), (1353932551,), (1353932532,), (1353932537,), (1353932542,), (1353932546,), (1353932817,), (1353932842,), (1353932857,), (1353932861,), (1353932936,), (1353932945,), (1353932948,), (1353932953,), (1353932957,), (1353933040,), (1353933057,), (1353933059,), (1353933061,), (1353933064,), (1353933151,), (1353933153,), (1353933156,), (1353933158,), (1353933173,), (1353933180,), (1353933184,), (1353933190,), (1353933234,), (1353933237,), (1353933242,), (1353933248,), (1353933252,), (1353933255,), (1353933268,), (1353933272,), (1353933278,), (1353933283,), (1353933286,), (1353933290,), (1353933340,), (1353933347,), (1353933353,), (1353933358,), (1353933423,), (1353933427,), (1353933431,), (1353933434,), (1353933438,), (1353933521,), (1353933525,), (1353933527,), (1353933528,), (1353933542,), (1353933543,), (1353933561,), (1353933567,), (1353933644,), (1353933647,), (1353933660,), (1353933699,), (1353933728,), (1353933742,), (1353933761,), (1353933766,), (1353933773,), (1353933779,), (1353933833,), (1353933839,), (1353933843,), (1353933847,), (1353933861,), (1353933868,), (1353933984,), (1353933986,), (1353933990,), (1353933992,), (1353934006,), (1353934028,), (1353934032,), (1353934210,), (1353934301,), (1353934334,), (1353934343,), (1353934367,), (1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,), (1353936749,), (1353936752,), (1353936762,), (1353936864,), (1353936902,), (1353936933,), (1353936965,), (1353937374,), (1353937406,), (1353937449,), (1353937485,), (1353937698,), (1353937701,), (1353937827,), (1353937974,), (1353937978,), (1353937985,), (1353938046,), (1353938081,), (1353938114,), (1353938162,), (1353938191,), (1353938230,), (1353938558,), (1353938563,), (1353938574,), (1353938584,), (1353938589,), (1353938593,), (1353938598,), (1353938603,), (1353938608,), (1353938672,), (1353938675,), (1353938680,), (1353938684,), (1353938754,), (1353938760,), (1353938766,), (1353938772,), (1353938778,), (1353938868,), (1353938873,), (1353938878,), (1353938940,), (1353938946,), (1353938952,), (1353938956,), (1353938961,), (1353938964,), (1353939137,), (1353939145,), (1353939149,), (1353939152,), (1353939153,), (1353939213,), (1353939226,), (1353939234,), (1353939532,), (1353939537,), (1353939545,), (1353939579,), (1353939611,), (1353939644,), (1353939806,), (1353939837,), (1353940139,), (1353940306,), (1353940337,), (1353940423,), (1353940430,), (1353940446,), (1353940455,), (1353940507,), (1353940582,), (1353940782,), (1353940954,), (1353941070,), (1353941075,), (1353941080,), (1353941195,), (1353941200,), (1353941203,), (1353941206,), (1353941209,), (1353941212,), (1353941307,), (1353941309,), (1353941328,), (1353941329,), (1353941337,), (1353941338,), (1353941343,), (1353941344,), (1353941358,), (1353941361,), (1353941409,), (1353941414,), (1353941426,), (1353941440,), (1353941479,), (1353941533,), (1353941641,), (1353941665,), (1353941667,), (1353941671,), (1353941868,), (1353941873,), (1353941879,), (1353941884,), (1353941887,), (1353941941,), (1353941944,), (1353941948,), (1353941951,), (1353941957,), (1353941998,), (1353942003,), (1353942007,), (1353942010,), (1353942025,), (1353942034,), (1353942469,), (1353942530,), (1353943074,), (1353943140,), (1353943204,), (1353943239,), (1353943387,), (1353943393,), (1353943436,), (1353943440,), (1353943466,), (1353943476,), (1353943777,), (1353943735,), (1353943737,), (1353943741,), (1353943746,), (1353943883,), (1353943914,), (1353943949,), (1353944102,), (1353944106,), (1353944602,), (1353944603,), (1353944648,), (1353945011,), (1353945013,), (1353945152,), (1353945156,), (1353945205,), (1353945210,), (1353945215,), (1353945250,), (1353945297,), (1353945774,), (1353945775,), (1353945780,), (1353945782,), (1353945787,), (1353945789,), (1353945814,), (1353945818,), (1353945824,), (1353945828,), (1353945832,), (1353945837,), (1353945856,), (1353945858,), (1353945861,), (1353945864,), (1353946206,), (1353946213,), (1353946219,), (1353946224,), (1353946291,), (1353946296,), (1353946299,), (1353946302,), (1353946304,), (1353946307,), (1353946335,), (1353946339,), (1353946404,), (1353946475,), (1353946581,), (1353946590,), (1353946596,), (1353946599,), (1353946603,), (1353946606,), (1353946655,), (1353946658,), (1353946663,), (1353946667,), (1353946671,), (1353946713,), (1353946721,), (1353946726,), (1353946734,), (1353946789,), (1353946775,), (1353946781,), (1353946785,), (1353947007,), (1353947089,), (1353947094,), (1353947102,), (1353947139,), (1353947144,), (1353947149,), (1353947154,), (1353947158,), (1353947162,), (1353947207,), (1353947212,), (1353947217,), (1353947232,), (1353947240,), (1353947517,), (1353947535,), (1353947541,), (1353947547,), (1353947552,), (1353947556,), (1353947583,), (1353947590,), (1353947597,), (1353947609,), (1353947702,), (1353947734,), (1353947792,), (1353947822,), (1353947859,), (1353947898,), (1353947905,), (1353947910,), (1353947915,), (1353947919,), (1353947948,), (1353947951,), (1353947955,), (1353947959,), (1353947962,), (1353947998,), (1353948002,), (1353948007,), (1353948012,), (1353948017,), (1353948048,), (1353948053,), (1353948058,), (1353948063,), (1353948067,), (1353948070,), (1353948104,), (1353948109,), (1353948116,), (1353948124,), (1353948255,), (1353948261,), (1353948266,), (1353948271,), (1353948275,), (1353948301,), (1353948314,), (1353948320,), (1353948324,), (1353948328,), (1353948347,), (1353949565,), (1353949655,), (1353949662,), (1353949743,), (1353949749,), (1353949754,), (1353949759,), (1353949763,), (1353949768,), (1353949787,), (1353949794,), (1353949801,), (1353949806,), (1353950001,), (1353950041,), (1353950047,), (1353950053,), (1353950059,), (1353950064,), (1353950090,), (1353950096,), (1353950101,), (1353950106,), (1353950111,), (1353950131,), (1353950136,), (1353950142,), (1353950147,), (1353950543,), (1353950612,), (1353950704,), (1353950764,), (1353950827,), (1353950887,), (1353951102,), (1353951237,), (1353951292,), (1353951343,), (1353951391,), (1353951581,), (1353951479,), (1353951513,), (1353951547,), (1353951816,), (1353951849,), (1353951880,), (1353951888,), (1353951908,), (1353951949,), (1353952153,), (1353952182,), (1353952191,), (1353952211,), (1353952253,), (1353952257,), (1353952261,), (1353952265,), (1353952269,), (1353952303,), (1353952307,), (1353952313,), (1353952319,), (1353952325,), (1353952329,), (1353952364,), (1353952373,), (1353952378,), (1353952381,), (1353952384,), (1353952416,), (1353952420,), (1353952425,), (1353952430,), (1353952434,), (1353952473,), (1353952477,), (1353952486,), (1353952490,), (1353952529,), (1353952541,), (1353952558,), (1353952562,), (1353952567,), (1353952571,), (1353952595,), (1353952597,), (1353952604,), (1353952614,), (1353952624,), (1353952646,), (1353952825,), (1353952830,), (1353952842,), (1353952873,), (1353952976,), (1353952978,), (1353952981,), (1353952990,), (1353952996,), (1353953005,), (1353953071,), (1353953074,), (1353953086,), (1353953117,), (1353953122,), (1353953338,), (1353953380,), (1353953421,), (1353953703,), (1353954374,), (1353954443,), (1353954464,), (1353954471,), (1353954530,), (1353954622,), (1353954803,), (1353954776,), (1353954781,), (1353954793,), (1353954842,), (1353954847,), (1353954855,), (1353954861,), (1353954866,), (1353954870,), (1353954909,), (1353954914,), (1353954932,), (1353954936,), (1353955001,), (1353955022,), (1353955027,), (1353955032,), (1353955037,), (1353955041,), (1353955073,), (1353955081,), (1353955103,), (1353955171,), (1353955177,), (1353955181,), (1353955308,), (1353955406,), (1353955417,), (1353955421,), (1353955425,), (1353955430,), (1353955460,), (1353955463,), (1353955466,), (1353955469,), (1353955471,), (1353955514,), (1353955518,), (1353955521,), (1353955536,), (1353955590,), (1353955597,), (1353955602,), (1353955605,), (1353955608,), (1353955617,), (1353955674,), (1353955678,), (1353955681,), (1353955684,), (1353955687,), (1353955719,), (1353955723,), (1353955725,), (1353955728,), (1353955732,), (1353955775,), (1353955783,), (1353955791,), (1353955795,), (1353955797,), (1353955801,), (1353962241,), (1353962158,), (1353962179,), (1353962211,), (1353962456,), (1353962459,), (1353962463,), (1353962466,), (1353962469,), (1353962499,), (1353962507,), (1353962513,), (1353962522,), (1353962528,), (1353962533,), (1353962567,), (1353962576,), (1353962581,), (1353962586,), (1353962591,), (1353962614,), (1353962618,), (1353962624,), (1353962631,), (1353962636,), (1353962659,), (1353962663,), (1353962669,), (1353962673,), (1353962748,), (1353962753,), (1353962758,), (1353962762,), (1353962771,), (1353962774,), (1353962823,), (1353962829,), (1353962835,), (1353962840,), (1353962880,), (1353962885,), (1353962888,), (1353962891,), (1353962895,), (1353963262,), (1353963313,), (1353963316,), (1353963746,), (1353963733,), (1353963735,), (1353963738,), (1353963741,), (1353963744,), (1353963787,), (1353963791,), (1353963935,), (1353963996,), (1353964000,), (1353964006,), (1353964009,), (1353964011,), (1353964014,), (1353964052,), (1353964056,), (1353964065,), (1353964068,), (1353964646,), (1353964713,), (1353965192,), (1353965372,), (1353965402,), (1353965576,), (1353965581,), (1353965584,), (1353965596,), (1353965615,), (1353965794,), (1353965801,), (1353965807,), (1353965813,), (1353965818,), (1353965853,), (1353965858,), (1353965864,), (1353965867,), (1353965924,), (1353965929,), (1353965931,), (1353965934,), (1353965938,), (1353965941,), (1353965977,), (1353965986,), (1353965993,), (1353965996,), (1353966030,), (1353966033,), (1353966036,), (1353966039,), (1353966044,), (1353966079,), (1353966084,), (1353966088,), (1353966093,), (1353966108,), (1353966111,), (1353966149,), (1353966161,), (1353966163,), (1353966168,), (1353966229,), (1353966209,), (1353966213,), (1353966217,), (1353966222,), (1353966226,), (1353966260,), (1353966264,), (1353966268,), (1353966273,), (1353966309,), (1353966312,), (1353966315,), (1353966319,), (1353966321,), (1353966325,), (1353966361,), (1353966365,), (1353966369,), (1353966372,), (1353966409,), (1353966414,), (1353966418,), (1353966436,), (1353966466,), (1353966495,), (1353966976,), (1353967031,), (1353967081,), (1353967142,), (1353967744,), (1353967820,), (1353967883,), (1353967910,), (1353967943,), (1353968384,), (1353968482,), (1353968580,), (1353968741,), (1353968966,), (1353969084,), (1353969171,), (1353969199,), (1353969226,), (1353969251,), (1353969465,), (1353969503,), (1353969541,), (1353969593,), (1353970078,), (1353970106,), (1353970132,), (1353970163,), (1353970476,), (1353970486,), (1353970491,), (1353970508,), (1353970514,), (1353970530,), (1353970624,), (1353970638,), (1353970643,), (1353970647,), (1353970651,), (1353970861,), (1353970896,), (1353970926,), (1353971019,), (1353971044,), (1353971070,), (1353971156,), (1353971169,), (1353971173,), (1353971177,), (1353971187,), (1353971214,), (1353971363,), (1353971340,), (1353971344,), (1353971349,), (1353971357,), (1353971508,), (1353971540,), (1353971570,), (1353971600,), (1353971617,), (1353971656,), (1353971664,), (1353971671,), (1353971682,), (1353971688,), (1353971720,), (1353971727,), (1353971728,), (1353971731,), (1353971733,), (1353971802,), (1353971808,), (1353971816,), (1353971819,), (1353971821,), (1353971824,), (1353971881,), (1353971890,), (1353971893,), (1353971896,), (1353971898,), (1353971976,), (1353971979,), (1353971981,), (1353971983,), (1353971985,), (1353972016,), (1353972021,), (1353972024,), (1353972028,), (1353972032,), (1353972034,), (1353972076,), (1353972079,), (1353972087,), (1353972092,), (1353972134,), (1353972141,), (1353972144,), (1353972148,), (1353972150,), (1353972153,), (1353972196,), (1353972313,), (1353972344,), (1353972348,), (1353972351,), (1353972397,), (1353972413,), (1353972416,), (1353972420,), (1353972429,), (1353972433,), (1353972460,), (1353972464,), (1353972468,), (1353972479,), (1353972492,), (1353972917,), (1353972923,), (1353972952,), (1353972994,), (1353973058,), (1353973096,), (1353973338,), (1353973392,), (1353973428,), (1353973777,), (1353973555,), (1353973611,), (1353973666,), (1353973699,), (1353973750,), (1353974074,), (1353974114,), (1353974119,), (1353974133,), (1353974314,), (1353974320,), (1353974326,), (1353974364,), (1353974368,), (1353974389,), (1353974436,), (1353974439,), (1353974443,), (1353974722,), (1353974758,), (1353974789,), (1353975059,), (1353975373,), (1353975418,), (1353975539,), (1353975542,), (1353975546,), (1353975551,), (1353975949,), (1353975952,), (1353975994,), (1353975999,), (1353976002,), (1353976040,), (1353976056,), (1353976071,), (1353976075,), (1353976078,), (1353976140,), (1353976177,), (1353976205,), (1353976232,), (1353976260,), (1353976289,), (1353976559,), (1353976600,), (1353976626,), (1353976651,), (1353976692,), (1353976720,), (1353977161,), (1353977199,), (1353977250,), (1353977282,), (1353977308,), (1353977647,), (1353977653,), (1353977666,), (1353977674,), (1353977702,), (1353977731,), (1353977734,), (1353977738,), (1353977741,), (1353977744,), (1353977851,), (1353977894,), (1353977923,), (1353977957,), (1353977999,), (1353978642,), (1353978706,), (1353978788,), (1353978816,), (1353979228,), (1353979085,), (1353979114,), (1353979145,), (1353979197,), (1353979217,), (1353979364,), (1353979370,), (1353979382,), (1353979386,), (1353979540,), (1353979573,), (1353979607,), (1353979652,), (1353979687,), (1353979693,), (1353979809,), (1353979813,), (1353979815,), (1353979820,), (1353979869,), (1353979883,), (1353979888,), (1353979893,), (1353979897,), (1353979902,), (1353979926,), (1353979938,), (1353979960,), (1353979969,), (1353980021,), (1353980025,), (1353980028,), (1353980037,), (1353980042,), (1353980046,), (1353980077,), (1353980080,), (1353980085,), (1353980089,), (1353980127,), (1353980136,), (1353980141,), (1353980144,), (1353980223,), (1353980237,), (1353980250,), (1353980253,), (1353980270,), (1353980280,), (1353980327,), (1353980335,), (1353980350,), (1353980362,), (1353980374,), (1353980430,), (1353980443,), (1353980456,), (1353980460,), (1353980463,), (1353980466,), (1353980521,), (1353980526,), (1353980530,), (1353980534,), (1353980538,), (1353980572,), (1353980584,), (1353980586,), (1353980591,), (1353980618,), (1353980624,), (1353980627,), (1353980633,), (1353980637,), (1353980700,), (1353980669,), (1353980673,), (1353980683,), (1353980692,), (1353980696,), (1353980719,), (1353980724,), (1353980738,), (1353980745,), (1353980803,), (1353980806,), (1353980819,), (1353980823,), (1353980872,), (1353980875,), (1353980880,), (1353980882,), (1353980887,), (1353980890,), (1353980915,), (1353981014,), (1353981061,), (1353981069,), (1353981081,), (1353981106,), (1353981121,), (1353981124,), (1353981128,), (1353981131,), (1353981135,), (1353981154,), (1353981160,), (1353981164,), (1353981167,), (1353981170,), (1353981208,), (1353981213,), (1353981217,), (1353981230,), (1353981241,), (1353981246,), (1353981284,), (1353981287,), (1353981315,), (1353981321,), (1353981358,), (1353981366,), (1353981369,), (1353981372,), (1353981377,), (1353981438,), (1353981448,), (1353981458,), (1353981462,), (1353981484,), (1353981611,), (1353981615,), (1353981619,), (1353981627,), (1353981636,), (1353981737,), (1353981742,), (1353981745,), (1353981760,), (1353981762,), (1353981933,), (1353981963,), (1353981998,), (1353982031,), (1353982168,), (1353982176,), (1353982179,), (1353982181,), (1353982182,), (1353982186,), (1353982230,), (1353982218,), (1353982221,), (1353982225,), (1353982513,), (1353982541,), (1353982576,), (1353982605,), (1353982633,), (1353982665,), (1353982848,), (1353982852,), (1353982863,), (1353982893,), (1353982932,), (1353982993,), (1353983019,), (1353983046,), (1353983073,), (1353983092,), (1353983120,), (1353983378,), (1353983408,), (1353983447,), (1353983475,), (1353983831,), (1353983860,), (1353983888,), (1353983917,), (1353983946,), (1353983999,), (1353984266,), (1353984295,), (1353984311,), (1353984314,), (1353984355,), (1353984358,), (1353984362,), (1353984364,), (1353984367,), (1353984369,), (1353984403,), (1353984412,), (1353984446,), (1353984476,), (1353984504,), (1353984821,), (1353984850,), (1353984878,), (1353984907,), (1353984960,), (1353985213,), (1353985242,), (1353985261,), (1353985264,), (1353985271,), (1353985336,), (1353985365,), (1353985392,), (1353985419,), (1353985446,), (1353985562,), (1353985571,), (1353985578,), (1353985582,), (1353985585,), (1353985588,), (1353986188,), (1353986250,), (1353987020,), (1353989289,), (1353989291,), (1353989292,), (1353989293,), (1353989420,), (1353989423,), (1353989425,), (1353989545,), (1353989571,), (1353989581,), (1353989600,), (1353989627,), (1353989654,), (1353989765,), (1353989796,), (1353989826,), (1353989839,), (1353989980,), (1353990011,), (1353990084,), (1353990087,), (1353990155,), (1353990526,), (1353990555,), (1353990573,), (1353990883,), (1353990915,), (1353990935,), (1353990939,), (1353991018,), (1353991021,), (1353991032,), (1353991089,), (1353991092,), (1353991096,), (1353991102,), (1353991105,), (1353991108,), (1353991382,), (1353991362,), (1353991374,), (1353991378,), (1353991877,), (1353991906,), (1353991961,), (1353991992,), (1353992002,), (1353992037,), (1353992041,), (1353992108,), (1353992151,), (1353992187,), (1353992215,), (1353992395,), (1353992401,), (1353992404,), (1353992728,), (1353992781,), (1353992835,), (1353992877,), (1353992905,), (1353993084,), (1353993115,), (1353993144,), (1353993173,), (1353993199,), (1353993206,), (1353993279,), (1353993295,), (1353993348,), (1353993415,), (1353993470,), (1353993994,), (1353994023,), (1353994037,), (1353994044,), (1353994049,), (1353994368,), (1353994425,), (1353994788,), (1353994793,), (1353994798,), (1353994818,), (1353995153,), (1353995160,), (1353995164,), (1353995195,), (1353995210,), (1353995493,), (1353995506,), (1353995519,), (1353995652,), (1353995654,), (1353995658,), (1353995661,), (1353995665,), (1353995668,), (1353995703,), (1353995772,), (1353995773,), (1353995785,), (1353995811,), (1353995862,), (1353995877,), (1353995879,), (1353995881,), (1353995884,), (1353996265,), (1353996123,), (1353996224,), (1353996228,), (1353996259,), (1353996262,), (1353996398,), (1353996414,), (1353996419,), (1353996422,), (1353996479,), (1353996481,), (1353996484,), (1353996487,), (1353996489,), (1353996613,), (1353996664,), (1353996719,), (1353996771,), (1353996822,), (1353996887,), (1353997013,), (1353997049,), (1353997099,), (1353997147,), (1353997505,), (1353997509,), (1353997512,), (1353997530,), (1353997558,), (1353997632,), (1353997635,), (1353997639,), (1353997649,), (1353997653,), (1353997674,), (1353997677,), (1353997681,), (1353997686,), (1353997689,), (1353997966,), (1353997995,), (1353998027,), (1353998070,), (1353998100,), (1353998180,), (1353998209,), (1353998238,), (1353998279,), (1353998411,), (1353998421,), (1353998427,), (1353998433,), (1353998461,), (1354001757,), (1354010309,), (1354010324,), (1354010754,), (1354011430,), (1354011435,), (1354011439,), (1354011443,), (1354011564,), (1354011581,), (1354012178,), (1354012205,), (1354012271,), (1354012281,), (1354012561,), (1354012593,), (1354012986,), (1354013599,), (1354013364,), (1354013388,), (1354013497,), (1354013508,), (1354013909,), (1354013990,), (1354014063,), (1354014119,), (1354014145,), (1354014333,), (1354014361,), (1354014390,), (1354014416,), (1354014441,), (1354014799,), (1354014827,), (1354014856,), (1354014908,), (1354014936,), (1354014941,), (1354015058,), (1354015064,), (1354015077,), (1354015112,), (1354015452,), (1354015482,), (1354015519,), (1354015586,), (1354016138,), (1354016237,), (1354016291,), (1354016331,), (1354016345,), (1354016542,), (1354016546,), (1354016550,), (1354016554,), (1354016574,), (1354016600,), (1354016832,), (1354016838,), (1354016883,), (1354016909,), (1354016934,), (1354016964,), (1354016992,), (1354017023,), (1354017259,), (1354017264,), (1354017269,), (1354017281,), (1354017292,), (1354017820,), (1354017870,), (1354017917,), (1354017990,), (1354018059,), (1354018251,), (1354018254,), (1354018258,), (1354018464,), (1354018468,), (1354018471,), (1354018474,), (1354018477,), (1354018482,), (1354018501,), (1354018735,), (1354018596,), (1354018607,), (1354018652,), (1354019131,), (1354019192,), (1354019223,), (1354019708,), (1354019964,), (1354020111,), (1354020117,), (1354020379,), (1354020386,), (1354020390,), (1354020405,), (1354020434,), (1354020512,), (1354021005,), (1354021011,), (1354021017,), (1354021071,), (1354021126,), (1354021860,), (1354021969,), (1354022028,), (1354022083,), (1354022640,), (1354022769,), (1354022815,), (1354022985,), (1354023002,), (1354023009,), (1354023036,), (1354023058,), (1354023086,), (1354023373,), (1354023415,), (1354023471,), (1354023515,), (1354023550,), (1354023940,), (1354023972,), (1354024010,), (1354024041,), (1354024253,), (1354024300,), (1354024350,), (1354024410,), (1354024451,), (1354024484,), (1354024875,), (1354024930,), (1354025002,), (1354025057,), (1354025110,), (1354025373,), (1354025397,), (1354025430,), (1354025783,), (1354025838,), (1354025891,), (1354025963,), (1354026019,), (1354026184,), (1354026164,), (1354026168,), (1354026173,), (1354026176,), (1354026181,), (1354026438,), (1354026486,), (1354026511,), (1354026541,), (1354026587,), (1354026591,), (1354026595,), (1354026605,), (1354026657,), (1354026663,), (1354026667,), (1354026671,), (1354026674,), (1354026785,), (1354026787,), (1354026790,), (1354026794,), (1354026853,), (1354026876,), (1354026989,), (1354026994,), (1354026999,), (1354027046,), (1354027074,), (1354027102,), (1354027129,), (1354027447,), (1354027495,), (1354027553,), (1354027609,), (1354028073,), (1354028102,), (1354028132,), (1354028164,), (1354028199,), (1354028216,), (1354028372,), (1354028577,), (1354028581,), (1354028584,), (1354028588,), (1354028591,), (1354028594,), (1354028777,), (1354028804,), (1354028832,), (1354028836,), (1354028839,), (1354029125,), (1354029158,), (1354029518,), (1354029483,), (1354029486,), (1354029503,), (1354029735,), (1354029750,), (1354029786,), (1354029815,), (1354030100,), (1354030258,), (1354030291,), (1354030321,), (1354030363,), (1354030594,), (1354030599,), (1354030603,), (1354031353,), (1354031383,), (1354031410,), (1354031524,), (1354032068,), (1354032127,), (1354032178,), (1354032235,), (1354032286,), (1354032478,), (1354032480,), (1354032482,), (1354032520,), (1354033060,), (1354033112,), (1354033178,), (1354033183,), (1354033442,), (1354033474,), (1354033535,), (1354033566,), (1354033574,), (1354033579,), (1354033721,), (1354033733,), (1354033741,), (1354033746,), (1354033777,), (1354033782,), (1354033789,), (1354033992,), (1354034112,), (1354034122,), (1354034362,), (1354034407,), (1354034674,), (1354034678,), (1354034682,), (1354034686,), (1354034690,), (1354035017,), (1354035045,), (1354035102,), (1354035141,), (1354035170,), (1354035425,), (1354035282,), (1354035308,), (1354035390,), (1354035419,), (1354035517,), (1354035520,), (1354035523,), (1354035872,), (1354035886,), (1354035889,), (1354035893,), (1354035917,), (1354035935,), (1354036258,), (1354036274,), (1354036301,), (1354036311,), (1354036474,), (1354036476,), (1354036483,), (1354036512,), (1354036547,), (1354036574,), (1354036699,), (1354036704,), (1354036711,), (1354036743,), (1354036774,), (1354036795,), (1354036836,), (1354036837,), (1354036839,), (1354036841,), (1354036843,), (1354036868,), (1354036869,), (1354039164,), (1354039195,), (1354039228,), (1354039282,), (1354039331,), (1354039682,), (1354039713,), (1354039755,), (1354039798,), (1354039857,), (1354040403,), (1354040296,), (1354040336,), (1354040370,), (1354041134,), (1354041177,), (1354041219,), (1354041250,), (1354041262,), (1354041294,), (1354041327,), (1354041356,), (1354041400,), (1354041457,), (1354041511,), (1354041952,), (1354041990,), (1354042043,), (1354042079,), (1354042402,), (1354042430,), (1354042468,), (1354042524,), (1354043143,), (1354043227,), (1354043319,), (1354043382,), (1354043457,), (1354044487,), (1354044593,), (1354044719,), (1354044802,), (1354045444,), (1354045509,), (1354046058,), (1354046111,), (1354046161,), (1354046203,), (1354046474,), (1354046478,), (1354046492,), (1354046559,), (1354046616,), (1354046898,), (1354046927,), (1354047622,), (1354047639,), (1354047673,), (1354047851,), (1354047854,), (1354047858,), (1354047862,), (1354047866,), (1354047885,), (1354047909,), (1354047913,), (1354047925,), (1354047929,), (1354047973,), (1354047961,), (1354047964,), (1354047969,), (1354048327,), (1354048353,), (1354048362,), (1354048812,), (1354048840,), (1354048968,), (1354048996,), (1354049240,), (1354049274,), (1354049302,), (1354049330,), (1354049357,), (1354049788,), (1354049794,), (1354049800,), (1354049806,), (1354050076,), (1354050144,), (1354050190,), (1354050247,), (1354050252,), (1354050354,), (1354050357,), (1354050360,), (1354050568,), (1354050570,), (1354050573,), (1354050576,), (1354050635,), (1354050705,), (1354051154,), (1354051176,), (1354051203,), (1354051648,), (1354051650,), (1354051654,), (1354051657,), (1354051694,), (1354051697,), (1354051731,), (1354051759,), (1354051777,), (1354051784,), (1354051787,), (1354052010,), (1354052065,), (1354052113,), (1354052165,), (1354053791,), (1354053878,), (1354053959,), (1354054012,), (1354054075,), (1354054308,), (1354054610,), (1354054695,), (1354054857,), (1354054787,), (1354054806,), (1354054818,), (1354054823,), (1354055279,), (1354055315,), (1354055346,), (1354055352,), (1354055355,), (1354055378,), (1354055384,), (1354055389,), (1354055393,), (1354055843,), (1354055847,), (1354055853,), (1354056155,), (1354056158,), (1354056162,), (1354056166,), (1354056171,), (1354056196,), (1354056200,), (1354056205,), (1354056211,), (1354056215,), (1354056244,), (1354056254,), (1354056259,), (1354056262,), (1354056267,), (1354056293,), (1354056300,), (1354056377,), (1354056737,), (1354056749,), (1354056754,), (1354057098,), (1354057147,), (1354057203,), (1354057265,), (1354057327,), (1354057383,), (1354057734,), (1354057776,), (1354057805,), (1354057834,), (1354058155,), (1354058159,), (1354058163,), (1354058174,), (1354058393,), (1354058446,), (1354058981,), (1354059016,), (1354059047,), (1354059076,), (1354059105,), (1354059135,), (1354059401,), (1354059419,), (1354059422,), (1354059426,), (1354059429,), (1354059468,), (1354059463,), (1354059466,), (1354059691,), (1354059721,), (1354059749,), (1354059780,), (1354059820,), (1354059859,), (1354059864,), (1354059870,), (1354059888,), (1354060026,), (1354060030,), (1354060034,), (1354060040,), (1354060044,), (1354060201,), (1354060228,), (1354060259,), (1354060300,), (1354060354,), (1354060357,), (1354060362,), (1354060402,), (1354060407,), (1354060411,), (1354060415,), (1354060449,), (1354060471,), (1354060479,), (1354060483,), (1354060531,), (1354060543,), (1354060551,), (1354060554,), (1354060565,), (1354060621,), (1354060625,), (1354060629,), (1354060672,), (1354060676,), (1354060736,), (1354060741,), (1354060831,), (1354060837,), (1354060844,), (1354060858,), (1354060862,), (1354060868,), (1354060914,), (1354060918,), (1354060927,), (1354060930,), (1354060934,), (1354060959,), (1354060966,), (1354060973,), (1354060978,), (1354060984,), (1354061035,), (1354061008,), (1354061020,), (1354061025,), (1354061030,), (1354061063,), (1354061070,), (1354061077,), (1354061082,), (1354061087,), (1354061122,), (1354061126,), (1354061130,), (1354061174,), (1354061183,), (1354061192,), (1354061198,), (1354061221,), (1354061225,), (1354061233,), (1354061239,), (1354061249,), (1354061267,), (1354061270,), (1354061278,), (1354061281,), (1354061348,), (1354061354,), (1354061358,), (1354061362,), (1354061417,), (1354061419,), (1354061422,), (1354061424,), (1354061461,), (1354061466,), (1354061471,), (1354061476,), (1354061485,), (1354061527,), (1354061529,), (1354061533,), (1354061593,), (1354061597,), (1354061602,), (1354061606,), (1354061609,), (1354061644,), (1354061653,), (1354061656,), (1354061662,), (1354061666,), (1354061670,), (1354061691,), (1354061697,), (1354061703,), (1354061907,), (1354061935,), (1354061965,), (1354061999,), (1354062025,), (1354062417,), (1354062280,), (1354062307,), (1354062331,), (1354062358,), (1354062387,), (1354062723,), (1354062751,), (1354062783,), (1354063139,), (1354063144,), (1354063148,), (1354063156,), (1354063191,), (1354063194,), (1354063198,), (1354063323,), (1354063354,), (1354063428,), (1354063744,), (1354063745,), (1354063749,), (1354063753,), (1354063933,), (1354063936,), (1354063980,), (1354063983,), (1354064008,), (1354064297,), (1354064304,), (1354064309,), (1354064316,), (1354064320,), (1354064353,), (1354064356,), (1354064359,), (1354064363,), (1354064366,), (1354064399,), (1354064402,), (1354064408,), (1354064455,), (1354064458,), (1354064460,), (1354064473,), (1354064497,), (1354064521,), (1354064771,), (1354064836,), (1354064862,), (1354064889,), (1354064916,), (1354064966,), (1354065879,), (1354065899,), (1354065910,), (1354066012,), (1353881172,), (1353881448,), (1353881488,), (1353881629,), (1353881662,), (1353881692,), (1353881720,), (1353881733,), (1353881741,), (1353881770,), (1353881777,), (1353881781,), (1353881783,), (1353881788,), (1353881811,), (1353881817,), (1353881822,), (1353881828,), (1353881834,), (1353881839,), (1353881899,), (1353881905,), (1353881968,), (1353881974,), (1353881985,), (1353882012,), (1353882018,), (1353882026,), (1353880051,), (1353880284,), (1353880415,), (1353880484,), (1353880549,), (1353880612,), (1353880673,), (1353880794,), (1353881124,), (1353879050,), (1353879546,), (1353879582,), (1353879618,), (1353879776,), (1353879814,), (1353879853,), (1353879887,), (1353879970,), (1353877149,), (1353877213,), (1353878317,), (1353878383,), (1353878469,), (1353878579,), (1353878754,), (1353878812,), (1353878882,), (1353878956,), (1353879012,), (1353876876,), (1353876881,), (1353876885,), (1353876897,), (1353876905,), (1353876907,), (1353876911,), (1353876915,), (1353876921,), (1353876942,), (1353876943,), (1353876946,), (1353876965,), (1353876968,), (1353876973,), (1353876977,), (1353876993,), (1353877005,), (1353877037,), (1353877093,), (1353874866,), (1353874870,), (1353874921,), (1353874956,), (1353874991,), (1353875026,), (1353875062,), (1353875097,), (1353875231,), (1353875286,), (1353875334,), (1353875404,), (1353875483,), (1353875534,), (1353875786,), (1353875791,), (1353875796,), (1353875799,), (1353875804,), (1353875890,), (1353875931,), (1353876030,), (1353876048,), (1353876067,), (1353876083,), (1353876142,), (1353876144,), (1353876180,), (1353876182,), (1353876216,), (1353876217,), (1353876246,), (1353876247,), (1353876253,), (1353876254,), (1353876259,), (1353876267,), (1353876325,), (1353876338,), (1353876361,), (1353876366,), (1353876398,), (1353876430,), (1353876488,), (1353876518,), (1353876521,), (1353870446,), (1353870775,), (1353870851,), (1353870956,), (1353871066,), (1353871140,), (1353871213,), (1353871380,), (1353871461,), (1353871547,), (1353871610,), (1353871692,), (1353871748,), (1353871955,), (1353872008,), (1353872047,), (1353872080,), (1353872131,), (1353872204,), (1353872751,), (1353872818,), (1353872871,), (1353872894,), (1353872925,), (1353872959,), (1353873058,), (1353873069,), (1353873073,), (1353873226,), (1353873284,), (1353873334,), (1353873628,), (1353873760,), (1353873846,), (1353873909,), (1353873989,), (1353874050,), (1353874467,), (1353874502,), (1353874531,), (1353874570,), (1353874605,), (1353874627,), (1353874631,), (1353874637,), (1353874643,), (1353874648,), (1353874658,), (1353874746,), (1353874751,), (1353874780,), (1353874785,), (1353874813,), (1353874820,), (1353874838,), (1353874846,), (1353874850,), (1353874854,), (1353867325,), (1353867344,), (1353867354,), (1353867362,), (1353867398,), (1353867404,), (1353867420,), (1353867424,), (1353867431,), (1353867445,), (1353867465,), (1353867493,), (1353867534,), (1353867556,), (1353867562,), (1353867597,), (1353867602,), (1353867614,), (1353867620,), (1353867624,), (1353867651,), (1353867749,), (1353867781,), (1353867810,), (1353867845,), (1353867928,), (1353868052,), (1353868211,), (1353868244,), (1353868349,), (1353868399,), (1353868447,), (1353868479,), (1353868642,), (1353868671,), (1353868700,), (1353868728,), (1353868759,), (1353868791,), (1353868846,), (1353868848,), (1353868856,), (1353868857,), (1353868867,), (1353868868,), (1353868873,), (1353868874,), (1353868879,), (1353868880,), (1353868884,), (1353868885,), (1353868905,), (1353868932,), (1353868989,), (1353869054,), (1353869134,), (1353869194,), (1353869394,), (1353869459,), (1353869519,), (1353869604,), (1353869687,), (1353869779,), (1353870052,), (1353870132,), (1353870210,), (1353870281,), (1353870352,), (1353866775,), (1353866814,), (1353866853,), (1353866941,), (1353866969,), (1353866985,), (1353866995,), (1353867018,), (1353867025,), (1353867057,), (1353867093,), (1353867125,), (1353867156,), (1353867192,), (1353867211,), (1353867286,), (1353867305,), (1353866628,), (1353866662,), (1353866690,), (1353866710,), (1353866714,), (1353866727,), (1353866732,), (1353866739,), (1353866199,), (1353866205,), (1353866209,), (1353866215,), (1353866315,), (1353866351,), (1353866391,), (1353866428,), (1353866460,), (1353866495,), (1353864533,), (1353864549,), (1353864644,), (1353864649,), (1353864655,), (1353864662,), (1353864668,), (1353864675,), (1353864693,), (1353864697,), (1353864799,), (1353864806,), (1353864851,), (1353864926,), (1353864933,), (1353864940,), (1353864951,), (1353864960,), (1353864981,), (1353865099,), (1353865130,), (1353865144,), (1353865149,), (1353865155,), (1353865184,), (1353865252,), (1353865254,), (1353865257,), (1353865333,), (1353865396,), (1353865451,), (1353865573,), (1353865603,), (1353865606,), (1353865611,), (1353865615,), (1353865624,), (1353865717,), (1353865736,), (1353865739,), (1353865744,), (1353865749,), (1353865753,), (1353865858,), (1353865886,), (1353866019,), (1353866025,), (1353866029,), (1353866032,), (1353866056,), (1353866079,), (1353866088,), (1353866100,), (1353866104,), (1353866109,), (1353866158,), (1353866189,), (1353863491,), (1353863532,), (1353863538,), (1353863544,), (1353863550,), (1353863557,), (1353863562,), (1353863578,), (1353863586,), (1353863592,), (1353863598,), (1353863603,), (1353863607,), (1353863645,), (1353863650,), (1353863657,), (1353863667,), (1353863692,), (1353863810,), (1353863855,), (1353863905,), (1353863936,), (1353863990,), (1353864013,), (1353864119,), (1353864120,), (1353864131,), (1353864132,), (1353864138,), (1353864139,), (1353864158,), (1353864167,), (1353864194,), (1353864203,), (1353864209,), (1353864210,), (1353864221,), (1353864225,), (1353864228,), (1353864233,), (1353864239,), (1353864244,), (1353864258,), (1353864265,), (1353864272,), (1353864278,), (1353864289,), (1353864296,), (1353864311,), (1353864314,), (1353864319,), (1353864330,), (1353864361,), (1353864396,), (1353864479,), (1353864485,), (1353864513,), (1353864530,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28042025': {'nb_upload': 11, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22476856]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] map_info['map_portfolio_photo'] : {22476856: [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149]} final : True mtd_id 4302 list_pids : [1353879012, 1353878956, 1353878882, 1353878812, 1353878754, 1353878579, 1353878469, 1353878383, 1353878317, 1353877213, 1353877149] Looping around the photos to save general results len do output : 1 /22476856Didn'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, '2767386') ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386') ('4302', None, None, None, None, None, None, None, '2767386') ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22476856', 'None', None, None, None, None, '2767386'), ('4302', '22476856', '1353879012', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878956', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878882', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878812', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878754', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878579', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878469', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878383', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353878317', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877213', None, None, None, None, None, '2767386'), ('4302', '22476856', '1353877149', None, None, None, None, None, '2767386')] time used for this insertion : 0.025175094604492188 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9526588916778564 time spend to save output : 0.025408506393432617 total time spend for step 5 : 2.978067398071289 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 (2767386) 2.35user 2.09system 0:08.41elapsed 52%CPU (0avgtext+0avgdata 158860maxresident)k 120inputs+7040outputs (70major+77486minor)pagefaults 0swaps