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 : 1034967 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 (2882787) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2882787) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076021 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2882787'] with mtr_portfolio_ids : ['23076021'] and first list_photo_ids : [] new path : /proc/1034967/ Name: python3 Umask: 0002 State: R (running) Tgid: 1034967 Ngid: 0 Pid: 1034967 PPid: 1034966 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1034967 NSpid: 1034967 NSpgid: 1032082 NSsid: 1032082 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98112 kB VmRSS: 98112 kB RssAnon: 60200 kB RssFile: 37912 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 63 nonvoluntary_ctxt_switches: 152 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1034967', 'Ngid': '0', 'Pid': '1034967', 'PPid': '1034966', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1034967', 'NSpid': '1034967', 'NSpgid': '1032082', 'NSsid': '1032082', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98112 kB', 'VmRSS': '98112 kB', 'RssAnon': '60200 kB', 'RssFile': '37912 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '63', 'nonvoluntary_ctxt_switches': '152'} ('datou_batch_current', '1034967', '1107228', '0', '1107228', '865976', '98112', b'', 'marlene', '2882787') 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 (23076021) 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 (2882787 ) ) 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 (23076021) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359023651, 'portfolio_id': 23076021}, {'photo_id': 1359023623, 'portfolio_id': 23076021}, {'photo_id': 1359023596, 'portfolio_id': 23076021}, {'photo_id': 1359023588, 'portfolio_id': 23076021}, {'photo_id': 1359023583, 'portfolio_id': 23076021}, {'photo_id': 1359023540, 'portfolio_id': 23076021}, {'photo_id': 1359023537, 'portfolio_id': 23076021}, {'photo_id': 1359023532, 'portfolio_id': 23076021}, {'photo_id': 1359023528, 'portfolio_id': 23076021}, {'photo_id': 1359023490, 'portfolio_id': 23076021}, {'photo_id': 1359023471, 'portfolio_id': 23076021}, {'photo_id': 1359023439, 'portfolio_id': 23076021}, {'photo_id': 1359023412, 'portfolio_id': 23076021}, {'photo_id': 1359023407, 'portfolio_id': 23076021}, {'photo_id': 1359023265, 'portfolio_id': 23076021}, {'photo_id': 1359023247, 'portfolio_id': 23076021}, {'photo_id': 1359023213, 'portfolio_id': 23076021}, {'photo_id': 1359023167, 'portfolio_id': 23076021}, {'photo_id': 1359023133, 'portfolio_id': 23076021}, {'photo_id': 1359022896, 'portfolio_id': 23076021}, {'photo_id': 1359022880, 'portfolio_id': 23076021}, {'photo_id': 1359022876, 'portfolio_id': 23076021}] map_portfolio_id_photo_id: {23076021: [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407, 1359023265, 1359023247, 1359023213, 1359023167, 1359023133, 1359022896, 1359022880, 1359022876]} ##### 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.014951705932617188 #### 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 Fri May 16 18:20:56 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 (23076021) 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 : 23076021 get user id for portfolio 23076021 get sub ptf for main ptf 23076021, type 3726 and hashtags ['environnement', 'kraft', 'metal', 'mal_croppe', 'plastique', 'flou', 'Carton_gris', 'cartonnette', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23076021 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','plastique','flou','Carton_gris','cartonnette','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus')) 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`=23076021 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','plastique','flou','Carton_gris','cartonnette','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 23076021, 'sub_port_id': 23076036, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398792, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'papier': {'main_port_id': 23076021, 'sub_port_id': 23076037, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398793, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'plastique': {'main_port_id': 23076021, 'sub_port_id': 23076038, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398794, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'environnement': {'main_port_id': 23076021, 'sub_port_id': 23076039, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398795, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'Carton_gris': {'main_port_id': 23076021, 'sub_port_id': 23076040, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398796, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'mal_croppe': {'main_port_id': 23076021, 'sub_port_id': 23076041, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398797, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'metal': {'main_port_id': 23076021, 'sub_port_id': 23076042, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398798, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'kraft': {'main_port_id': 23076021, 'sub_port_id': 23076043, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398799, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'cartonnette': {'main_port_id': 23076021, 'sub_port_id': 23076044, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398800, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'autre_refus': {'main_port_id': 23076021, 'sub_port_id': 23076045, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398801, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23076021, 'sub_port_id': 23076046, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398802, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}, 'flou': {'main_port_id': 23076021, 'sub_port_id': 23076047, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398803, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23076036 , 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=23076021 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 (23076036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076037 , 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=23076021 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 (23076037) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076038 , 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=23076021 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 (23076038) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076039 , 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=23076021 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 (23076039) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076040 , 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=23076021 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 (23076040) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076041 , 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=23076021 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 (23076041) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076042 , 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=23076021 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 (23076042) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076043 , 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=23076021 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 (23076043) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076044 , 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=23076021 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 (23076044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076045 , 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=23076021 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 (23076045) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076046 , 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=23076021 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 (23076046) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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 23076047 , 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=23076021 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 (23076047) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23076021) result : ((1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) 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`=23076021 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','plastique','flou','Carton_gris','cartonnette','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus')) 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`=23076021 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','mal_croppe','plastique','flou','Carton_gris','cartonnette','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 23076021, 'sub_port_id': 23076048, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398804, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'papier': {'main_port_id': 23076021, 'sub_port_id': 23076049, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398805, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'plastique': {'main_port_id': 23076021, 'sub_port_id': 23076050, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398806, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'environnement': {'main_port_id': 23076021, 'sub_port_id': 23076051, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398807, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'Carton_gris': {'main_port_id': 23076021, 'sub_port_id': 23076052, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398808, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'mal_croppe': {'main_port_id': 23076021, 'sub_port_id': 23076053, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398809, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'metal': {'main_port_id': 23076021, 'sub_port_id': 23076054, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398810, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'kraft': {'main_port_id': 23076021, 'sub_port_id': 23076055, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398811, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'cartonnette': {'main_port_id': 23076021, 'sub_port_id': 23076056, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398812, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'autre_refus': {'main_port_id': 23076021, 'sub_port_id': 23076057, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398813, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 23076021, 'sub_port_id': 23076058, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398814, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}, 'flou': {'main_port_id': 23076021, 'sub_port_id': 23076059, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15398815, 'last_updated_at': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 18, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 18, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076046 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23076059,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23076047 lien utilise dans velours : https://www.fotonower.com/velours/23076048,23076049,23076050,23076051,23076052,23076053,23076054,23076055,23076056,23076057,23076058,23076059?tags=Carton_brun,papier,plastique,environnement,Carton_gris,mal_croppe,metal,kraft,cartonnette,autre_refus,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23076021]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] map_info['map_portfolio_photo'] : {23076021: [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407, 1359023265, 1359023247, 1359023213, 1359023167, 1359023133, 1359022896, 1359022880, 1359022876]} final : False mtd_id 4302 list_pids : [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] Looping around the photos to save general results len do output : 1 /23076021. 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, '2882787') ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23076021', "{'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047}", None, None, None, None, '2882787'), ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787')] time used for this insertion : 0.01533961296081543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5650064945220947 time spend to save output : 0.015616416931152344 total time spend for step 1 : 1.580622911453247 step2:final Fri May 16 18:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23076021) 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 23076021 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359022896,1359022880,1359022876,1359023265,1359023247,1359023213,1359023167,1359023133,1359023490,1359023471,1359023439,1359023412,1359023407,1359023540,1359023537,1359023532,1359023528,1359023651,1359023623,1359023596,1359023588,1359023583); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23076021]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} new output for save of step final : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] map_info['map_portfolio_photo'] : {23076021: [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407, 1359023265, 1359023247, 1359023213, 1359023167, 1359023133, 1359022896, 1359022880, 1359022876]} final : False mtd_id 4302 list_pids : [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] Looping around the photos to save general results len do output : 14 /1359023651.Didn't retrieve data . /1359023623.Didn't retrieve data . /1359023596.Didn't retrieve data . /1359023588.Didn't retrieve data . /1359023583.Didn't retrieve data . /1359023540.Didn't retrieve data . /1359023537.Didn't retrieve data . /1359023532.Didn't retrieve data . /1359023528.Didn't retrieve data . /1359023490.Didn't retrieve data . /1359023471.Didn't retrieve data . /1359023439.Didn't retrieve data . /1359023412.Didn't retrieve data . /1359023407.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, '2882787') ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23076021', '1359023651', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023623', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023596', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023588', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023583', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023540', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023537', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023532', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023528', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023490', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023471', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023439', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023412', '0.0', None, None, None, None, '2882787'), ('4302', '23076021', '1359023407', '0.0', None, None, None, None, '2882787')] time used for this insertion : 0.013444900512695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05336427688598633 time spend to save output : 0.014158248901367188 total time spend for step 2 : 0.06752252578735352 step3:velours_tree Fri May 16 18:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23076021: [{'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047}]} input_args_next_step : {23076021: ()} output_args : {23076021: [{'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047}]} args : 23076021 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23076021) 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([23076021]) 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.33481717109680176 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.33487582206726074 step4:send_mail_cod Fri May 16 18:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} input_args_next_step : {1359023651: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023651 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023623 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023596 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023588 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023583 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023540 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023537 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023532 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023528 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023490 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023471 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023439 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023412 depend.output_id : 0 input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ()} output_args : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',)} args : 1359023407 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 : {23076021: [{'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047}]} input_args_next_step : {1359023651: ('0.0',), 1359023623: ('0.0',), 1359023596: ('0.0',), 1359023588: ('0.0',), 1359023583: ('0.0',), 1359023540: ('0.0',), 1359023537: ('0.0',), 1359023532: ('0.0',), 1359023528: ('0.0',), 1359023490: ('0.0',), 1359023471: ('0.0',), 1359023439: ('0.0',), 1359023412: ('0.0',), 1359023407: ('0.0',), 23076021: ()} output_args : {23076021: [{'Carton_brun': 23076036, 'papier': 23076037, 'plastique': 23076038, 'environnement': 23076039, 'Carton_gris': 23076040, 'mal_croppe': 23076041, 'metal': 23076042, 'kraft': 23076043, 'cartonnette': 23076044, 'autre_refus': 23076045, 'Teint_Dans_La_Masse': 23076046, 'flou': 23076047}]} args : 23076021 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23076021) 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 (1359023651,1359023623,1359023596,1359023588,1359023583,1359023540,1359023537,1359023532,1359023528,1359023490,1359023471,1359023439,1359023412,1359023407) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359023407 begin to download photo : 1359023471 begin to download photo : 1359023532 begin to download photo : 1359023583 begin to download photo : 1359023623 download finish for photo 1359023532 begin to download photo : 1359023537 download finish for photo 1359023471 begin to download photo : 1359023490 download finish for photo 1359023583 begin to download photo : 1359023588 download finish for photo 1359023407 begin to download photo : 1359023412 download finish for photo 1359023623 begin to download photo : 1359023651 download finish for photo 1359023537 begin to download photo : 1359023540 download finish for photo 1359023588 download finish for photo 1359023490 begin to download photo : 1359023596 begin to download photo : 1359023528 download finish for photo 1359023651 download finish for photo 1359023412 begin to download photo : 1359023439 download finish for photo 1359023528 download finish for photo 1359023540 download finish for photo 1359023596 download finish for photo 1359023439 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230760381747412458/ imagette230760411747412458/ imagette230760421747412458/ imagette230760431747412458/ imagette230760441747412458/ imagette230760451747412458/ imagette230760471747412458/ imagette230760361747412458/ imagette230760401747412458/ imagette230760461747412458/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P23076021_16-05-2025_18_20_58.pdf 23076038 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=23076038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760381747412458 23076041 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=23076041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760411747412458 23076042 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=23076042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760421747412458 23076043 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=23076043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760431747412458 23076044 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=23076044 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760441747412458 23076045 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=23076045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760451747412458 23076047 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=23076047 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760471747412458 23076036 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=23076036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760361747412458 23076040 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=23076040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760401747412458 23076046 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=23076046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230760461747412458 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23076021 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23076048,23076049,23076050,23076051,23076052,23076053,23076054,23076055,23076056,23076057,23076058,23076059?tags=Carton_brun,papier,plastique,environnement,Carton_gris,mal_croppe,metal,kraft,cartonnette,autre_refus,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1359023651] : ('0.0',) no score found for photo 1359023651 We are sending mail with results at report@fotonower.com args[1359023623] : ('0.0',) no score found for photo 1359023623 We are sending mail with results at report@fotonower.com args[1359023596] : ('0.0',) no score found for photo 1359023596 We are sending mail with results at report@fotonower.com args[1359023588] : ('0.0',) no score found for photo 1359023588 We are sending mail with results at report@fotonower.com args[1359023583] : ('0.0',) no score found for photo 1359023583 We are sending mail with results at report@fotonower.com args[1359023540] : ('0.0',) no score found for photo 1359023540 We are sending mail with results at report@fotonower.com args[1359023537] : ('0.0',) no score found for photo 1359023537 We are sending mail with results at report@fotonower.com args[1359023532] : ('0.0',) no score found for photo 1359023532 We are sending mail with results at report@fotonower.com args[1359023528] : ('0.0',) no score found for photo 1359023528 We are sending mail with results at report@fotonower.com args[1359023490] : ('0.0',) no score found for photo 1359023490 We are sending mail with results at report@fotonower.com args[1359023471] : ('0.0',) no score found for photo 1359023471 We are sending mail with results at report@fotonower.com args[1359023439] : ('0.0',) no score found for photo 1359023439 We are sending mail with results at report@fotonower.com args[1359023412] : ('0.0',) no score found for photo 1359023412 We are sending mail with results at report@fotonower.com args[1359023407] : ('0.0',) no score found for photo 1359023407 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=23076021 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_P23076021_16-05-2025_18_20_58.pdf results_Auto_P23076021_16-05-2025_18_20_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_16-05-2025_18_20_58.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','23076021','results_Auto_P23076021_16-05-2025_18_20_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_16-05-2025_18_20_58.pdf','pdf','','0.13','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23076021]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] map_info['map_portfolio_photo'] : {23076021: [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407, 1359023265, 1359023247, 1359023213, 1359023167, 1359023133, 1359022896, 1359022880, 1359022876]} final : False mtd_id 4302 list_pids : [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] 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, '2882787') ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23076021', '1359023651', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787')] time used for this insertion : 0.013376712799072266 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5657765865325928 time spend to save output : 0.013738870620727539 total time spend for step 4 : 1.5795154571533203 step5:split_time_score Fri May 16 18:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['23076021'] 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 : [('23076021',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23076021) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359023623: {'path': 'temp/1747412458_1034967_1359023623_161de56b062095e35d6e0e35ec50e05d.jpg', 'extension': 'jpg'}, 1359023651: {'path': 'temp/1747412458_1034967_1359023651_7fa855aa2f2ad824fb8861455999941d.jpg', 'extension': 'jpg'}, 1359023471: {'path': 'temp/1747412458_1034967_1359023471_4d6213105e029920fa91715ac8d2d209.jpg', 'extension': 'jpg'}, 1359023490: {'path': 'temp/1747412458_1034967_1359023490_61adbad5b189217a72f0ad7f5c6f67b8.jpg', 'extension': 'jpg'}, 1359023528: {'path': 'temp/1747412458_1034967_1359023528_0862458091c972d082dfe0d8de7ca218.jpg', 'extension': 'jpg'}, 1359023532: {'path': 'temp/1747412458_1034967_1359023532_559e3963b8b14119fbe0a442e2843b51.jpg', 'extension': 'jpg'}, 1359023537: {'path': 'temp/1747412458_1034967_1359023537_5a17e1f346fe73660accff9d25cad917.jpg', 'extension': 'jpg'}, 1359023540: {'path': 'temp/1747412458_1034967_1359023540_0237db8e59fe0a18432b0572fcecd813.jpg', 'extension': 'jpg'}, 1359023583: {'path': 'temp/1747412458_1034967_1359023583_8a422c15a872bc93b4e216658a6bc295.jpg', 'extension': 'jpg'}, 1359023588: {'path': 'temp/1747412458_1034967_1359023588_c03fcc5e72e107e1e9dd12ef4e9a64f5.jpg', 'extension': 'jpg'}, 1359023596: {'path': 'temp/1747412458_1034967_1359023596_c177acc616fde84fc030994baa277704.jpg', 'extension': 'jpg'}, 1359023407: {'path': 'temp/1747412458_1034967_1359023407_4a50c78ab30d6c1f8af4f38ebd7e8840.jpg', 'extension': 'jpg'}, 1359023412: {'path': 'temp/1747412458_1034967_1359023412_0a4fa44eebc84c577786a0ce9c691148.jpg', 'extension': 'jpg'}, 1359023439: {'path': 'temp/1747412458_1034967_1359023439_6ef35bfb4010d9478e6ab821bea43996.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 = 23076021; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23076021 group by h (('18', 22),) 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=23076021 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 (23076021) 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 (23076021) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16052025 23076021 Nombre de photos uploadées : 22 / 23040 (0%) 16052025 23076021 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 16052025 23076021 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1359022896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/4d3548632aef0949a8cdfb7ec04eef49.jpg', 'username': None, 'uploaded_at': 1747412168, 'text': 'image_16052025_18_15_15_10135.jpg'}, {'photo_id': 1359022880, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/fea98a267da6f6f786516e8e4f2aef68.jpg', 'username': None, 'uploaded_at': 1747412168, 'text': 'image_16052025_18_15_34_9133.jpg'}, {'photo_id': 1359022876, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/141e5f53bfbd5d8a85fd028ced80203d.jpg', 'username': None, 'uploaded_at': 1747412168, 'text': 'image_16052025_18_15_44_10141.jpg'}, {'photo_id': 1359023265, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/d120fc372342d9db18c044fda127aed2.jpg', 'username': None, 'uploaded_at': 1747412227, 'text': 'image_16052025_18_15_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011985301971435547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23076021, '2025-05-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1811648,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02242112159729004 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= 1811648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23034669, 'dashboard_result_id': 10639174, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_16-05-2025_00_28_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23035427, 'dashboard_result_id': 10639175, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23036044, 'dashboard_result_id': 10639176, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23036833, 'dashboard_result_id': 10639177, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_16-05-2025_01_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23038437, 'dashboard_result_id': 10639178, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_16-05-2025_01_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23038906, 'dashboard_result_id': 10639179, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23039239, 'dashboard_result_id': 10639180, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_16-05-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23039804, 'dashboard_result_id': 10639181, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_16-05-2025_02_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23040500, 'dashboard_result_id': 10639182, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23040950, 'dashboard_result_id': 10639183, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_16-05-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23041439, 'dashboard_result_id': 10639184, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23042042, 'dashboard_result_id': 10639185, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23042498, 'dashboard_result_id': 10639186, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_16-05-2025_03_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23042957, 'dashboard_result_id': 10639187, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_16-05-2025_04_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23043383, 'dashboard_result_id': 10639188, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_16-05-2025_04_15_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23044975, 'dashboard_result_id': 10639189, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_16-05-2025_05_36_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23045316, 'dashboard_result_id': 10639190, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23045567, 'dashboard_result_id': 10639191, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_16-05-2025_05_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23046128, 'dashboard_result_id': 10639192, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_16-05-2025_06_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23046584, 'dashboard_result_id': 10639193, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23047224, 'dashboard_result_id': 10639194, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_16-05-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23048039, 'dashboard_result_id': 10639195, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23048561, 'dashboard_result_id': 10639196, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23049144, 'dashboard_result_id': 10639197, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23049841, 'dashboard_result_id': 10639198, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23050420, 'dashboard_result_id': 10639199, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23051264, 'dashboard_result_id': 10639200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23051628, 'dashboard_result_id': 10639201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23052259, 'dashboard_result_id': 10639202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_16-05-2025_08_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23052760, 'dashboard_result_id': 10639203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_16-05-2025_08_51_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23053317, 'dashboard_result_id': 10639204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23054976, 'dashboard_result_id': 10639205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_16-05-2025_09_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23055491, 'dashboard_result_id': 10639206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_16-05-2025_10_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23055623, 'dashboard_result_id': 10639207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_16-05-2025_10_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23056122, 'dashboard_result_id': 10639208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23056830, 'dashboard_result_id': 10639209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23057413, 'dashboard_result_id': 10639210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23057852, 'dashboard_result_id': 10639211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_16-05-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23058362, 'dashboard_result_id': 10639212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_16-05-2025_11_33_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23058889, 'dashboard_result_id': 10639213, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_16-05-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23059524, 'dashboard_result_id': 10639214, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23060185, 'dashboard_result_id': 10639215, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23063337, 'dashboard_result_id': 10639216, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23063886, 'dashboard_result_id': 10639217, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_16-05-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23064324, 'dashboard_result_id': 10639218, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23065118, 'dashboard_result_id': 10639219, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_16-05-2025_14_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23065765, 'dashboard_result_id': 10639220, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23066570, 'dashboard_result_id': 10639221, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_16-05-2025_15_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23067395, 'dashboard_result_id': 10639222, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_16-05-2025_15_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23068252, 'dashboard_result_id': 10639223, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_16-05-2025_15_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23068896, 'dashboard_result_id': 10639224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23069601, 'dashboard_result_id': 10639225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_16-05-2025_16_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23070321, 'dashboard_result_id': 10639226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_16-05-2025_16_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23071284, 'dashboard_result_id': 10639227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_16-05-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23071951, 'dashboard_result_id': 10639228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_16-05-2025_16_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23072665, 'dashboard_result_id': 10639229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_16-05-2025_17_03_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23073291, 'dashboard_result_id': 10639230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23074092, 'dashboard_result_id': 10639231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_16-05-2025_17_56_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23075621, 'dashboard_result_id': 10639232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_16-05-2025_18_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1822039, 'mtr_portfolio_id': 23076021, 'dashboard_result_id': 10639233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_16-05-2025_18_17_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076047, '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 = 23034669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2869807, 'mtr_portfolio_id': 23034669, 'created_at': datetime.datetime(2025, 5, 16, 0, 28, 8), 'result': '0.030408269339431825', 'result_long': None, 'result_double': None}] Qualite : 0.030408269339431825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23034669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_16-05-2025_00_28_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23034669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_16-05-2025_00_28_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}" where mtr_portfolio_id = 23034669 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23034669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639174, 0.030408269339431825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_16-05-2025_00_28_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23035427 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2869918, 'mtr_portfolio_id': 23035427, 'created_at': datetime.datetime(2025, 5, 16, 0, 33, 28), 'result': '0.02013378292851353', 'result_long': None, 'result_double': None}] Qualite : 0.02013378292851353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23035427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23035427 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}" where mtr_portfolio_id = 23035427 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23035427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639175, 0.02013378292851353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23036044 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870003, 'mtr_portfolio_id': 23036044, 'created_at': datetime.datetime(2025, 5, 16, 0, 48, 58), 'result': '0.03651313950008747', 'result_long': None, 'result_double': None}] Qualite : 0.03651313950008747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23036044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23036044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}" where mtr_portfolio_id = 23036044 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23036044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639176, 0.03651313950008747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23036833 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870105, 'mtr_portfolio_id': 23036833, 'created_at': datetime.datetime(2025, 5, 16, 1, 2, 28), 'result': '0.015236999469911427', 'result_long': None, 'result_double': None}] Qualite : 0.015236999469911427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23036833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_16-05-2025_01_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23036833 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_16-05-2025_01_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}" where mtr_portfolio_id = 23036833 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23036833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639177, 0.015236999469911427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_16-05-2025_01_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23038437 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870417, 'mtr_portfolio_id': 23038437, 'created_at': datetime.datetime(2025, 5, 16, 1, 48, 58), 'result': '0.04568497910594376', 'result_long': None, 'result_double': None}] Qualite : 0.04568497910594376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23038437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_16-05-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23038437 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_16-05-2025_01_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}" where mtr_portfolio_id = 23038437 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23038437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639178, 0.04568497910594376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_16-05-2025_01_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23038906 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870476, 'mtr_portfolio_id': 23038906, 'created_at': datetime.datetime(2025, 5, 16, 2, 2, 57), 'result': '0.022424208478130106', 'result_long': None, 'result_double': None}] Qualite : 0.022424208478130106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23038906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23038906 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}" where mtr_portfolio_id = 23038906 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23038906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639179, 0.022424208478130106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23039239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870587, 'mtr_portfolio_id': 23039239, 'created_at': datetime.datetime(2025, 5, 16, 2, 18, 58), 'result': '0.06528155994113762', 'result_long': None, 'result_double': None}] Qualite : 0.06528155994113762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23039239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_16-05-2025_02_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23039239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_16-05-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}" where mtr_portfolio_id = 23039239 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23039239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639180, 0.06528155994113762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_16-05-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23039804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870728, 'mtr_portfolio_id': 23039804, 'created_at': datetime.datetime(2025, 5, 16, 2, 32, 59), 'result': '0.06186487645839107', 'result_long': None, 'result_double': None}] Qualite : 0.06186487645839107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23039804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_16-05-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23039804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_16-05-2025_02_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}" where mtr_portfolio_id = 23039804 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23039804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639181, 0.06186487645839107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_16-05-2025_02_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23040500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2870904, 'mtr_portfolio_id': 23040500, 'created_at': datetime.datetime(2025, 5, 16, 2, 48, 59), 'result': '0.04066728475556016', 'result_long': None, 'result_double': None}] Qualite : 0.04066728475556016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23040500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23040500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}" where mtr_portfolio_id = 23040500 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23040500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639182, 0.04066728475556016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23040950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871067, 'mtr_portfolio_id': 23040950, 'created_at': datetime.datetime(2025, 5, 16, 3, 2, 58), 'result': '0.06931773384453671', 'result_long': None, 'result_double': None}] Qualite : 0.06931773384453671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23040950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_16-05-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23040950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_16-05-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}" where mtr_portfolio_id = 23040950 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23040950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639183, 0.06931773384453671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_16-05-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23041439 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871300, 'mtr_portfolio_id': 23041439, 'created_at': datetime.datetime(2025, 5, 16, 3, 17, 10), 'result': '0.09037646145681835', 'result_long': None, 'result_double': None}] Qualite : 0.09037646145681835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23041439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23041439 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}" where mtr_portfolio_id = 23041439 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23041439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639184, 0.09037646145681835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042042 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871398, 'mtr_portfolio_id': 23042042, 'created_at': datetime.datetime(2025, 5, 16, 3, 32, 56), 'result': '0.07254109514315413', 'result_long': None, 'result_double': None}] Qualite : 0.07254109514315413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}" where mtr_portfolio_id = 23042042 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639185, 0.07254109514315413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042498 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 = 23042498 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 = 23042498 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042498 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 = 23042498 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871484, 'mtr_portfolio_id': 23042498, 'created_at': datetime.datetime(2025, 5, 16, 3, 48, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_16-05-2025_03_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042498 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_16-05-2025_03_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}" where mtr_portfolio_id = 23042498 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639186, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_16-05-2025_03_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042957 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871579, 'mtr_portfolio_id': 23042957, 'created_at': datetime.datetime(2025, 5, 16, 4, 4, 59), 'result': '0.014530686249051955', 'result_long': None, 'result_double': None}] Qualite : 0.014530686249051955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_16-05-2025_04_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042957 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_16-05-2025_04_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}" where mtr_portfolio_id = 23042957 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639187, 0.014530686249051955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_16-05-2025_04_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23043383 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2871744, 'mtr_portfolio_id': 23043383, 'created_at': datetime.datetime(2025, 5, 16, 18, 0, 32), 'result': '0.05602535303021436', 'result_long': None, 'result_double': None}] Qualite : 0.05602535303021436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23043383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_16-05-2025_18_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23043383 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_16-05-2025_18_00_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}" where mtr_portfolio_id = 23043383 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23043383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639188, 0.05602535303021436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_16-05-2025_18_00_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23044975 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872241, 'mtr_portfolio_id': 23044975, 'created_at': datetime.datetime(2025, 5, 16, 5, 36, 28), 'result': '0.06561883923894966', 'result_long': None, 'result_double': None}] Qualite : 0.06561883923894966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23044975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_16-05-2025_05_36_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23044975 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_16-05-2025_05_36_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}" where mtr_portfolio_id = 23044975 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23044975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639189, 0.06561883923894966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_16-05-2025_05_36_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23045316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872242, 'mtr_portfolio_id': 23045316, 'created_at': datetime.datetime(2025, 5, 16, 5, 37, 28), 'result': '0.061652407772016436', 'result_long': None, 'result_double': None}] Qualite : 0.061652407772016436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23045316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23045316 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}" where mtr_portfolio_id = 23045316 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23045316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639190, 0.061652407772016436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23045567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872201, 'mtr_portfolio_id': 23045567, 'created_at': datetime.datetime(2025, 5, 16, 5, 48, 58), 'result': '0.05033826957197837', 'result_long': None, 'result_double': None}] Qualite : 0.05033826957197837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23045567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_16-05-2025_05_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23045567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_16-05-2025_05_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}" where mtr_portfolio_id = 23045567 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23045567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639191, 0.05033826957197837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_16-05-2025_05_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23046128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872362, 'mtr_portfolio_id': 23046128, 'created_at': datetime.datetime(2025, 5, 16, 6, 3), 'result': '0.010494137063526494', 'result_long': None, 'result_double': None}] Qualite : 0.010494137063526494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23046128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_16-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23046128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_16-05-2025_06_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}" where mtr_portfolio_id = 23046128 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23046128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639192, 0.010494137063526494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_16-05-2025_06_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23046584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872452, 'mtr_portfolio_id': 23046584, 'created_at': datetime.datetime(2025, 5, 16, 6, 16, 58), 'result': '0.04064694521375606', 'result_long': None, 'result_double': None}] Qualite : 0.04064694521375606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23046584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23046584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}" where mtr_portfolio_id = 23046584 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23046584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639193, 0.04064694521375606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23047224 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872656, 'mtr_portfolio_id': 23047224, 'created_at': datetime.datetime(2025, 5, 16, 6, 32, 59), 'result': '0.030559022484033773', 'result_long': None, 'result_double': None}] Qualite : 0.030559022484033773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23047224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_16-05-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23047224 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_16-05-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}" where mtr_portfolio_id = 23047224 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23047224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639194, 0.030559022484033773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_16-05-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23048039 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872797, 'mtr_portfolio_id': 23048039, 'created_at': datetime.datetime(2025, 5, 16, 6, 46, 57), 'result': '0.055060949225195055', 'result_long': None, 'result_double': None}] Qualite : 0.055060949225195055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23048039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23048039 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}" where mtr_portfolio_id = 23048039 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23048039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639195, 0.055060949225195055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23048561 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872936, 'mtr_portfolio_id': 23048561, 'created_at': datetime.datetime(2025, 5, 16, 7, 2, 57), 'result': '0.0385084602316683', 'result_long': None, 'result_double': None}] Qualite : 0.0385084602316683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23048561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23048561 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}" where mtr_portfolio_id = 23048561 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23048561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639196, 0.0385084602316683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049144 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2873067, 'mtr_portfolio_id': 23049144, 'created_at': datetime.datetime(2025, 5, 16, 7, 18, 57), 'result': '0.04304366779340266', 'result_long': None, 'result_double': None}] Qualite : 0.04304366779340266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23049144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23049144 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}" where mtr_portfolio_id = 23049144 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23049144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639197, 0.04304366779340266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049841 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 = 23049841 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 = 23049841 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049841 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 = 23049841 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 = 23049841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23049841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}" where mtr_portfolio_id = 23049841 and dashboard_run_id = 1822039 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23050420 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2873501, 'mtr_portfolio_id': 23050420, 'created_at': datetime.datetime(2025, 5, 16, 7, 56, 59), 'result': '0.06760941444153168', 'result_long': None, 'result_double': None}] Qualite : 0.06760941444153168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23050420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23050420 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}" where mtr_portfolio_id = 23050420 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23050420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639199, 0.06760941444153168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23051264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2873901, 'mtr_portfolio_id': 23051264, 'created_at': datetime.datetime(2025, 5, 16, 8, 2, 59), 'result': '0.037281951702605766', 'result_long': None, 'result_double': None}] Qualite : 0.037281951702605766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}" where mtr_portfolio_id = 23051264 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23051264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639200, 0.037281951702605766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23051628 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2874087, 'mtr_portfolio_id': 23051628, 'created_at': datetime.datetime(2025, 5, 16, 8, 19), 'result': '0.00868857069769462', 'result_long': None, 'result_double': None}] Qualite : 0.00868857069769462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051628 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}" where mtr_portfolio_id = 23051628 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23051628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639201, 0.00868857069769462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23052259 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2874263, 'mtr_portfolio_id': 23052259, 'created_at': datetime.datetime(2025, 5, 16, 8, 32, 57), 'result': '0.01899623670913284', 'result_long': None, 'result_double': None}] Qualite : 0.01899623670913284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23052259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_16-05-2025_08_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23052259 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_16-05-2025_08_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}" where mtr_portfolio_id = 23052259 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23052259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639202, 0.01899623670913284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_16-05-2025_08_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23052760 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2874473, 'mtr_portfolio_id': 23052760, 'created_at': datetime.datetime(2025, 5, 16, 8, 51, 29), 'result': '0.03838923903090624', 'result_long': None, 'result_double': None}] Qualite : 0.03838923903090624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23052760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_16-05-2025_08_51_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23052760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_16-05-2025_08_51_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}" where mtr_portfolio_id = 23052760 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23052760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639203, 0.03838923903090624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_16-05-2025_08_51_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23053317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2874729, 'mtr_portfolio_id': 23053317, 'created_at': datetime.datetime(2025, 5, 16, 9, 35, 31), 'result': '0.030851147997573887', 'result_long': None, 'result_double': None}] Qualite : 0.030851147997573887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23053317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23053317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}" where mtr_portfolio_id = 23053317 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23053317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639204, 0.030851147997573887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23054976 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875289, 'mtr_portfolio_id': 23054976, 'created_at': datetime.datetime(2025, 5, 16, 9, 54, 58), 'result': '0.041438533522989505', 'result_long': None, 'result_double': None}] Qualite : 0.041438533522989505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23054976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_16-05-2025_09_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23054976 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_16-05-2025_09_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}" where mtr_portfolio_id = 23054976 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23054976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639205, 0.041438533522989505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_16-05-2025_09_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875479, 'mtr_portfolio_id': 23055491, 'created_at': datetime.datetime(2025, 5, 16, 10, 2, 59), 'result': '0.04347980909158625', 'result_long': None, 'result_double': None}] Qualite : 0.04347980909158625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23055491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_16-05-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23055491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_16-05-2025_10_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}" where mtr_portfolio_id = 23055491 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23055491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639206, 0.04347980909158625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_16-05-2025_10_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055623 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 = 23055623 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 = 23055623 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055623 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 = 23055623 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 = 23055623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_16-05-2025_10_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23055623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_16-05-2025_10_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}" where mtr_portfolio_id = 23055623 and dashboard_run_id = 1822039 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23056122 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875711, 'mtr_portfolio_id': 23056122, 'created_at': datetime.datetime(2025, 5, 16, 10, 33, 1), 'result': '0.027822660909577458', 'result_long': None, 'result_double': None}] Qualite : 0.027822660909577458 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056122 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}" where mtr_portfolio_id = 23056122 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639208, 0.027822660909577458, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23056830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875983, 'mtr_portfolio_id': 23056830, 'created_at': datetime.datetime(2025, 5, 16, 10, 48, 57), 'result': '0.08722601268207716', 'result_long': None, 'result_double': None}] Qualite : 0.08722601268207716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056830 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}" where mtr_portfolio_id = 23056830 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639209, 0.08722601268207716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23057413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2876277, 'mtr_portfolio_id': 23057413, 'created_at': datetime.datetime(2025, 5, 16, 11, 2, 59), 'result': '0.07921937446380618', 'result_long': None, 'result_double': None}] Qualite : 0.07921937446380618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23057413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23057413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}" where mtr_portfolio_id = 23057413 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23057413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639210, 0.07921937446380618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23057852 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2876497, 'mtr_portfolio_id': 23057852, 'created_at': datetime.datetime(2025, 5, 16, 11, 16, 59), 'result': '0.058970238946598474', 'result_long': None, 'result_double': None}] Qualite : 0.058970238946598474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23057852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_16-05-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23057852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_16-05-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}" where mtr_portfolio_id = 23057852 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23057852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639211, 0.058970238946598474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_16-05-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23058362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2876700, 'mtr_portfolio_id': 23058362, 'created_at': datetime.datetime(2025, 5, 16, 11, 33, 27), 'result': '0.1054881612006192', 'result_long': None, 'result_double': None}] Qualite : 0.1054881612006192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23058362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_16-05-2025_11_33_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23058362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_16-05-2025_11_33_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}" where mtr_portfolio_id = 23058362 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23058362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639212, 0.1054881612006192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_16-05-2025_11_33_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23058889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2876944, 'mtr_portfolio_id': 23058889, 'created_at': datetime.datetime(2025, 5, 16, 11, 46, 58), 'result': '0.06859863033428715', 'result_long': None, 'result_double': None}] Qualite : 0.06859863033428715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23058889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_16-05-2025_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23058889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_16-05-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}" where mtr_portfolio_id = 23058889 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23058889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639213, 0.06859863033428715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_16-05-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23059524 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2877128, 'mtr_portfolio_id': 23059524, 'created_at': datetime.datetime(2025, 5, 16, 12, 2, 59), 'result': '0.07156273767353277', 'result_long': None, 'result_double': None}] Qualite : 0.07156273767353277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23059524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23059524 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}" where mtr_portfolio_id = 23059524 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23059524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639214, 0.07156273767353277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23060185 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2877431, 'mtr_portfolio_id': 23060185, 'created_at': datetime.datetime(2025, 5, 16, 18, 0), 'result': '0.07107852443627917', 'result_long': None, 'result_double': None}] Qualite : 0.07107852443627917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23060185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23060185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}" where mtr_portfolio_id = 23060185 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23060185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639215, 0.07107852443627917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23063337 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2877990, 'mtr_portfolio_id': 23063337, 'created_at': datetime.datetime(2025, 5, 16, 13, 49, 27), 'result': '0.04257278017836122', 'result_long': None, 'result_double': None}] Qualite : 0.04257278017836122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23063337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23063337 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}" where mtr_portfolio_id = 23063337 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23063337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639216, 0.04257278017836122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23063886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2878036, 'mtr_portfolio_id': 23063886, 'created_at': datetime.datetime(2025, 5, 16, 14, 2, 58), 'result': '0.02422908056078103', 'result_long': None, 'result_double': None}] Qualite : 0.02422908056078103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23063886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_16-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23063886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_16-05-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}" where mtr_portfolio_id = 23063886 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23063886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639217, 0.02422908056078103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_16-05-2025_14_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23064324 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2878181, 'mtr_portfolio_id': 23064324, 'created_at': datetime.datetime(2025, 5, 16, 14, 18, 58), 'result': '0.01025574435983352', 'result_long': None, 'result_double': None}] Qualite : 0.01025574435983352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23064324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23064324 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}" where mtr_portfolio_id = 23064324 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23064324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639218, 0.01025574435983352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23065118 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2878348, 'mtr_portfolio_id': 23065118, 'created_at': datetime.datetime(2025, 5, 16, 14, 32, 59), 'result': '0.023184513732914806', 'result_long': None, 'result_double': None}] Qualite : 0.023184513732914806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23065118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_16-05-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23065118 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_16-05-2025_14_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}" where mtr_portfolio_id = 23065118 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23065118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639219, 0.023184513732914806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_16-05-2025_14_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23065765 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2878569, 'mtr_portfolio_id': 23065765, 'created_at': datetime.datetime(2025, 5, 16, 14, 49, 33), 'result': '0.05667107684502495', 'result_long': None, 'result_double': None}] Qualite : 0.05667107684502495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23065765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23065765 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}" where mtr_portfolio_id = 23065765 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23065765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639220, 0.05667107684502495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23066570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2878936, 'mtr_portfolio_id': 23066570, 'created_at': datetime.datetime(2025, 5, 16, 15, 3), 'result': '0.03200738258849025', 'result_long': None, 'result_double': None}] Qualite : 0.03200738258849025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23066570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_16-05-2025_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23066570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_16-05-2025_15_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}" where mtr_portfolio_id = 23066570 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23066570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639221, 0.03200738258849025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_16-05-2025_15_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23067395 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2879256, 'mtr_portfolio_id': 23067395, 'created_at': datetime.datetime(2025, 5, 16, 15, 18, 59), 'result': '0.044018331890752806', 'result_long': None, 'result_double': None}] Qualite : 0.044018331890752806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23067395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_16-05-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23067395 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_16-05-2025_15_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}" where mtr_portfolio_id = 23067395 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23067395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639222, 0.044018331890752806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_16-05-2025_15_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23068252 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2879530, 'mtr_portfolio_id': 23068252, 'created_at': datetime.datetime(2025, 5, 16, 15, 33), 'result': '0.04243469563701666', 'result_long': None, 'result_double': None}] Qualite : 0.04243469563701666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23068252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_16-05-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23068252 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_16-05-2025_15_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}" where mtr_portfolio_id = 23068252 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23068252 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639223, 0.04243469563701666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_16-05-2025_15_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23068896 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2879712, 'mtr_portfolio_id': 23068896, 'created_at': datetime.datetime(2025, 5, 16, 15, 46, 58), 'result': '0.028827350663412785', 'result_long': None, 'result_double': None}] Qualite : 0.028827350663412785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23068896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23068896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}" where mtr_portfolio_id = 23068896 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23068896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639224, 0.028827350663412785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23069601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2879932, 'mtr_portfolio_id': 23069601, 'created_at': datetime.datetime(2025, 5, 16, 16, 2, 59), 'result': '0.059413258798028314', 'result_long': None, 'result_double': None}] Qualite : 0.059413258798028314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23069601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_16-05-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23069601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_16-05-2025_16_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}" where mtr_portfolio_id = 23069601 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23069601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639225, 0.059413258798028314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_16-05-2025_16_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23070321 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2880205, 'mtr_portfolio_id': 23070321, 'created_at': datetime.datetime(2025, 5, 16, 16, 18, 56), 'result': '0.05679428881767821', 'result_long': None, 'result_double': None}] Qualite : 0.05679428881767821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23070321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_16-05-2025_16_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23070321 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_16-05-2025_16_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}" where mtr_portfolio_id = 23070321 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23070321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639226, 0.05679428881767821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_16-05-2025_16_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23071284 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2880554, 'mtr_portfolio_id': 23071284, 'created_at': datetime.datetime(2025, 5, 16, 16, 32, 59), 'result': '0.05052058623169431', 'result_long': None, 'result_double': None}] Qualite : 0.05052058623169431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23071284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_16-05-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23071284 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_16-05-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}" where mtr_portfolio_id = 23071284 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23071284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639227, 0.05052058623169431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_16-05-2025_16_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23071951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2880920, 'mtr_portfolio_id': 23071951, 'created_at': datetime.datetime(2025, 5, 16, 16, 48, 56), 'result': '0.03496207707694954', 'result_long': None, 'result_double': None}] Qualite : 0.03496207707694954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23071951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_16-05-2025_16_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23071951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_16-05-2025_16_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}" where mtr_portfolio_id = 23071951 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23071951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639228, 0.03496207707694954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_16-05-2025_16_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23072665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2881233, 'mtr_portfolio_id': 23072665, 'created_at': datetime.datetime(2025, 5, 16, 17, 3, 29), 'result': '0.02733646685023481', 'result_long': None, 'result_double': None}] Qualite : 0.02733646685023481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23072665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_16-05-2025_17_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23072665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_16-05-2025_17_03_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}" where mtr_portfolio_id = 23072665 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23072665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639229, 0.02733646685023481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_16-05-2025_17_03_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23073291 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2881524, 'mtr_portfolio_id': 23073291, 'created_at': datetime.datetime(2025, 5, 16, 17, 16, 59), 'result': '0.05089623871872542', 'result_long': None, 'result_double': None}] Qualite : 0.05089623871872542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23073291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23073291 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}" where mtr_portfolio_id = 23073291 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23073291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639230, 0.05089623871872542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23074092 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2881788, 'mtr_portfolio_id': 23074092, 'created_at': datetime.datetime(2025, 5, 16, 17, 56, 31), 'result': '0.11246918967456357', 'result_long': None, 'result_double': None}] Qualite : 0.11246918967456357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23074092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_16-05-2025_17_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23074092 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_16-05-2025_17_56_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}" where mtr_portfolio_id = 23074092 and dashboard_run_id = 1822039 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23074092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639231, 0.11246918967456357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_16-05-2025_17_56_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23075621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2882704, 'mtr_portfolio_id': 23075621, 'created_at': datetime.datetime(2025, 5, 16, 18, 16, 58), 'result': '0.06670752629857209', 'result_long': None, 'result_double': None}] Qualite : 0.06670752629857209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23075621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_16-05-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23075621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_16-05-2025_18_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}" where mtr_portfolio_id = 23075621 and dashboard_run_id = 1822040 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23075621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10639232, 0.06670752629857209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_16-05-2025_18_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23076021 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 = 23076021 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 = 23076021 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23076021 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 = 23076021 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 = 23076021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_16-05-2025_18_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23076021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_16-05-2025_18_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076047, 'pht': 3726}}" where mtr_portfolio_id = 23076021 and dashboard_run_id = 1822040 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034669,23035427,23036044,23036833,23038437,23038906,23039239,23039804,23040500,23040950,23041439,23042042,23042498,23042957,23043383,23044975,23045316,23045567,23046128,23046584,23047224,23048039,23048561,23049144,23049841,23050420,23051264,23051628,23052259,23052760,23053317,23054976,23055491,23055623,23056122,23056830,23057413,23057852,23058362,23058889,23059524,23060185,23063337,23063886,23064324,23065118,23065765,23066570,23067395,23068252,23068896,23069601,23070321,23071284,23071951,23072665,23073291,23074092,23075621,23076021) result : ((1358695980,), (1358696012,), (1358696042,), (1358696071,), (1358696366,), (1358696392,), (1358696417,), (1358696628,), (1358696632,), (1358696641,), (1358696648,), (1358696650,), (1358696891,), (1358696894,), (1358696897,), (1358696899,), (1358697023,), (1358697025,), (1358697027,), (1358697029,), (1358697032,), (1358697049,), (1358697059,), (1358697087,), (1358697599,), (1358697638,), (1358697665,), (1358697694,), (1358697729,), (1358697763,), (1358698042,), (1358698070,), (1358698099,), (1358698127,), (1358698154,), (1358698420,), (1358698456,), (1358698503,), (1358698754,), (1358698762,), (1358698798,), (1358698824,), (1358698835,), (1358698838,), (1358698871,), (1358698873,), (1358698878,), (1358698896,), (1358698901,), (1358698990,), (1358699016,), (1358699018,), (1358699046,), (1358699049,), (1358699050,), (1358699051,), (1358699054,), (1358699056,), (1358699947,), (1358699932,), (1358699937,), (1358700192,), (1358700195,), (1358700197,), (1358700199,), (1358700201,), (1358700204,), (1358700417,), (1358701184,), (1358701261,), (1358701339,), (1358701428,), (1358702013,), (1358702062,), (1358702075,), (1358702095,), (1358702484,), (1358702515,), (1358702527,), (1358702628,), (1358702631,), (1358702633,), (1358702634,), (1358702636,), (1358702637,), (1358702881,), (1358702886,), (1358702917,), (1358702944,), (1358703496,), (1358703536,), (1358703579,), (1358703606,), (1358703633,), (1358703916,), (1358703940,), (1358703943,), (1358704093,), (1358704134,), (1358704191,), (1358704228,), (1358704835,), (1358704880,), (1358704913,), (1358704982,), (1358705032,), (1358705085,), (1358705355,), (1358705386,), (1358705411,), (1358705435,), (1358705523,), (1358705550,), (1358705577,), (1358705602,), (1358705627,), (1358705796,), (1358705802,), (1358705803,), (1358705807,), (1358705809,), (1358705857,), (1358705851,), (1358705854,), (1358705882,), (1358705910,), (1358705941,), (1358705987,), (1358706097,), (1358706099,), (1358706101,), (1358706102,), (1358706104,), (1358706111,), (1358706372,), (1358706378,), (1358706380,), (1358706382,), (1358706386,), (1358706388,), (1358706640,), (1358706644,), (1358706670,), (1358706994,), (1358707047,), (1358707095,), (1358707533,), (1358707582,), (1358707642,), (1358707758,), (1358708183,), (1358708235,), (1358708288,), (1358708334,), (1358708973,), (1358709053,), (1358709132,), (1358709208,), (1358709292,), (1358709809,), (1358709874,), (1358709924,), (1358709989,), (1358710062,), (1358710509,), (1358710545,), (1358710578,), (1358710607,), (1358710655,), (1358711172,), (1358711222,), (1358711254,), (1358711257,), (1358711390,), (1358711394,), (1358711398,), (1358711401,), (1358711404,), (1358711411,), (1358711429,), (1358711433,), (1358711967,), (1358711997,), (1358712027,), (1358712458,), (1358712333,), (1358712382,), (1358712417,), (1358712443,), (1358712456,), (1358712807,), (1358712812,), (1358712816,), (1358712820,), (1358712825,), (1358712828,), (1358712833,), (1358712836,), (1358712888,), (1358712917,), (1358712953,), (1358713191,), (1358713194,), (1358713197,), (1358713199,), (1358713203,), (1358713205,), (1358713229,), (1358713233,), (1358713237,), (1358713239,), (1358713241,), (1358713244,), (1358713264,), (1358713280,), (1358713285,), (1358713328,), (1358713344,), (1358713375,), (1358713463,), (1358713467,), (1358713471,), (1358713474,), (1358713478,), (1358713743,), (1358713823,), (1358713852,), (1358713881,), (1358713906,), (1358714263,), (1358714294,), (1358714322,), (1358714327,), (1358714849,), (1358714863,), (1358714891,), (1358715042,), (1358715062,), (1358715088,), (1358715120,), (1358715971,), (1358716000,), (1358716553,), (1358723848,), (1358724193,), (1358724224,), (1358724560,), (1358724562,), (1358724766,), (1358724770,), (1358724774,), (1358724799,), (1358724829,), (1358724878,), (1358724881,), (1358724884,), (1358724895,), (1358724933,), (1358724960,), (1358725199,), (1358725230,), (1358725258,), (1358725284,), (1358725636,), (1358725672,), (1358725699,), (1358725773,), (1358725776,), (1358725801,), (1358725830,), (1358725859,), (1358725886,), (1358726031,), (1358726059,), (1358726089,), (1358726097,), (1358726623,), (1358726672,), (1358726760,), (1358726810,), (1358726864,), (1358727218,), (1358727265,), (1358727312,), (1358727793,), (1358727835,), (1358727870,), (1358727896,), (1358727923,), (1358728302,), (1358728343,), (1358728397,), (1358728430,), (1358728640,), (1358728675,), (1358728728,), (1358728763,), (1358728774,), (1358728872,), (1358728909,), (1358728937,), (1358728959,), (1358728985,), (1358729063,), (1358729060,), (1358729419,), (1358729445,), (1358729472,), (1358729500,), (1358729528,), (1358729662,), (1358729664,), (1358729693,), (1358729725,), (1358729767,), (1358730174,), (1358730201,), (1358730230,), (1358730259,), (1358730284,), (1358730453,), (1358730478,), (1358730502,), (1358730517,), (1358730519,), (1358730605,), (1358730607,), (1358730611,), (1358730613,), (1358730616,), (1358730619,), (1358730650,), (1358730653,), (1358730655,), (1358730656,), (1358730699,), (1358730701,), (1358730703,), (1358730704,), (1358730706,), (1358730727,), (1358730734,), (1358730738,), (1358730740,), (1358730742,), (1358730745,), (1358730761,), (1358730764,), (1358730767,), (1358730957,), (1358731053,), (1358731082,), (1358731108,), (1358731133,), (1358731157,), (1358731371,), (1358731429,), (1358731433,), (1358731436,), (1358731473,), (1358731559,), (1358731589,), (1358731627,), (1358731839,), (1358731845,), (1358731849,), (1358731853,), (1358731894,), (1358731884,), (1358731887,), (1358731890,), (1358731912,), (1358731914,), (1358731916,), (1358731917,), (1358731920,), (1358731945,), (1358731948,), (1358731951,), (1358731952,), (1358731955,), (1358731972,), (1358731975,), (1358731977,), (1358732004,), (1358732008,), (1358732010,), (1358732034,), (1358732036,), (1358732067,), (1358732070,), (1358732089,), (1358732091,), (1358732123,), (1358732126,), (1358732157,), (1358732161,), (1358732165,), (1358732172,), (1358732235,), (1358732241,), (1358732267,), (1358732270,), (1358732274,), (1358732280,), (1358732282,), (1358732283,), (1358732310,), (1358732313,), (1358732316,), (1358732367,), (1358732391,), (1358732415,), (1358732439,), (1358732451,), (1358732456,), (1358732677,), (1358732731,), (1358732779,), (1358732827,), (1358732880,), (1358734105,), (1358733682,), (1358733783,), (1358733885,), (1358733987,), (1358735305,), (1358735427,), (1358735551,), (1358735646,), (1358735745,), (1358736775,), (1358736919,), (1358737000,), (1358737096,), (1358737190,), (1358737293,), (1358738166,), (1358738238,), (1358738340,), (1358738446,), (1358738576,), (1358739378,), (1358739409,), (1358739438,), (1358739474,), (1358740121,), (1358740178,), (1358740230,), (1358740284,), (1358740335,), (1358740922,), (1358741020,), (1358741093,), (1358741486,), (1358741515,), (1358741541,), (1358741566,), (1358741583,), (1358741671,), (1358741673,), (1358741675,), (1358741678,), (1358741682,), (1358741691,), (1358741692,), (1358741696,), (1358741703,), (1358741721,), (1358741723,), (1358741727,), (1358741731,), (1358742071,), (1358742121,), (1358742171,), (1358742195,), (1358742627,), (1358742652,), (1358742677,), (1358742701,), (1358742728,), (1358742758,), (1358742912,), (1358742914,), (1358742916,), (1358743081,), (1358743102,), (1358743118,), (1358743121,), (1358743123,), (1358743280,), (1358743273,), (1358743275,), (1358743276,), (1358743277,), (1358743279,), (1358743473,), (1358743504,), (1358743530,), (1358743534,), (1358743538,), (1358743559,), (1358743562,), (1358743566,), (1358743590,), (1358744221,), (1358744252,), (1358744278,), (1358744306,), (1358744335,), (1358744361,), (1358744737,), (1358744763,), (1358744807,), (1358744855,), (1358745062,), (1358745064,), (1358745066,), (1358745292,), (1358745294,), (1358745296,), (1358745416,), (1358745456,), (1358745508,), (1358745564,), (1358745627,), (1358745681,), (1358745844,), (1358745848,), (1358745851,), (1358745890,), (1358745895,), (1358745897,), (1358745900,), (1358745941,), (1358745947,), (1358745949,), (1358745951,), (1358745954,), (1358745983,), (1358745990,), (1358745991,), (1358745993,), (1358745995,), (1358746202,), (1358746229,), (1358746255,), (1358746282,), (1358746485,), (1358746511,), (1358746540,), (1358746699,), (1358746732,), (1358746758,), (1358747102,), (1358746994,), (1358747021,), (1358747052,), (1358747077,), (1358747272,), (1358747301,), (1358747336,), (1358747346,), (1358747349,), (1358747513,), (1358747518,), (1358747520,), (1358747559,), (1358747641,), (1358747703,), (1358747971,), (1358748024,), (1358748065,), (1358748069,), (1358748074,), (1358748202,), (1358748231,), (1358748296,), (1358748333,), (1358748361,), (1358748718,), (1358748747,), (1358748773,), (1358749049,), (1358749075,), (1358749077,), (1358749099,), (1358749105,), (1358749107,), (1358749233,), (1358749261,), (1358749291,), (1358749322,), (1358749352,), (1358749507,), (1358749534,), (1358749561,), (1358749562,), (1358749667,), (1358749669,), (1358749695,), (1358749701,), (1358749705,), (1358749736,), (1358749739,), (1358749742,), (1358749743,), (1358749744,), (1358750057,), (1358750086,), (1358750113,), (1358750640,), (1358750475,), (1358750583,), (1358750612,), (1358751266,), (1358751319,), (1358751398,), (1358751456,), (1358751554,), (1358752120,), (1358752174,), (1358752616,), (1358752619,), (1358752622,), (1358752624,), (1358752959,), (1358753010,), (1358753062,), (1358753113,), (1358753482,), (1358753540,), (1358753593,), (1358753664,), (1358754310,), (1358754361,), (1358754396,), (1358754425,), (1358755001,), (1358755016,), (1358755033,), (1358755043,), (1358755061,), (1358755237,), (1358755263,), (1358755389,), (1358755417,), (1358755441,), (1358755469,), (1358755493,), (1358755537,), (1358755563,), (1358755588,), (1358755615,), (1358755640,), (1358755670,), (1358755733,), (1358755736,), (1358755738,), (1358755740,), (1358755978,), (1358756006,), (1358756031,), (1358756058,), (1358756081,), (1358756274,), (1358756292,), (1358756296,), (1358756301,), (1358756306,), (1358756313,), (1358756537,), (1358756566,), (1358756618,), (1358756665,), (1358756709,), (1358756887,), (1358756884,), (1358757199,), (1358757203,), (1358757209,), (1358757212,), (1358757235,), (1358757240,), (1358757241,), (1358757243,), (1358757245,), (1358757267,), (1358757272,), (1358757276,), (1358757277,), (1358757280,), (1358757473,), (1358757500,), (1358757675,), (1358757693,), (1358757695,), (1358757718,), (1358757732,), (1358757735,), (1358757820,), (1358757828,), (1358757857,), (1358757873,), (1358757917,), (1358757968,), (1358757969,), (1358758002,), (1358758004,), (1358758007,), (1358758011,), (1358758014,), (1358758019,), (1358758040,), (1358758043,), (1358758046,), (1358758047,), (1358758048,), (1358758050,), (1358758066,), (1358758069,), (1358758072,), (1358758074,), (1358758077,), (1358758080,), (1358758103,), (1358758110,), (1358758111,), (1358758113,), (1358758131,), (1358758134,), (1358758137,), (1358758139,), (1358758142,), (1358758352,), (1358758380,), (1358758407,), (1358758430,), (1358758455,), (1358758859,), (1358758757,), (1358758798,), (1358758825,), (1358759070,), (1358759072,), (1358759074,), (1358759076,), (1358759105,), (1358759256,), (1358759268,), (1358759295,), (1358759321,), (1358759347,), (1358759455,), (1358759511,), (1358759565,), (1358759615,), (1358759663,), (1358759930,), (1358759958,), (1358759986,), (1358760336,), (1358760365,), (1358760390,), (1358760432,), (1358760970,), (1358761137,), (1358761164,), (1358761197,), (1358761227,), (1358761562,), (1358761601,), (1358761630,), (1358761673,), (1358761726,), (1358761786,), (1358762491,), (1358762563,), (1358763088,), (1358763136,), (1358763188,), (1358763257,), (1358763337,), (1358763963,), (1358764015,), (1358764052,), (1358764112,), (1358764162,), (1358764472,), (1358764479,), (1358764481,), (1358764506,), (1358764686,), (1358764687,), (1358764689,), (1358764889,), (1358764892,), (1358764900,), (1358765119,), (1358765124,), (1358765178,), (1358765209,), (1358765233,), (1358765227,), (1358765232,), (1358765254,), (1358765257,), (1358765259,), (1358765307,), (1358765335,), (1358765362,), (1358765385,), (1358765601,), (1358765605,), (1358765625,), (1358765814,), (1358765828,), (1358765861,), (1358765877,), (1358765907,), (1358765910,), (1358765911,), (1358765915,), (1358765917,), (1358765936,), (1358765939,), (1358765942,), (1358765944,), (1358765962,), (1358765966,), (1358765968,), (1358766108,), (1358766132,), (1358766157,), (1358766185,), (1358766215,), (1358766323,), (1358766382,), (1358766388,), (1358766439,), (1358766442,), (1358766449,), (1358766453,), (1358766494,), (1358766645,), (1358766684,), (1358766689,), (1358766692,), (1358766695,), (1358766714,), (1358766718,), (1358766720,), (1358766724,), (1358766729,), (1358766755,), (1358766759,), (1358766763,), (1358766822,), (1358766806,), (1358766816,), (1358766840,), (1358766844,), (1358766846,), (1358766848,), (1358766853,), (1358766857,), (1358766874,), (1358766875,), (1358766876,), (1358767094,), (1358767120,), (1358767152,), (1358767182,), (1358767218,), (1358767248,), (1358767498,), (1358767525,), (1358767551,), (1358767576,), (1358767601,), (1358767627,), (1358767915,), (1358767943,), (1358767971,), (1358767997,), (1358768455,), (1358768505,), (1358768544,), (1358768569,), (1358769084,), (1358769158,), (1358769236,), (1358770153,), (1358770228,), (1358770282,), (1358770335,), (1358770386,), (1358770764,), (1358770811,), (1358770862,), (1358770915,), (1358771625,), (1358771652,), (1358773386,), (1358791401,), (1358791345,), (1358791747,), (1358793014,), (1358793181,), (1358793208,), (1358793237,), (1358793285,), (1358793783,), (1358793845,), (1358793894,), (1358793943,), (1358794342,), (1358794350,), (1358794352,), (1358794355,), (1358794573,), (1358794582,), (1358794589,), (1358794695,), (1358794700,), (1358794704,), (1358794706,), (1358794723,), (1358794728,), (1358794731,), (1358794748,), (1358794750,), (1358794758,), (1358794762,), (1358794767,), (1358794771,), (1358794773,), (1358794782,), (1358794794,), (1358794799,), (1358794808,), (1358794812,), (1358794815,), (1358794817,), (1358794819,), (1358794823,), (1358794842,), (1358794846,), (1358794850,), (1358794853,), (1358794856,), (1358794904,), (1358794902,), (1358794929,), (1358794932,), (1358795065,), (1358795155,), (1358795182,), (1358795206,), (1358795230,), (1358795489,), (1358795514,), (1358795539,), (1358795565,), (1358795591,), (1358795620,), (1358796132,), (1358796184,), (1358796233,), (1358796790,), (1358796843,), (1358796890,), (1358796952,), (1358797004,), (1358797691,), (1358797717,), (1358797748,), (1358797775,), (1358797816,), (1358797882,), (1358798306,), (1358798323,), (1358798337,), (1358798883,), (1358798911,), (1358798925,), (1358798927,), (1358798951,), (1358798982,), (1358799255,), (1358799259,), (1358799264,), (1358799267,), (1358799281,), (1358799449,), (1358799452,), (1358799455,), (1358799456,), (1358799458,), (1358799691,), (1358799715,), (1358799740,), (1358799764,), (1358799788,), (1358799817,), (1358800097,), (1358800124,), (1358800155,), (1358800179,), (1358800205,), (1358800724,), (1358800771,), (1358800821,), (1358800861,), (1358801407,), (1358801478,), (1358801552,), (1358801633,), (1358801733,), (1358801831,), (1358802910,), (1358802714,), (1358802776,), (1358802851,), (1358802887,), (1358803336,), (1358803382,), (1358803433,), (1358803464,), (1358804033,), (1358804089,), (1358804155,), (1358804188,), (1358804244,), (1358804282,), (1358804567,), (1358804584,), (1358804591,), (1358804607,), (1358804692,), (1358804725,), (1358804735,), (1358804751,), (1358804765,), (1358804780,), (1358804802,), (1358804806,), (1358804808,), (1358804811,), (1358804815,), (1358804821,), (1358804831,), (1358804834,), (1358804837,), (1358804843,), (1358804850,), (1358804860,), (1358804865,), (1358804870,), (1358804875,), (1358804878,), (1358804884,), (1358804888,), (1358804891,), (1358804894,), (1358804895,), (1358804899,), (1358804905,), (1358804926,), (1358804931,), (1358804934,), (1358804938,), (1358804942,), (1358804945,), (1358804953,), (1358804955,), (1358804958,), (1358804961,), (1358804964,), (1358804971,), (1358804974,), (1358804977,), (1358804980,), (1358804983,), (1358804986,), (1358805105,), (1358805135,), (1358805163,), (1358805191,), (1358805517,), (1358805551,), (1358805631,), (1358805717,), (1358805719,), (1358805723,), (1358805803,), (1358805806,), (1358805827,), (1358805852,), (1358805882,), (1358805911,), (1358806212,), (1358806265,), (1358806310,), (1358806331,), (1358807263,), (1358807232,), (1358807525,), (1358807577,), (1358807629,), (1358807682,), (1358808062,), (1358808090,), (1358808150,), (1358808228,), (1358808285,), (1358808310,), (1358808551,), (1358808586,), (1358808790,), (1358808797,), (1358808832,), (1358808834,), (1358809318,), (1358809321,), (1358809355,), (1358809379,), (1358809405,), (1358809430,), (1358809455,), (1358809464,), (1358809638,), (1358809640,), (1358809642,), (1358809643,), (1358809644,), (1358809665,), (1358809667,), (1358809669,), (1358809670,), (1358809671,), (1358809706,), (1358809711,), (1358809714,), (1358809717,), (1358809770,), (1358809762,), (1358809765,), (1358809768,), (1358809799,), (1358809801,), (1358810087,), (1358810095,), (1358810108,), (1358810109,), (1358810115,), (1358810119,), (1358810134,), (1358810137,), (1358810140,), (1358810156,), (1358810484,), (1358810516,), (1358810541,), (1358810575,), (1358810605,), (1358810630,), (1358810878,), (1358810907,), (1358810932,), (1358810957,), (1358810986,), (1358811331,), (1358811350,), (1358811376,), (1358811400,), (1358811923,), (1358811988,), (1358811990,), (1358812007,), (1358812039,), (1358812106,), (1358812497,), (1358812522,), (1358812547,), (1358813079,), (1358813117,), (1358813145,), (1358813170,), (1358813477,), (1358813520,), (1358813569,), (1358813618,), (1358813674,), (1358814021,), (1358814072,), (1358814121,), (1358814172,), (1358814220,), (1358814272,), (1358814544,), (1358814556,), (1358814588,), (1358814618,), (1358814656,), (1358815357,), (1358815508,), (1358815632,), (1358815705,), (1358815798,), (1358816429,), (1358816455,), (1358816481,), (1358816507,), (1358816574,), (1358816631,), (1358817122,), (1358817038,), (1358817068,), (1358817095,), (1358817624,), (1358817659,), (1358817685,), (1358817709,), (1358817740,), (1358817787,), (1358818136,), (1358818167,), (1358818192,), (1358818236,), (1358818292,), (1358818862,), (1358818914,), (1358818950,), (1358818981,), (1358819033,), (1358819087,), (1358819661,), (1358819705,), (1358819759,), (1358819823,), (1358820259,), (1358820276,), (1358820285,), (1358820291,), (1358820294,), (1358820298,), (1358820407,), (1358820434,), (1358820461,), (1358820488,), (1358821740,), (1358821825,), (1358821828,), (1358821831,), (1358821836,), (1358821864,), (1358822243,), (1358822394,), (1358822438,), (1358822467,), (1358822946,), (1358822973,), (1358823000,), (1358823021,), (1358823024,), (1358823280,), (1358823323,), (1358823374,), (1358823415,), (1358823452,), (1358823486,), (1358823710,), (1358823722,), (1358823740,), (1358823747,), (1358823751,), (1358823804,), (1358823833,), (1358823869,), (1358823904,), (1358823932,), (1358823960,), (1358824209,), (1358824237,), (1358824260,), (1358824965,), (1358825091,), (1358825183,), (1358825233,), (1358825291,), (1358825979,), (1358825702,), (1358825777,), (1358825855,), (1358825893,), (1358825950,), (1358826284,), (1358826286,), (1358826290,), (1358826294,), (1358826786,), (1358826814,), (1358826843,), (1358826863,), (1358826914,), (1358826941,), (1358827151,), (1358827171,), (1358827174,), (1358827176,), (1358827180,), (1358827206,), (1358827208,), (1358827216,), (1358827242,), (1358827245,), (1358827247,), (1358827249,), (1358827279,), (1358827283,), (1358827287,), (1358827289,), (1358827326,), (1358827332,), (1358827342,), (1358827346,), (1358827350,), (1358827386,), (1358827389,), (1358827392,), (1358827395,), (1358827401,), (1358827434,), (1358827513,), (1358827605,), (1358827720,), (1358827836,), (1358828412,), (1358828466,), (1358828493,), (1358828520,), (1358829127,), (1358829168,), (1358829206,), (1358829253,), (1358829310,), (1358829370,), (1358829876,), (1358829915,), (1358829973,), (1358830013,), (1358830488,), (1358830539,), (1358830586,), (1358830859,), (1358830887,), (1358830913,), (1358830939,), (1358830966,), (1358830978,), (1358831121,), (1358831042,), (1358831067,), (1358831093,), (1358831899,), (1358831929,), (1358831953,), (1358831954,), (1358831957,), (1358832195,), (1358832223,), (1358832226,), (1358832228,), (1358832596,), (1358832629,), (1358832658,), (1358832684,), (1358832716,), (1358832745,), (1358833009,), (1358833035,), (1358833084,), (1358833111,), (1358833141,), (1358833168,), (1358833262,), (1358833266,), (1358833274,), (1358834335,), (1358834363,), (1358834392,), (1358834438,), (1358834488,), (1358835100,), (1358835126,), (1358835157,), (1358835204,), (1358835255,), (1358835306,), (1358835863,), (1358835895,), (1358835941,), (1358836617,), (1358836644,), (1358836647,), (1358836648,), (1358836654,), (1358836686,), (1358836912,), (1358836925,), (1358836952,), (1358837016,), (1358837168,), (1358837172,), (1358837177,), (1358837196,), (1358837212,), (1358837218,), (1358837222,), (1358837226,), (1358837252,), (1358837257,), (1358837262,), (1358837265,), (1358837309,), (1358837295,), (1358837300,), (1358837304,), (1358837307,), (1358837427,), (1358837456,), (1358837488,), (1358837521,), (1358837549,), (1358837843,), (1358837871,), (1358837898,), (1358837923,), (1358837948,), (1358838256,), (1358838283,), (1358838311,), (1358838339,), (1358838365,), (1358838637,), (1358838666,), (1358838695,), (1358839070,), (1358839130,), (1358839159,), (1358839182,), (1358839212,), (1358839231,), (1358839268,), (1358839272,), (1358839278,), (1358839304,), (1358839338,), (1358839544,), (1358839547,), (1358839551,), (1358839554,), (1358839556,), (1358839786,), (1358839790,), (1358839798,), (1358839800,), (1358839801,), (1358839852,), (1358839857,), (1358839860,), (1358839862,), (1358839865,), (1358839868,), (1358840006,), (1358840009,), (1358840013,), (1358840015,), (1358840017,), (1358840215,), (1358840249,), (1358840276,), (1358840283,), (1358840288,), (1358840438,), (1358840442,), (1358840447,), (1358840449,), (1358840499,), (1358840503,), (1358840508,), (1358840512,), (1358840516,), (1358840521,), (1358840586,), (1358840593,), (1358840598,), (1358840775,), (1358840732,), (1358840739,), (1358840741,), (1358840743,), (1358841096,), (1358841127,), (1358841162,), (1358841195,), (1358841223,), (1358841251,), (1358841502,), (1358841531,), (1358841560,), (1358841586,), (1358841793,), (1358841798,), (1358841816,), (1358841819,), (1358842187,), (1358842224,), (1358842258,), (1358842291,), (1358842302,), (1358842317,), (1358842618,), (1358842630,), (1358842663,), (1358842698,), (1358842849,), (1358843259,), (1358843297,), (1358843816,), (1358843836,), (1358843869,), (1358843971,), (1358844054,), (1358844062,), (1358844065,), (1358844067,), (1358844097,), (1358844102,), (1358844107,), (1358844111,), (1358844222,), (1358844244,), (1358844248,), (1358844336,), (1358844342,), (1358844348,), (1358844351,), (1358844356,), (1358844361,), (1358844399,), (1358844404,), (1358844413,), (1358844416,), (1358844421,), (1358844424,), (1358844452,), (1358844460,), (1358844469,), (1358844568,), (1358844530,), (1358844534,), (1358844540,), (1358844545,), (1358844555,), (1358844625,), (1358844630,), (1358844634,), (1358844638,), (1358844643,), (1358844688,), (1358844693,), (1358844705,), (1358844710,), (1358844716,), (1358844749,), (1358844753,), (1358844757,), (1358844761,), (1358844765,), (1358844798,), (1358844804,), (1358844810,), (1358844815,), (1358844820,), (1358844858,), (1358844864,), (1358844869,), (1358844874,), (1358844924,), (1358844928,), (1358844933,), (1358844937,), (1358844942,), (1358844947,), (1358844978,), (1358844984,), (1358844988,), (1358845054,), (1358845058,), (1358845063,), (1358845067,), (1358845070,), (1358845075,), (1358845123,), (1358845127,), (1358845132,), (1358845136,), (1358845159,), (1358845163,), (1358845205,), (1358845209,), (1358845214,), (1358845296,), (1358845301,), (1358845307,), (1358845310,), (1358845314,), (1358845319,), (1358845352,), (1358845357,), (1358845361,), (1358845365,), (1358845604,), (1358845632,), (1358845659,), (1358845686,), (1358845716,), (1358845963,), (1358846058,), (1358846081,), (1358846086,), (1358846092,), (1358846095,), (1358850186,), (1358850058,), (1358850106,), (1358850652,), (1358850681,), (1358850772,), (1358850885,), (1358850995,), (1358851104,), (1358851142,), (1358851145,), (1358851198,), (1358851266,), (1358851304,), (1358851309,), (1358851325,), (1358851354,), (1358851383,), (1358851409,), (1358851569,), (1358851572,), (1358851576,), (1358851579,), (1358851582,), (1358851586,), (1358851616,), (1358851622,), (1358851628,), (1358851632,), (1358851689,), (1358851697,), (1358851704,), (1358851733,), (1358852222,), (1358852323,), (1358852349,), (1358852380,), (1358852587,), (1358852593,), (1358852598,), (1358852602,), (1358852832,), (1358852853,), (1358852863,), (1358852908,), (1358852942,), (1358853055,), (1358853085,), (1358853116,), (1358853146,), (1358853176,), (1358853476,), (1358853506,), (1358853535,), (1358853570,), (1358853596,), (1358853943,), (1358854068,), (1358854158,), (1358854710,), (1358854886,), (1358855075,), (1358855253,), (1358855730,), (1358855812,), (1358855881,), (1358855949,), (1358856462,), (1358856491,), (1358856520,), (1358856547,), (1358856589,), (1358856641,), (1358856802,), (1358856805,), (1358856808,), (1358856815,), (1358857356,), (1358857433,), (1358857488,), (1358857543,), (1358857603,), (1358857926,), (1358858228,), (1358858232,), (1358858236,), (1358858445,), (1358858561,), (1358858613,), (1358858617,), (1358858621,), (1358858863,), (1358858865,), (1358858881,), (1358858897,), (1358858900,), (1358858903,), (1358858932,), (1358858936,), (1358858941,), (1358858973,), (1358858976,), (1358858981,), (1358858985,), (1358858989,), (1358858992,), (1358859023,), (1358859026,), (1358859028,), (1358859037,), (1358859040,), (1358859042,), (1358859074,), (1358859078,), (1358859083,), (1358859126,), (1358859131,), (1358859134,), (1358859136,), (1358859138,), (1358859142,), (1358859173,), (1358859178,), (1358859194,), (1358859207,), (1358859210,), (1358859213,), (1358859249,), (1358859252,), (1358859254,), (1358859491,), (1358859520,), (1358859547,), (1358859573,), (1358859743,), (1358859746,), (1358859750,), (1358859798,), (1358859832,), (1358859834,), (1358859835,), (1358859837,), (1358859840,), (1358859903,), (1358859907,), (1358859911,), (1358859942,), (1358859948,), (1358860067,), (1358860051,), (1358860054,), (1358860058,), (1358860142,), (1358860146,), (1358860151,), (1358860154,), (1358860190,), (1358860192,), (1358860197,), (1358860251,), (1358860253,), (1358860256,), (1358860287,), (1358860291,), (1358860294,), (1358860296,), (1358860300,), (1358860303,), (1358860337,), (1358860339,), (1358860341,), (1358860343,), (1358860347,), (1358860350,), (1358860385,), (1358860391,), (1358860438,), (1358860441,), (1358860444,), (1358860451,), (1358860489,), (1358860493,), (1358860497,), (1358860500,), (1358860503,), (1358860536,), (1358860539,), (1358860543,), (1358860587,), (1358860592,), (1358860595,), (1358860599,), (1358860602,), (1358860632,), (1358860634,), (1358860638,), (1358860641,), (1358860940,), (1358860968,), (1358860999,), (1358861026,), (1358861053,), (1358861347,), (1358861349,), (1358861352,), (1358861545,), (1358861567,), (1358861573,), (1358861663,), (1358862238,), (1358862132,), (1358862159,), (1358862185,), (1358862211,), (1358862536,), (1358862563,), (1358862592,), (1358862619,), (1358862742,), (1358862768,), (1358862795,), (1358862825,), (1358862852,), (1358862881,), (1358863113,), (1358863152,), (1358863203,), (1358863255,), (1358863679,), (1358863682,), (1358863685,), (1358864060,), (1358864065,), (1358864069,), (1358864082,), (1358864113,), (1358864143,), (1358864229,), (1358864255,), (1358864281,), (1358864309,), (1358864413,), (1358864418,), (1358864423,), (1358864427,), (1358864629,), (1358864698,), (1358864701,), (1358864732,), (1358864758,), (1358865122,), (1358865163,), (1358865196,), (1358865238,), (1358865297,), (1358865904,), (1358865961,), (1358866019,), (1358866575,), (1358866658,), (1358866741,), (1358866865,), (1358866936,), (1358867437,), (1358867468,), (1358867497,), (1358867542,), (1358867574,), (1358867594,), (1358867991,), (1358868025,), (1358868058,), (1358868287,), (1358868370,), (1358868481,), (1358868548,), (1358868695,), (1358876135,), (1358876133,), (1358876431,), (1358876441,), (1358876475,), (1358876480,), (1358876500,), (1358876538,), (1358876551,), (1358876589,), (1358876591,), (1358876594,), (1358876597,), (1358876601,), (1358876637,), (1358876644,), (1358876650,), (1358876688,), (1358876693,), (1358876698,), (1358876701,), (1358876706,), (1358876744,), (1358876749,), (1358876753,), (1358876757,), (1358876760,), (1358876765,), (1358876799,), (1358876805,), (1358876822,), (1358876830,), (1358876878,), (1358877091,), (1358877146,), (1358877210,), (1358877298,), (1358877303,), (1358877307,), (1358877310,), (1358877316,), (1358877320,), (1358877359,), (1358877363,), (1358877367,), (1358877369,), (1358877373,), (1358877466,), (1358877557,), (1358877618,), (1358877998,), (1358878083,), (1358878138,), (1358878216,), (1358878266,), (1358878874,), (1358878935,), (1358878992,), (1358879044,), (1358879100,), (1358879847,), (1358879684,), (1358879742,), (1358879795,), (1358880184,), (1358880188,), (1358880191,), (1358880211,), (1358880524,), (1358880550,), (1358880582,), (1358880629,), (1358880680,), (1358880710,), (1358880975,), (1358880977,), (1358880980,), (1358880982,), (1358881191,), (1358881221,), (1358881228,), (1358881230,), (1358881557,), (1358881559,), (1358881578,), (1358881605,), (1358882052,), (1358882159,), (1358882271,), (1358882300,), (1358882329,), (1358882358,), (1358882651,), (1358882680,), (1358882709,), (1358882907,), (1358883267,), (1358883283,), (1358883594,), (1358883599,), (1358883605,), (1358883609,), (1358883852,), (1358883881,), (1358883910,), (1358883945,), (1358883955,), (1358884008,), (1358884017,), (1358884024,), (1358884034,), (1358884055,), (1358884059,), (1358884061,), (1358884075,), (1358884352,), (1358884192,), (1358884226,), (1358884256,), (1358884287,), (1358884323,), (1358884622,), (1358884652,), (1358884679,), (1358884705,), (1358884738,), (1358885041,), (1358885073,), (1358885102,), (1358885129,), (1358885247,), (1358885250,), (1358885253,), (1358885263,), (1358885292,), (1358885321,), (1358885534,), (1358885539,), (1358885544,), (1358885574,), (1358885756,), (1358885760,), (1358885765,), (1358885769,), (1358885773,), (1358885777,), (1358885799,), (1358885804,), (1358885809,), (1358885815,), (1358885820,), (1358885844,), (1358885848,), (1358885852,), (1358885894,), (1358885898,), (1358885903,), (1358885906,), (1358885908,), (1358885911,), (1358885948,), (1358885951,), (1358885954,), (1358886008,), (1358886300,), (1358886373,), (1358886431,), (1358886491,), (1358886556,), (1358886720,), (1358886750,), (1358886783,), (1358886814,), (1358886845,), (1358886876,), (1358887122,), (1358887125,), (1358887129,), (1358887132,), (1358887137,), (1358887142,), (1358887252,), (1358887311,), (1358887368,), (1358887826,), (1358887866,), (1358887913,), (1358887955,), (1358888016,), (1358888572,), (1358888369,), (1358888401,), (1358888434,), (1358888500,), (1358888537,), (1358888823,), (1358888850,), (1358888880,), (1358888907,), (1358889110,), (1358889137,), (1358889175,), (1358889226,), (1358889286,), (1358889339,), (1358889529,), (1358889556,), (1358889560,), (1358889565,), (1358889570,), (1358889732,), (1358889737,), (1358889741,), (1358889744,), (1358889748,), (1358889799,), (1358889803,), (1358889808,), (1358889812,), (1358889816,), (1358889895,), (1358889922,), (1358889951,), (1358889977,), (1358890010,), (1358890041,), (1358890296,), (1358890328,), (1358890357,), (1358890394,), (1358890425,), (1358890721,), (1358890748,), (1358890777,), (1358890780,), (1358890783,), (1358890950,), (1358890954,), (1358890957,), (1358890959,), (1358890963,), (1358891465,), (1358891467,), (1358891470,), (1358891746,), (1358891772,), (1358891777,), (1358891783,), (1358891786,), (1358891789,), (1358891826,), (1358891870,), (1358891873,), (1358891879,), (1358891928,), (1358891979,), (1358892016,), (1358892020,), (1358892078,), (1358892106,), (1358892264,), (1358892250,), (1358892257,), (1358892261,), (1358892412,), (1358892419,), (1358892424,), (1358892430,), (1358892467,), (1358892469,), (1358892472,), (1358892508,), (1358892510,), (1358892513,), (1358892515,), (1358892528,), (1358892539,), (1358892565,), (1358892566,), (1358892567,), (1358892569,), (1358892571,), (1358892574,), (1358892599,), (1358892603,), (1358892651,), (1358892653,), (1358892669,), (1358892671,), (1358892672,), (1358892678,), (1358892787,), (1358892814,), (1358892818,), (1358892849,), (1358892964,), (1358892990,), (1358893054,), (1358893115,), (1358893310,), (1358893313,), (1358893317,), (1358893451,), (1358893455,), (1358893459,), (1358893562,), (1358893578,), (1358893607,), (1358893633,), (1358893645,), (1358893656,), (1358893774,), (1358893777,), (1358893781,), (1358893818,), (1358893822,), (1358893849,), (1358893852,), (1358893854,), (1358893857,), (1358893907,), (1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,), (1358897624,), (1358897406,), (1358897462,), (1358897511,), (1358897565,), (1358898156,), (1358898219,), (1358898276,), (1358898327,), (1358898392,), (1358898863,), (1358898888,), (1358898909,), (1358898912,), (1358899186,), (1358899218,), (1358899241,), (1358899263,), (1358899274,), (1358899589,), (1358899620,), (1358899641,), (1358899644,), (1358899648,), (1358899802,), (1358899893,), (1358899920,), (1358900105,), (1358900108,), (1358900111,), (1358900113,), (1358900158,), (1358900161,), (1358900200,), (1358900202,), (1358900205,), (1358900207,), (1358900210,), (1358900240,), (1358900242,), (1358900246,), (1358900302,), (1358900319,), (1358900353,), (1358900694,), (1358900725,), (1358900754,), (1358901088,), (1358901117,), (1358901148,), (1358901175,), (1358901192,), (1358901234,), (1358901378,), (1358901407,), (1358901453,), (1358901783,), (1358901815,), (1358901841,), (1358901847,), (1358901852,), (1358901916,), (1358901879,), (1358901886,), (1358902200,), (1358902205,), (1358902399,), (1358902404,), (1358902408,), (1358902444,), (1358902451,), (1358902467,), (1358902484,), (1358902504,), (1358902510,), (1358902534,), (1358902540,), (1358902589,), (1358902593,), (1358902598,), (1358902640,), (1358902643,), (1358902646,), (1358902649,), (1358902654,), (1358902658,), (1358902697,), (1358902700,), (1358902703,), (1358902705,), (1358902707,), (1358902735,), (1358902736,), (1358902738,), (1358902740,), (1358902742,), (1358902918,), (1358902942,), (1358902968,), (1358903252,), (1358903277,), (1358903299,), (1358903463,), (1358903483,), (1358903487,), (1358903490,), (1358903643,), (1358903648,), (1358903660,), (1358903686,), (1358903712,), (1358903959,), (1358904014,), (1358904550,), (1358904523,), (1358904927,), (1358904954,), (1358904975,), (1358904977,), (1358905116,), (1358905120,), (1358905123,), (1358905146,), (1358905172,), (1358905314,), (1358905473,), (1358905866,), (1358905869,), (1358905873,), (1358905941,), (1358905945,), (1358905950,), (1358906056,), (1358906347,), (1358906555,), (1358906559,), (1358906596,), (1358906600,), (1358906604,), (1358906608,), (1358906667,), (1358906670,), (1358906673,), (1358906676,), (1358906681,), (1358906897,), (1358906903,), (1358906909,), (1358907036,), (1358906978,), (1358907005,), (1358907029,), (1358907140,), (1358907145,), (1358907255,), (1358907282,), (1358907310,), (1358907398,), (1358907401,), (1358907410,), (1358907440,), (1358907442,), (1358907856,), (1358908325,), (1358908377,), (1358908433,), (1358908435,), (1358908436,), (1358908437,), (1358908546,), (1358908550,), (1358908553,), (1358908591,), (1358908600,), (1358908697,), (1358908700,), (1358908747,), (1358908751,), (1358908757,), (1358909329,), (1358909361,), (1358909398,), (1358909430,), (1358909461,), (1358909708,), (1358909694,), (1358909699,), (1358909704,), (1358910019,), (1358910066,), (1358910095,), (1358910123,), (1358910183,), (1358910230,), (1358910636,), (1358910687,), (1358910737,), (1358910789,), (1358911369,), (1358911422,), (1358911475,), (1358911526,), (1358911578,), (1358911635,), (1358912306,), (1358912376,), (1358912403,), (1358912431,), (1358913065,), (1358913114,), (1358913159,), (1358913196,), (1358913221,), (1358913261,), (1358913266,), (1358913272,), (1358913276,), (1358913280,), (1358913556,), (1358913610,), (1358913666,), (1358913708,), (1358913990,), (1358913997,), (1358914006,), (1358914009,), (1358914013,), (1358914137,), (1358914233,), (1358914259,), (1358914285,), (1358914314,), (1358914595,), (1358914622,), (1358936608,), (1358934651,), (1358936582,), (1358937143,), (1358937200,), (1358938031,), (1358938064,), (1358938091,), (1358938472,), (1358938483,), (1358938764,), (1358938783,), (1358938800,), (1358938830,), (1358938863,), (1358938890,), (1358939053,), (1358939087,), (1358939518,), (1358939548,), (1358939575,), (1358940052,), (1358940087,), (1358940128,), (1358940155,), (1358940530,), (1358940541,), (1358940543,), (1358940557,), (1358940560,), (1358940921,), (1358940815,), (1358940842,), (1358940881,), (1358940910,), (1358941073,), (1358941096,), (1358941099,), (1358941110,), (1358941248,), (1358941311,), (1358941319,), (1358941322,), (1358941325,), (1358941329,), (1358941360,), (1358941389,), (1358941394,), (1358941398,), (1358941402,), (1358941488,), (1358941493,), (1358941502,), (1358941584,), (1358941591,), (1358941598,), (1358941602,), (1358941745,), (1358941749,), (1358941753,), (1358941756,), (1358941761,), (1358941770,), (1358942015,), (1358942053,), (1358942104,), (1358942619,), (1358942628,), (1358942631,), (1358942640,), (1358942665,), (1358942697,), (1358942844,), (1358942845,), (1358942849,), (1358942853,), (1358942856,), (1358942872,), (1358943013,), (1358943017,), (1358943021,), (1358943023,), (1358943058,), (1358943061,), (1358943064,), (1358943300,), (1358943334,), (1358943366,), (1358943415,), (1358943473,), (1358943699,), (1358943794,), (1358943849,), (1358943903,), (1358943951,), (1358944780,), (1358944263,), (1358944345,), (1358944458,), (1358944565,), (1358944682,), (1358945748,), (1358945847,), (1358945953,), (1358946681,), (1358946763,), (1358946829,), (1358946911,), (1358947621,), (1358947680,), (1358947736,), (1358947808,), (1358947880,), (1358947975,), (1358948630,), (1358948661,), (1358948686,), (1358948717,), (1358948776,), (1358949106,), (1358949111,), (1358949116,), (1358949121,), (1358949232,), (1358949261,), (1358949291,), (1358949323,), (1358949354,), (1358949383,), (1358949511,), (1358949519,), (1358949547,), (1358949566,), (1358949896,), (1358949932,), (1358949981,), (1358950035,), (1358950080,), (1358950111,), (1358950477,), (1358950505,), (1358950538,), (1358950567,), (1358950910,), (1358950942,), (1358950975,), (1358951338,), (1358951406,), (1358951465,), (1358951560,), (1358951655,), (1358951730,), (1358952204,), (1358952270,), (1358952332,), (1358952389,), (1358952437,), (1358952595,), (1358952627,), (1358952655,), (1358952689,), (1358952719,), (1358952886,), (1358952890,), (1358952893,), (1358953210,), (1358953030,), (1358953041,), (1358953069,), (1358953115,), (1358953172,), (1358953583,), (1358953621,), (1358953662,), (1358953696,), (1358953727,), (1358953759,), (1358954251,), (1358954255,), (1358954260,), (1358954286,), (1358954614,), (1358954628,), (1358954660,), (1358954689,), (1358954719,), (1358954848,), (1358954873,), (1358954881,), (1358954905,), (1358954916,), (1358954934,), (1358955216,), (1358955233,), (1358955238,), (1358955347,), (1358955760,), (1358955791,), (1358955796,), (1358955799,), (1358955986,), (1358956012,), (1358956044,), (1358956370,), (1358956389,), (1358956390,), (1358956394,), (1358956397,), (1358956453,), (1358956529,), (1358956606,), (1358956682,), (1358956755,), (1358956807,), (1358956811,), (1358956814,), (1358956817,), (1358956819,), (1358957767,), (1358957618,), (1358957668,), (1358957701,), (1358957732,), (1358958115,), (1358958155,), (1358958197,), (1358958239,), (1358958592,), (1358958603,), (1358958633,), (1358958654,), (1358958682,), (1358958734,), (1358958924,), (1358958928,), (1358958933,), (1358958937,), (1358958945,), (1358959026,), (1358959447,), (1358959452,), (1358959454,), (1358959989,), (1358959995,), (1358960017,), (1358960045,), (1358960070,), (1358960080,), (1358960276,), (1358960288,), (1358960292,), (1358960294,), (1358960384,), (1358960389,), (1358960392,), (1358960428,), (1358960433,), (1358960435,), (1358960440,), (1358960442,), (1358960447,), (1358960478,), (1358960480,), (1358960483,), (1358960485,), (1358960488,), (1358960525,), (1358960528,), (1358960532,), (1358960535,), (1358960684,), (1358960709,), (1358960737,), (1358960763,), (1358960795,), (1358960827,), (1358960962,), (1358960978,), (1358960983,), (1358960985,), (1358961071,), (1358961074,), (1358961095,), (1358961099,), (1358961120,), (1358961143,), (1358961277,), (1358961281,), (1358961282,), (1358961284,), (1358961336,), (1358962017,), (1358961853,), (1358961927,), (1358961981,), (1358961984,), (1358962009,), (1358962286,), (1358962288,), (1358962292,), (1358962901,), (1358962923,), (1358962949,), (1358962968,), (1358962972,), (1358963094,), (1358963098,), (1358963102,), (1358963106,), (1358963109,), (1358963111,), (1358963141,), (1358963146,), (1358963188,), (1358963192,), (1358963204,), (1358963207,), (1358963210,), (1358963316,), (1358963343,), (1358963372,), (1358963375,), (1358963378,), (1358963505,), (1358963517,), (1358963522,), (1358963524,), (1358963646,), (1358963656,), (1358963659,), (1358963662,), (1358963665,), (1358963669,), (1358963699,), (1358963724,), (1358963753,), (1358963778,), (1358963809,), (1358964102,), (1358964131,), (1358964160,), (1358964677,), (1358964732,), (1358964785,), (1358964838,), (1358964895,), (1358964947,), (1358965441,), (1358965485,), (1358965531,), (1358965575,), (1358967003,), (1358967105,), (1358967206,), (1358967282,), (1358967422,), (1358967454,), (1358967483,), (1358967514,), (1358967544,), (1358968261,), (1358967947,), (1358968070,), (1358968187,), (1358969299,), (1358969392,), (1358969488,), (1358969582,), (1358969678,), (1358969771,), (1358970417,), (1358970458,), (1358970557,), (1358970615,), (1358970666,), (1358970921,), (1358970926,), (1358970954,), (1358970983,), (1358971375,), (1358971434,), (1358971476,), (1358971504,), (1358971518,), (1358971527,), (1358971957,), (1358971963,), (1358971998,), (1358973817,), (1358974095,), (1358974315,), (1358974232,), (1358974235,), (1358974239,), (1358974242,), (1358974272,), (1358974599,), (1358974628,), (1358974673,), (1358974971,), (1358974979,), (1358975163,), (1358975167,), (1358975184,), (1358975242,), (1358975291,), (1358975327,), (1358975370,), (1358975393,), (1358975395,), (1358975421,), (1358975545,), (1358975550,), (1358975554,), (1358975559,), (1358975563,), (1358975599,), (1358975603,), (1358975606,), (1358975610,), (1358975741,), (1358975763,), (1358975790,), (1358975848,), (1358975885,), (1358975913,), (1358976036,), (1358976042,), (1358976045,), (1358976318,), (1358976341,), (1358976348,), (1358976663,), (1358976689,), (1358976698,), (1358976752,), (1358976836,), (1358976903,), (1358977234,), (1358977279,), (1358977319,), (1358977356,), (1358977635,), (1358977640,), (1358977685,), (1358977690,), (1358977715,), (1358977861,), (1358977864,), (1358977910,), (1358977978,), (1358977982,), (1358977985,), (1358978235,), (1358978250,), (1358978419,), (1358978403,), (1358978406,), (1358978410,), (1358978412,), (1358978415,), (1358978457,), (1358978464,), (1358978475,), (1358978479,), (1358978794,), (1358978864,), (1358978940,), (1358979280,), (1358979292,), (1358979487,), (1358979491,), (1358979514,), (1358979531,), (1358979602,), (1358979607,), (1358979635,), (1358979663,), (1358979693,), (1358979752,), (1358979973,), (1358980031,), (1358980051,), (1358980058,), (1358980206,), (1358980210,), (1358980213,), (1358980217,), (1358980221,), (1358980274,), (1358980277,), (1358980282,), (1358980303,), (1358980333,), (1358980374,), (1358980588,), (1358980593,), (1358980609,), (1358980653,), (1358980686,), (1358980715,), (1358980868,), (1358980871,), (1358980876,), (1358980880,), (1358980884,), (1358981026,), (1358981038,), (1358981060,), (1358981076,), (1358981085,), (1358981169,), (1358981173,), (1358981178,), (1358981248,), (1358981249,), (1358981252,), (1358981254,), (1358981262,), (1358981266,), (1358981296,), (1358981300,), (1358981310,), (1358981317,), (1358981511,), (1358981524,), (1358981525,), (1358981544,), (1358981573,), (1358981579,), (1358981646,), (1358981638,), (1358981642,), (1358981675,), (1358981702,), (1358981845,), (1358981849,), (1358982449,), (1358982471,), (1358982496,), (1358982504,), (1358982516,), (1358982522,), (1358982592,), (1358982618,), (1358982652,), (1358982685,), (1358982714,), (1358982810,), (1358982900,), (1358982903,), (1358982907,), (1358982980,), (1358983013,), (1358983032,), (1358983037,), (1358983040,), (1358983044,), (1358983194,), (1358983239,), (1358983320,), (1358983340,), (1358983359,), (1358983507,), (1358983543,), (1358983575,), (1358983661,), (1358983678,), (1358983712,), (1358983716,), (1358983721,), (1358983726,), (1358983732,), (1358983738,), (1358983765,), (1358983770,), (1358983774,), (1358983777,), (1358983782,), (1358983821,), (1358983827,), (1358983839,), (1358983844,), (1358983904,), (1358983910,), (1358983917,), (1358983944,), (1358983980,), (1358984010,), (1358984895,), (1358984928,), (1358984961,), (1358985139,), (1358985202,), (1358985253,), (1358985281,), (1358985315,), (1358985706,), (1358985584,), (1358985615,), (1358985649,), (1358985673,), (1358985982,), (1358986011,), (1358986019,), (1358986503,), (1358986564,), (1358986647,), (1358986709,), (1358986774,), (1358987188,), (1358987217,), (1358987249,), (1358987279,), (1358987307,), (1358987335,), (1358987574,), (1358987601,), (1358987631,), (1358987662,), (1358987918,), (1358987941,), (1358987945,), (1358987955,), (1358987985,), (1358988034,), (1358988427,), (1358988454,), (1358988467,), (1358988472,), (1358988739,), (1358988773,), (1358988784,), (1358988797,), (1358988869,), (1358988873,), (1358988877,), (1358988939,), (1358988951,), (1358988963,), (1358988968,), (1358988973,), (1358989102,), (1358989119,), (1358989135,), (1358989146,), (1358989177,), (1358989182,), (1358989242,), (1358989246,), (1358989250,), (1358989302,), (1358989307,), (1358989315,), (1358989318,), (1358989323,), (1358989439,), (1358989457,), (1358989477,), (1358989495,), (1358989500,), (1358989505,), (1358989643,), (1358989649,), (1358989664,), (1358989668,), (1358989747,), (1358989725,), (1358989729,), (1358989734,), (1358989737,), (1358989742,), (1358989779,), (1358989788,), (1358989790,), (1358989794,), (1358989831,), (1358989835,), (1358989841,), (1358989845,), (1358989849,), (1358989852,), (1358989883,), (1358989888,), (1358989893,), (1358989897,), (1358989933,), (1358989936,), (1358989939,), (1358989941,), (1358989942,), (1358989991,), (1358989994,), (1358989998,), (1358990000,), (1358990064,), (1358990094,), (1358990128,), (1358990573,), (1358990608,), (1358990655,), (1358990700,), (1358990735,), (1358990786,), (1358991077,), (1358991135,), (1358991199,), (1358991834,), (1358991872,), (1358991903,), (1358991932,), (1358992469,), (1358992531,), (1358992603,), (1358993089,), (1358993100,), (1358993149,), (1358993713,), (1358993725,), (1358993756,), (1358993784,), (1358993826,), (1358994152,), (1358994212,), (1358994264,), (1358994345,), (1358994720,), (1358994737,), (1358994742,), (1358994824,), (1358994799,), (1358994803,), (1358994809,), (1358994814,), (1358994819,), (1358995042,), (1358995045,), (1358995047,), (1358995051,), (1358995055,), (1358995061,), (1358995086,), (1358995089,), (1358995093,), (1358995097,), (1358995134,), (1358995136,), (1358995138,), (1358995139,), (1358995143,), (1358995147,), (1358995178,), (1358995182,), (1358995185,), (1358995190,), (1358995246,), (1358995274,), (1358995300,), (1358995682,), (1358995707,), (1358995738,), (1358995763,), (1358996164,), (1358996189,), (1358996267,), (1358996319,), (1358996408,), (1358996697,), (1358996725,), (1358996758,), (1358997288,), (1358997359,), (1358997405,), (1358997487,), (1358997520,), (1358997758,), (1358997824,), (1358997866,), (1358997905,), (1358998619,), (1358998648,), (1358998676,), (1358999088,), (1358999117,), (1358999147,), (1358999164,), (1358999181,), (1358999615,), (1358999643,), (1358999674,), (1358999701,), (1358999749,), (1359000628,), (1359000664,), (1359000715,), (1359000745,), (1359001057,), (1359000946,), (1359000971,), (1359000998,), (1359001029,), (1359001291,), (1359001296,), (1359001301,), (1359001314,), (1359001344,), (1359001469,), (1359001474,), (1359001508,), (1359001536,), (1359001569,), (1359001755,), (1359001759,), (1359001763,), (1359001766,), (1359001802,), (1359001806,), (1359001807,), (1359001812,), (1359001816,), (1359001911,), (1359001938,), (1359001965,), (1359001993,), (1359002380,), (1359002411,), (1359002415,), (1359002420,), (1359002431,), (1359002459,), (1359002500,), (1359002505,), (1359002509,), (1359002550,), (1359002724,), (1359002735,), (1359002743,), (1359002759,), (1359002762,), (1359002766,), (1359002874,), (1359002878,), (1359002880,), (1359003247,), (1359003306,), (1359003354,), (1359003652,), (1359003678,), (1359003706,), (1359003727,), (1359003730,), (1359003735,), (1359004270,), (1359004334,), (1359004396,), (1359004431,), (1359004475,), (1359004511,), (1359004617,), (1359004655,), (1359004688,), (1359005384,), (1359004989,), (1359005104,), (1359005225,), (1359005304,), (1359005345,), (1359005751,), (1359005805,), (1359005862,), (1359005918,), (1359005985,), (1359006052,), (1359007002,), (1359007088,), (1359007164,), (1359007242,), (1359007646,), (1359007663,), (1359007699,), (1359007753,), (1359008386,), (1359008416,), (1359008465,), (1359008936,), (1359008942,), (1359008957,), (1359008988,), (1359009024,), (1359009228,), (1359009267,), (1359009298,), (1359009660,), (1359009725,), (1359009792,), (1359009835,), (1359010234,), (1359010271,), (1359010305,), (1359010363,), (1359010406,), (1359010435,), (1359010588,), (1359010593,), (1359010616,), (1359010652,), (1359011095,), (1359011210,), (1359011248,), (1359011285,), (1359011326,), (1359011356,), (1359011503,), (1359011531,), (1359011560,), (1359011594,), (1359011599,), (1359011614,), (1359011995,), (1359012029,), (1359012060,), (1359012128,), (1359012318,), (1359012377,), (1359012413,), (1359012428,), (1359012446,), (1359012466,), (1359012636,), (1359012675,), (1359012693,), (1359012699,), (1359012792,), (1359012780,), (1359012785,), (1359012789,), (1359012880,), (1359012884,), (1359012888,), (1359012891,), (1359012895,), (1359012910,), (1359013049,), (1359013056,), (1359013060,), (1359013080,), (1359013109,), (1359013117,), (1359013216,), (1359013233,), (1359013236,), (1359013271,), (1359013274,), (1359013278,), (1359013281,), (1359013317,), (1359013664,), (1359013710,), (1359013739,), (1359013773,), (1359013802,), (1359013832,), (1359014015,), (1359014020,), (1359014028,), (1359014738,), (1359015556,), (1359015615,), (1359015672,), (1359015947,), (1359015952,), (1359015977,), (1359016249,), (1359016322,), (1359016356,), (1359016404,), (1359016426,), (1359016597,), (1359016628,), (1359016904,), (1359016932,), (1359016991,), (1359016996,), (1359017032,), (1359017037,), (1359017045,), (1359017050,), (1359017057,), (1359018085,), (1359020145,), (1359020152,), (1359020157,), (1359020160,), (1359020163,), (1359020297,), (1359020366,), (1359020648,), (1359020655,), (1359020694,), (1359020697,), (1359020700,), (1359020706,), (1359020832,), (1359020860,), (1359020883,), (1359020911,), (1359021751,), (1359021754,), (1359022436,), (1359022474,), (1359022486,), (1359022504,), (1359022573,), (1359022920,), (1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16052025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23076021]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] map_info['map_portfolio_photo'] : {23076021: [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407, 1359023265, 1359023247, 1359023213, 1359023167, 1359023133, 1359022896, 1359022880, 1359022876]} final : True mtd_id 4302 list_pids : [1359023651, 1359023623, 1359023596, 1359023588, 1359023583, 1359023540, 1359023537, 1359023532, 1359023528, 1359023490, 1359023471, 1359023439, 1359023412, 1359023407] Looping around the photos to save general results len do output : 1 /23076021Didn'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, '2882787') ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787') ('4302', None, None, None, None, None, None, None, '2882787') ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23076021', 'None', None, None, None, None, '2882787'), ('4302', '23076021', '1359023651', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023623', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023596', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023588', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023583', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023540', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023537', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023532', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023528', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023490', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023471', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023439', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023412', None, None, None, None, None, '2882787'), ('4302', '23076021', '1359023407', None, None, None, None, None, '2882787')] time used for this insertion : 0.014189004898071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4717373847961426 time spend to save output : 0.014469623565673828 total time spend for step 5 : 3.4862070083618164 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 (2882787) 2.51user 2.30system 0:08.88elapsed 54%CPU (0avgtext+0avgdata 160380maxresident)k 1520inputs+9144outputs (75major+75435minor)pagefaults 0swaps