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 : 1686302 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 (4185259) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4185259) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183382 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4185259'] with mtr_portfolio_ids : ['29183382'] and first list_photo_ids : [] new path : /proc/1686302/ Name: python3 Umask: 0002 State: R (running) Tgid: 1686302 Ngid: 0 Pid: 1686302 PPid: 1686301 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1686302 NSpid: 1686302 NSpgid: 1684790 NSsid: 1684790 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105516 kB VmRSS: 105516 kB RssAnon: 66320 kB RssFile: 39196 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1686302', 'Ngid': '0', 'Pid': '1686302', 'PPid': '1686301', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1686302', 'NSpid': '1686302', 'NSpgid': '1684790', 'NSsid': '1684790', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105516 kB', 'VmRSS': '105516 kB', 'RssAnon': '66320 kB', 'RssFile': '39196 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1686302', '1113376', '0', '1113376', '872104', '105516', b'', 'marlene', '4185259') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29183382) 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 (4185259 ) ) 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 (29183382) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397848739, 'portfolio_id': 29183382}, {'photo_id': 1397848707, 'portfolio_id': 29183382}, {'photo_id': 1397848701, 'portfolio_id': 29183382}, {'photo_id': 1397848700, 'portfolio_id': 29183382}, {'photo_id': 1397848698, 'portfolio_id': 29183382}, {'photo_id': 1397848673, 'portfolio_id': 29183382}, {'photo_id': 1397848671, 'portfolio_id': 29183382}, {'photo_id': 1397848668, 'portfolio_id': 29183382}, {'photo_id': 1397848666, 'portfolio_id': 29183382}, {'photo_id': 1397848663, 'portfolio_id': 29183382}, {'photo_id': 1397848660, 'portfolio_id': 29183382}, {'photo_id': 1397848629, 'portfolio_id': 29183382}, {'photo_id': 1397848627, 'portfolio_id': 29183382}, {'photo_id': 1397848624, 'portfolio_id': 29183382}, {'photo_id': 1397848621, 'portfolio_id': 29183382}, {'photo_id': 1397848303, 'portfolio_id': 29183382}, {'photo_id': 1397848205, 'portfolio_id': 29183382}, {'photo_id': 1397848149, 'portfolio_id': 29183382}, {'photo_id': 1397848106, 'portfolio_id': 29183382}, {'photo_id': 1397848105, 'portfolio_id': 29183382}, {'photo_id': 1397848016, 'portfolio_id': 29183382}, {'photo_id': 1397847367, 'portfolio_id': 29183382}, {'photo_id': 1397847365, 'portfolio_id': 29183382}, {'photo_id': 1397847363, 'portfolio_id': 29183382}, {'photo_id': 1397847361, 'portfolio_id': 29183382}, {'photo_id': 1397847272, 'portfolio_id': 29183382}, {'photo_id': 1397847265, 'portfolio_id': 29183382}, {'photo_id': 1397847069, 'portfolio_id': 29183382}, {'photo_id': 1397847034, 'portfolio_id': 29183382}, {'photo_id': 1397846998, 'portfolio_id': 29183382}, {'photo_id': 1397846960, 'portfolio_id': 29183382}, {'photo_id': 1397846771, 'portfolio_id': 29183382}, {'photo_id': 1397846757, 'portfolio_id': 29183382}, {'photo_id': 1397846719, 'portfolio_id': 29183382}, {'photo_id': 1397845876, 'portfolio_id': 29183382}] map_portfolio_id_photo_id: {29183382: [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660, 1397848629, 1397848627, 1397848624, 1397848621, 1397848303, 1397848205, 1397848149, 1397848106, 1397848105, 1397848016, 1397847367, 1397847365, 1397847363, 1397847361, 1397847272, 1397847265, 1397847069, 1397847034, 1397846998, 1397846960, 1397846771, 1397846757, 1397846719, 1397845876]} ##### 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.01894402503967285 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Dec 4 14:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29183382) 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 : 29183382 get user id for portfolio 29183382 get sub ptf for main ptf 29183382, type 3726 and hashtags ['cartonnette', 'environnement', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'mal_croppe', 'metal', 'plastique', 'kraft', 'autre_refus', 'papier', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29183382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','metal','plastique','kraft','autre_refus','papier','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29183382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','metal','plastique','kraft','autre_refus','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29183382, 'sub_port_id': 29183385, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840794, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'environnement': {'main_port_id': 29183382, 'sub_port_id': 29183386, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840795, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'flou': {'main_port_id': 29183382, 'sub_port_id': 29183387, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840796, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'metal': {'main_port_id': 29183382, 'sub_port_id': 29183388, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840797, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'mal_croppe': {'main_port_id': 29183382, 'sub_port_id': 29183389, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840798, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'Carton_brun': {'main_port_id': 29183382, 'sub_port_id': 29183390, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840799, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29183382, 'sub_port_id': 29183391, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840800, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'plastique': {'main_port_id': 29183382, 'sub_port_id': 29183392, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840801, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'Carton_gris': {'main_port_id': 29183382, 'sub_port_id': 29183393, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840802, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'autre_refus': {'main_port_id': 29183382, 'sub_port_id': 29183394, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840803, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'papier': {'main_port_id': 29183382, 'sub_port_id': 29183395, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840804, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}, 'cartonnette': {'main_port_id': 29183382, 'sub_port_id': 29183396, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840805, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183385 , 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=29183382 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 (29183385) result : ((1397848678,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183386 , 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=29183382 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 (29183386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183387 , 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=29183382 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 (29183387) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183388 , 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=29183382 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 (29183388) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183389 , 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=29183382 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 (29183389) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183390 , 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=29183382 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 (29183390) result : ((1397847377,), (1397848456,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183391 , 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=29183382 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 (29183391) result : ((1397848449,), (1397848630,), (1397848631,), (1397848632,), (1397848633,), (1397848634,), (1397848635,), (1397848636,), (1397848637,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183392 , 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=29183382 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 (29183392) result : ((1397848641,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183393 , 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=29183382 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 (29183393) result : ((1397848450,), (1397848451,), (1397848453,), (1397848638,), (1397848639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183394 , 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=29183382 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 (29183394) result : ((1397847376,), (1397848675,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183395 , 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=29183382 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 (29183395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29183396 , 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=29183382 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 (29183396) result : ((1397848455,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29183382) result : ((1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) 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 (1397848700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29183382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','metal','plastique','kraft','autre_refus','papier','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29183382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','metal','plastique','kraft','autre_refus','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29183382, 'sub_port_id': 29183397, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840806, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'environnement': {'main_port_id': 29183382, 'sub_port_id': 29183398, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840807, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'flou': {'main_port_id': 29183382, 'sub_port_id': 29183399, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840808, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'metal': {'main_port_id': 29183382, 'sub_port_id': 29183400, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840809, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'mal_croppe': {'main_port_id': 29183382, 'sub_port_id': 29183401, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840810, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'Carton_brun': {'main_port_id': 29183382, 'sub_port_id': 29183402, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840811, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29183382, 'sub_port_id': 29183403, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840812, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'plastique': {'main_port_id': 29183382, 'sub_port_id': 29183404, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840813, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'Carton_gris': {'main_port_id': 29183382, 'sub_port_id': 29183405, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840814, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'autre_refus': {'main_port_id': 29183382, 'sub_port_id': 29183406, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840815, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'papier': {'main_port_id': 29183382, 'sub_port_id': 29183407, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840816, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}, 'cartonnette': {'main_port_id': 29183382, 'sub_port_id': 29183408, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19840817, 'last_updated_at': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 14, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 14, 6, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29183408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29183396 lien utilise dans velours : https://marlene.fotonower.com/velours/29183397,29183398,29183399,29183400,29183401,29183402,29183403,29183404,29183405,29183406,29183407,29183408?tags=kraft,environnement,flou,metal,mal_croppe,Carton_brun,Teint_Dans_La_Masse,plastique,Carton_gris,autre_refus,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29183382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] map_info['map_portfolio_photo'] : {29183382: [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660, 1397848629, 1397848627, 1397848624, 1397848621, 1397848303, 1397848205, 1397848149, 1397848106, 1397848105, 1397848016, 1397847367, 1397847365, 1397847363, 1397847361, 1397847272, 1397847265, 1397847069, 1397847034, 1397846998, 1397846960, 1397846771, 1397846757, 1397846719, 1397845876]} final : False mtd_id 4302 list_pids : [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] Looping around the photos to save general results len do output : 1 /29183382. 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, '4185259') ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29183382', "{'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396}", None, None, None, None, '4185259'), ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259')] time used for this insertion : 0.016617536544799805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5562005043029785 time spend to save output : 0.01688861846923828 total time spend for step 1 : 0.5730891227722168 step2:final Thu Dec 4 14:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29183382) 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 29183382 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397845876,1397846771,1397846719,1397846757,1397847069,1397847034,1397846998,1397846960,1397847272,1397847265,1397847367,1397847365,1397847363,1397847361,1397848106,1397848105,1397848016,1397848303,1397848205,1397848149,1397848629,1397848627,1397848624,1397848621,1397848673,1397848671,1397848668,1397848666,1397848663,1397848660,1397848739,1397848707,1397848701,1397848700,1397848698); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29183382]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} new output for save of step final : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] map_info['map_portfolio_photo'] : {29183382: [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660, 1397848629, 1397848627, 1397848624, 1397848621, 1397848303, 1397848205, 1397848149, 1397848106, 1397848105, 1397848016, 1397847367, 1397847365, 1397847363, 1397847361, 1397847272, 1397847265, 1397847069, 1397847034, 1397846998, 1397846960, 1397846771, 1397846757, 1397846719, 1397845876]} final : False mtd_id 4302 list_pids : [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] Looping around the photos to save general results len do output : 11 /1397848739.Didn't retrieve data . /1397848707.Didn't retrieve data . /1397848701.Didn't retrieve data . /1397848700.Didn't retrieve data . /1397848698.Didn't retrieve data . /1397848673.Didn't retrieve data . /1397848671.Didn't retrieve data . /1397848668.Didn't retrieve data . /1397848666.Didn't retrieve data . /1397848663.Didn't retrieve data . /1397848660.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, '4185259') ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29183382', '1397848739', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848707', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848701', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848700', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848698', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848673', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848671', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848668', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848666', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848663', '0.06516302388070117', None, None, None, None, '4185259'), ('4302', '29183382', '1397848660', '0.06516302388070117', None, None, None, None, '4185259')] time used for this insertion : 0.017419099807739258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07906532287597656 time spend to save output : 0.017938613891601562 total time spend for step 2 : 0.09700393676757812 step3:velours_tree Thu Dec 4 14:13: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 : {29183382: [{'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396}]} input_args_next_step : {29183382: ()} output_args : {29183382: [{'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396}]} args : 29183382 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29183382) 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([29183382]) 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.24036645889282227 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.24041414260864258 step4:send_mail_cod Thu Dec 4 14:13: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 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 : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} input_args_next_step : {1397848739: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848739 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848707 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848701 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848700 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848698 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848673 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848671 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848668 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848666 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848663 depend.output_id : 0 input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ()} output_args : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',)} args : 1397848660 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 : {29183382: [{'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396}]} input_args_next_step : {1397848739: ('0.06516302388070117',), 1397848707: ('0.06516302388070117',), 1397848701: ('0.06516302388070117',), 1397848700: ('0.06516302388070117',), 1397848698: ('0.06516302388070117',), 1397848673: ('0.06516302388070117',), 1397848671: ('0.06516302388070117',), 1397848668: ('0.06516302388070117',), 1397848666: ('0.06516302388070117',), 1397848663: ('0.06516302388070117',), 1397848660: ('0.06516302388070117',), 29183382: ()} output_args : {29183382: [{'kraft': 29183385, 'environnement': 29183386, 'flou': 29183387, 'metal': 29183388, 'mal_croppe': 29183389, 'Carton_brun': 29183390, 'Teint_Dans_La_Masse': 29183391, 'plastique': 29183392, 'Carton_gris': 29183393, 'autre_refus': 29183394, 'papier': 29183395, 'cartonnette': 29183396}]} args : 29183382 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.06516302388070117',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29183382) 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_view ph WHERE photo_id IN (1397848739,1397848707,1397848701,1397848700,1397848698,1397848673,1397848671,1397848668,1397848666,1397848663,1397848660) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397848660 begin to download photo : 1397848668 begin to download photo : 1397848698 begin to download photo : 1397848707 download finish for photo 1397848668 begin to download photo : 1397848671 download finish for photo 1397848707 begin to download photo : 1397848739 download finish for photo 1397848660 begin to download photo : 1397848663 download finish for photo 1397848698 begin to download photo : 1397848700 download finish for photo 1397848671 begin to download photo : 1397848673 download finish for photo 1397848739 download finish for photo 1397848663 begin to download photo : 1397848666 download finish for photo 1397848700 begin to download photo : 1397848701 download finish for photo 1397848673 download finish for photo 1397848701 download finish for photo 1397848666 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29183382_04-12-2025_14_13_00.pdf 29183385 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397848678: '1764853867_1496947_1397848621_785230e9867f71ad5e5afd49ba5f60a4_rle_crop_4058606566_0.png'} change filename to text .imagette291833851764853980/ imagette291833851764853980/1764853867_1496947_1397848621_785230e9867f71ad5e5afd49ba5f60a4_rle_crop_4058606566_0.png.png imagette291833871764853980/ imagette291833881764853980/ imagette291833891764853980/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ee3d10f11be781e2d3bc46bef71da8ee_34324296.png imagette291833851764853980 29183387 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291833871764853980 29183388 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291833881764853980 29183389 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291833891764853980 29183392 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397848641: '1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606465_0.png'} change filename to text .imagette291833921764853980/ imagette291833921764853980/1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606465_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/787d96c0c5dded0351d458ba9083d955_67171694.png imagette291833921764853980 29183394 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397847376: '1764853626_1484798_1397847034_ff25c8c90eed5dde952139746f7621dc_rle_crop_4058604103_0.png', 1397848675: '1764853867_1496947_1397848621_785230e9867f71ad5e5afd49ba5f60a4_rle_crop_4058606567_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0f3b8facd6b2e4ac91507c4d37ca253a_75095603.png change filename to text .imagette291833941764853980/ imagette291833941764853980/1764853867_1496947_1397848621_785230e9867f71ad5e5afd49ba5f60a4_rle_crop_4058606567_0.png.png imagette291833941764853980/1764853626_1484798_1397847034_ff25c8c90eed5dde952139746f7621dc_rle_crop_4058604103_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/360592d059ce556ac2dc2c7fc66525fa_27373459.png imagette291833941764853980 29183396 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397848455: '1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605878_0.png'} change filename to text .imagette291833961764853981/ imagette291833961764853981/1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605878_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/b62b34896a59531101b74f04f6842a44_99336870.png imagette291833961764853981 29183390 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397847377: '1764853626_1484798_1397847034_ff25c8c90eed5dde952139746f7621dc_rle_crop_4058604101_0.png', 1397848456: '1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605898_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/589e1c8cd65b061cfa098c86d14aea5e_21323745.png change filename to text .imagette291833901764853981/ imagette291833901764853981/1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605898_0.png.png imagette291833901764853981/1764853626_1484798_1397847034_ff25c8c90eed5dde952139746f7621dc_rle_crop_4058604101_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/9838543dcd4916ac2aa6aa0d6f2569aa_73092835.png imagette291833901764853981 29183391 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397848449: '1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605883_0.png', 1397848630: '1764853767_1491232_1397848106_3a3fbcf40743952134931189f4665422_rle_crop_4058606044_0.png', 1397848631: '1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606058_0.png', 1397848632: '1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606055_0.png', 1397848633: '1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606454_0.png', 1397848634: '1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606449_0.png', 1397848635: '1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606456_0.png', 1397848636: '1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606471_0.png', 1397848637: '1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/551787ca308620ac9f0733484fdc3468_43527312.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ba5aede4ede8e18b58b4a15899b88e45_90052136.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/707fdf69498b4844a7dd3191d240ddc8_789902.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e76ac53a9d2a6f3a3b251a7b69f5eb5c_94611049.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/53a569aedce8ec21970adf8c8e21a01a_45645922.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a221d9258de8c0c5177fc8e348bc5cab_54131461.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1fe53399bc30ad40ca229a10b882cdaf_9679381.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a49bf40fb7cfa4647bf0813e7e8e6759_25400567.png change filename to text .imagette291833911764853981/ imagette291833911764853981/1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606470_0.png.png imagette291833911764853981/1764853767_1491232_1397847361_383e736f55b90dcc7c3d311799ba3a82_rle_crop_4058606471_0.png.png imagette291833911764853981/1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605883_0.png.png imagette291833911764853981/1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606449_0.png.png imagette291833911764853981/1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606058_0.png.png imagette291833911764853981/1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606055_0.png.png imagette291833911764853981/1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606456_0.png.png imagette291833911764853981/1764853767_1491232_1397848106_3a3fbcf40743952134931189f4665422_rle_crop_4058606044_0.png.png imagette291833911764853981/1764853767_1491232_1397847363_02581af1b00d5f10bc0c17567bdd04f5_rle_crop_4058606454_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/badc37f493fd6d0f132548c5428df8c8_26494575.png imagette291833911764853981 29183393 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397848450: '1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605880_0.png', 1397848451: '1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605893_0.png', 1397848453: '1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605894_0.png', 1397848638: '1764853767_1491232_1397848106_3a3fbcf40743952134931189f4665422_rle_crop_4058606040_0.png', 1397848639: '1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606049_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/11f1035030cbd1a058c1b8d3b922cf54_13336191.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6d1b2982434f07ec044b1d738cfd3db6_53044397.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/27e22816c21e1f1b0bf418a5cde27d91_10657618.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3edee2ad81f569922c21ea49fe7be0b0_34585123.png change filename to text .imagette291833931764853981/ imagette291833931764853981/1764853767_1491232_1397847365_e6bdfbe13a1a349e38f6670fb941c860_rle_crop_4058606049_0.png.png imagette291833931764853981/1764853745_1490820_1397848105_4906c80addd18c1ba496fe64eed78034_rle_crop_4058605880_0.png.png imagette291833931764853981/1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605894_0.png.png imagette291833931764853981/1764853767_1491232_1397848106_3a3fbcf40743952134931189f4665422_rle_crop_4058606040_0.png.png imagette291833931764853981/1764853745_1490820_1397848016_e4d56974d0e10cb8098af8f52970d1f9_rle_crop_4058605893_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e50138b473a43eee1ae494785be822ea_83487057.png imagette291833931764853981 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29183382 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29183397,29183398,29183399,29183400,29183401,29183402,29183403,29183404,29183405,29183406,29183407,29183408?tags=kraft,environnement,flou,metal,mal_croppe,Carton_brun,Teint_Dans_La_Masse,plastique,Carton_gris,autre_refus,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1397848739] : ('0.06516302388070117',) no score found for photo 1397848739 We are sending mail with results at report@fotonower.com args[1397848707] : ('0.06516302388070117',) no score found for photo 1397848707 We are sending mail with results at report@fotonower.com args[1397848701] : ('0.06516302388070117',) no score found for photo 1397848701 We are sending mail with results at report@fotonower.com args[1397848700] : ('0.06516302388070117',) no score found for photo 1397848700 We are sending mail with results at report@fotonower.com args[1397848698] : ('0.06516302388070117',) no score found for photo 1397848698 We are sending mail with results at report@fotonower.com args[1397848673] : ('0.06516302388070117',) no score found for photo 1397848673 We are sending mail with results at report@fotonower.com args[1397848671] : ('0.06516302388070117',) no score found for photo 1397848671 We are sending mail with results at report@fotonower.com args[1397848668] : ('0.06516302388070117',) no score found for photo 1397848668 We are sending mail with results at report@fotonower.com args[1397848666] : ('0.06516302388070117',) no score found for photo 1397848666 We are sending mail with results at report@fotonower.com args[1397848663] : ('0.06516302388070117',) no score found for photo 1397848663 We are sending mail with results at report@fotonower.com args[1397848660] : ('0.06516302388070117',) no score found for photo 1397848660 We are sending mail with results at report@fotonower.com refus_total : 0.06516302388070117 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183382 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_P29183382_04-12-2025_14_13_00.pdf results_Auto_P29183382_04-12-2025_14_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_13_00.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','29183382','results_Auto_P29183382_04-12-2025_14_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_13_00.pdf','pdf','','0.18','0.06516302388070117') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29183382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] map_info['map_portfolio_photo'] : {29183382: [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660, 1397848629, 1397848627, 1397848624, 1397848621, 1397848303, 1397848205, 1397848149, 1397848106, 1397848105, 1397848016, 1397847367, 1397847365, 1397847363, 1397847361, 1397847272, 1397847265, 1397847069, 1397847034, 1397846998, 1397846960, 1397846771, 1397846757, 1397846719, 1397845876]} final : False mtd_id 4302 list_pids : [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] 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, '4185259') ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29183382', '1397848739', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259')] time used for this insertion : 0.015805721282958984 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3725318908691406 time spend to save output : 0.016032934188842773 total time spend for step 4 : 3.3885648250579834 step5:split_time_score Thu Dec 4 14:13:03 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 : ['29183382'] 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 : [('29183382',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29183382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397848707: {'path': 'temp/1764853980_1686302_1397848707_42e2d497f33c2d570ee32762ee2bf4c3.jpg', 'extension': 'jpg'}, 1397848739: {'path': 'temp/1764853980_1686302_1397848739_269d7b96109f810e30df801845ebe96e.jpg', 'extension': 'jpg'}, 1397848668: {'path': 'temp/1764853980_1686302_1397848668_43db777a2e08ad2b8479f3aa20bace53.jpg', 'extension': 'jpg'}, 1397848671: {'path': 'temp/1764853980_1686302_1397848671_bdefbb72058b25cc9e2933c1e2507e2d.jpg', 'extension': 'jpg'}, 1397848673: {'path': 'temp/1764853980_1686302_1397848673_5b4e14ecb0877beeb96aa80577e778c2.jpg', 'extension': 'jpg'}, 1397848698: {'path': 'temp/1764853980_1686302_1397848698_9e0806a2242539ef966df71b2fa7183d.jpg', 'extension': 'jpg'}, 1397848700: {'path': 'temp/1764853980_1686302_1397848700_b36939c0bc03c43876506230a69d9d0c.jpg', 'extension': 'jpg'}, 1397848701: {'path': 'temp/1764853980_1686302_1397848701_a6af9d41e05f39b020da4f9a5adaaaaf.jpg', 'extension': 'jpg'}, 1397848660: {'path': 'temp/1764853980_1686302_1397848660_cd5c5cc919b6c10c02f5b794348a9989.jpg', 'extension': 'jpg'}, 1397848663: {'path': 'temp/1764853980_1686302_1397848663_9bc92436c4c41cb6907adfa03657e07f.jpg', 'extension': 'jpg'}, 1397848666: {'path': 'temp/1764853980_1686302_1397848666_6a06e49409e5b715efe0aa4eb7956906.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 = 29183382; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29183382 group by h (('14', 35),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29183382 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 (29183382) 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 (29183382) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04122025 29183382 Nombre de photos uploadées : 35 / 23040 (0%) 04122025 29183382 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 04122025 29183382 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1397845876, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/67150da8c35c9ea250588a1153ca18f4.jpg', 'username': None, 'uploaded_at': 1764853387, 'text': 'image_04122025_14_01_44_10140.jpg'}, {'photo_id': 1397846771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/4f05c602c200bf4fe3af0cbccc7f93e3.jpg', 'username': None, 'uploaded_at': 1764853457, 'text': 'image_04122025_14_02_15_10136.jpg'}, {'photo_id': 1397846719, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/710bf12826018108e13177123e83559c.jpg', 'username': None, 'uploaded_at': 1764853443, 'text': 'image_04122025_14_03_04_10151.jpg'}, {'photo_id': 1397846757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/2a1b14785088d7932cd21b4b52729a90.jpg', 'username': None, 'uploaded_at': 1764853457, 'text': 'image_04122025_14_03_35_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015881061553955078 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29183382, '2025-12-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2690577,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2582845687866211 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= 2690577 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29164250, 'dashboard_result_id': 18064116, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29164732, 'dashboard_result_id': 18064117, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29165106, 'dashboard_result_id': 18064118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29165583, 'dashboard_result_id': 18064119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29166634, 'dashboard_result_id': 18064120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29166944, 'dashboard_result_id': 18064121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29167317, 'dashboard_result_id': 18064122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29167848, 'dashboard_result_id': 18064123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29168406, 'dashboard_result_id': 18064124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29168945, 'dashboard_result_id': 18064125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29169363, 'dashboard_result_id': 18064126, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29169812, 'dashboard_result_id': 18064127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29170360, 'dashboard_result_id': 18064128, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29170831, 'dashboard_result_id': 18064129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29171165, 'dashboard_result_id': 18064130, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29172002, 'dashboard_result_id': 18064131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29172388, 'dashboard_result_id': 18064132, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29172801, 'dashboard_result_id': 18064133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29173230, 'dashboard_result_id': 18064134, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29173539, 'dashboard_result_id': 18064135, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29174089, 'dashboard_result_id': 18064136, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29174520, 'dashboard_result_id': 18064137, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29175025, 'dashboard_result_id': 18064138, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29175420, 'dashboard_result_id': 18064139, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29176081, 'dashboard_result_id': 18064140, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29176341, 'dashboard_result_id': 18064141, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29176418, 'dashboard_result_id': 18064142, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29176753, 'dashboard_result_id': 18064143, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29177339, 'dashboard_result_id': 18064144, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29177792, 'dashboard_result_id': 18064145, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29178343, 'dashboard_result_id': 18064146, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29179002, 'dashboard_result_id': 18064147, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29179437, 'dashboard_result_id': 18064148, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29179810, 'dashboard_result_id': 18064149, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29180409, 'dashboard_result_id': 18064150, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29181139, 'dashboard_result_id': 18064151, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29183299, 'dashboard_result_id': 18064152, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183299_04-12-2025_14_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183311, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2701124, 'mtr_portfolio_id': 29183382, 'dashboard_result_id': 18064153, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_11_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, '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 = 29164250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183584, 'mtr_portfolio_id': 29164250, 'created_at': datetime.datetime(2025, 12, 4, 6, 18, 29), 'result': '0.039691814632383166', 'result_long': None, 'result_double': None}] Qualite : 0.039691814632383166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}" where mtr_portfolio_id = 29164250 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29164250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064116, 0.039691814632383166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29164732 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183585, 'mtr_portfolio_id': 29164732, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 30), 'result': '0.04191147181602513', 'result_long': None, 'result_double': None}] Qualite : 0.04191147181602513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164732 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}" where mtr_portfolio_id = 29164732 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29164732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064117, 0.04191147181602513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29165106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183586, 'mtr_portfolio_id': 29165106, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 57), 'result': '0.03563083105827624', 'result_long': None, 'result_double': None}] Qualite : 0.03563083105827624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}" where mtr_portfolio_id = 29165106 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29165106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064118, 0.03563083105827624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29165583 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183587, 'mtr_portfolio_id': 29165583, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 29), 'result': '0.04070277561029388', 'result_long': None, 'result_double': None}] Qualite : 0.04070277561029388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165583 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}" where mtr_portfolio_id = 29165583 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29165583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064119, 0.04070277561029388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29166634 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183588, 'mtr_portfolio_id': 29166634, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 39), 'result': '0.021804988093340173', 'result_long': None, 'result_double': None}] Qualite : 0.021804988093340173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166634 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}" where mtr_portfolio_id = 29166634 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29166634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064120, 0.021804988093340173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29166944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183589, 'mtr_portfolio_id': 29166944, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 13), 'result': '0.04765577064209144', 'result_long': None, 'result_double': None}] Qualite : 0.04765577064209144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}" where mtr_portfolio_id = 29166944 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29166944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064121, 0.04765577064209144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29167317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183590, 'mtr_portfolio_id': 29167317, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 29), 'result': '0.0533162779279352', 'result_long': None, 'result_double': None}] Qualite : 0.0533162779279352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}" where mtr_portfolio_id = 29167317 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29167317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064122, 0.0533162779279352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29167848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183591, 'mtr_portfolio_id': 29167848, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 59), 'result': '0.05454299083044137', 'result_long': None, 'result_double': None}] Qualite : 0.05454299083044137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}" where mtr_portfolio_id = 29167848 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29167848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064123, 0.05454299083044137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29168406 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183592, 'mtr_portfolio_id': 29168406, 'created_at': datetime.datetime(2025, 12, 4, 6, 22, 27), 'result': '0.04351345317316067', 'result_long': None, 'result_double': None}] Qualite : 0.04351345317316067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168406 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}" where mtr_portfolio_id = 29168406 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29168406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064124, 0.04351345317316067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29168945 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183593, 'mtr_portfolio_id': 29168945, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 28), 'result': '0.058779092602812714', 'result_long': None, 'result_double': None}] Qualite : 0.058779092602812714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168945 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}" where mtr_portfolio_id = 29168945 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29168945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064125, 0.058779092602812714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29169363 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183594, 'mtr_portfolio_id': 29169363, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 58), 'result': '0.05984584230622193', 'result_long': None, 'result_double': None}] Qualite : 0.05984584230622193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169363 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}" where mtr_portfolio_id = 29169363 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29169363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064126, 0.05984584230622193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29169812 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183595, 'mtr_portfolio_id': 29169812, 'created_at': datetime.datetime(2025, 12, 4, 6, 24, 30), 'result': '0.03764803485049883', 'result_long': None, 'result_double': None}] Qualite : 0.03764803485049883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169812 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}" where mtr_portfolio_id = 29169812 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29169812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064127, 0.03764803485049883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29170360 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183596, 'mtr_portfolio_id': 29170360, 'created_at': datetime.datetime(2025, 12, 4, 6, 25), 'result': '0.044726143932483295', 'result_long': None, 'result_double': None}] Qualite : 0.044726143932483295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170360 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}" where mtr_portfolio_id = 29170360 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29170360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064128, 0.044726143932483295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29170831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183597, 'mtr_portfolio_id': 29170831, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 32), 'result': '0.043621951418468405', 'result_long': None, 'result_double': None}] Qualite : 0.043621951418468405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}" where mtr_portfolio_id = 29170831 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29170831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064129, 0.043621951418468405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29171165 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183598, 'mtr_portfolio_id': 29171165, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 38), 'result': '0.05725304174549657', 'result_long': None, 'result_double': None}] Qualite : 0.05725304174549657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29171165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29171165 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}" where mtr_portfolio_id = 29171165 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29171165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064130, 0.05725304174549657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29172002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183600, 'mtr_portfolio_id': 29172002, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 1), 'result': '0.04546848021720859', 'result_long': None, 'result_double': None}] Qualite : 0.04546848021720859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}" where mtr_portfolio_id = 29172002 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29172002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064131, 0.04546848021720859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29172388 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183601, 'mtr_portfolio_id': 29172388, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 9), 'result': '0.04045687581541578', 'result_long': None, 'result_double': None}] Qualite : 0.04045687581541578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172388 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}" where mtr_portfolio_id = 29172388 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29172388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064132, 0.04045687581541578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29172801 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183500, 'mtr_portfolio_id': 29172801, 'created_at': datetime.datetime(2025, 12, 4, 5, 49), 'result': '0.041410680116186045', 'result_long': None, 'result_double': None}] Qualite : 0.041410680116186045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172801 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}" where mtr_portfolio_id = 29172801 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29172801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064133, 0.041410680116186045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29173230 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183692, 'mtr_portfolio_id': 29173230, 'created_at': datetime.datetime(2025, 12, 4, 6, 3, 31), 'result': '0.044687640590459966', 'result_long': None, 'result_double': None}] Qualite : 0.044687640590459966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173230 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}" where mtr_portfolio_id = 29173230 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29173230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064134, 0.044687640590459966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29173539 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183763, 'mtr_portfolio_id': 29173539, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 32), 'result': '0.036736345683720854', 'result_long': None, 'result_double': None}] Qualite : 0.036736345683720854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173539 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}" where mtr_portfolio_id = 29173539 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29173539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064135, 0.036736345683720854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29174089 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183828, 'mtr_portfolio_id': 29174089, 'created_at': datetime.datetime(2025, 12, 4, 6, 32, 57), 'result': '0.03499223475861187', 'result_long': None, 'result_double': None}] Qualite : 0.03499223475861187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174089 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}" where mtr_portfolio_id = 29174089 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29174089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064136, 0.03499223475861187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29174520 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183886, 'mtr_portfolio_id': 29174520, 'created_at': datetime.datetime(2025, 12, 4, 6, 48, 59), 'result': '0.04063444148832028', 'result_long': None, 'result_double': None}] Qualite : 0.04063444148832028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174520 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}" where mtr_portfolio_id = 29174520 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29174520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064137, 0.04063444148832028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29175025 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4183949, 'mtr_portfolio_id': 29175025, 'created_at': datetime.datetime(2025, 12, 4, 7, 2, 30), 'result': '0.06460510968595502', 'result_long': None, 'result_double': None}] Qualite : 0.06460510968595502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175025 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}" where mtr_portfolio_id = 29175025 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29175025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064138, 0.06460510968595502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29175420 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184015, 'mtr_portfolio_id': 29175420, 'created_at': datetime.datetime(2025, 12, 4, 7, 25, 59), 'result': '0.05051586573513665', 'result_long': None, 'result_double': None}] Qualite : 0.05051586573513665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175420 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}" where mtr_portfolio_id = 29175420 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29175420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064139, 0.05051586573513665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29176081 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184095, 'mtr_portfolio_id': 29176081, 'created_at': datetime.datetime(2025, 12, 4, 7, 35, 30), 'result': '0.04537591886046993', 'result_long': None, 'result_double': None}] Qualite : 0.04537591886046993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176081 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}" where mtr_portfolio_id = 29176081 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29176081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064140, 0.04537591886046993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29176341 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184129, 'mtr_portfolio_id': 29176341, 'created_at': datetime.datetime(2025, 12, 4, 7, 49), 'result': '0.016339218376193666', 'result_long': None, 'result_double': None}] Qualite : 0.016339218376193666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176341 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}" where mtr_portfolio_id = 29176341 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29176341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064141, 0.016339218376193666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29176418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184146, 'mtr_portfolio_id': 29176418, 'created_at': datetime.datetime(2025, 12, 4, 9, 30, 58), 'result': '0.07982821617861312', 'result_long': None, 'result_double': None}] Qualite : 0.07982821617861312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}" where mtr_portfolio_id = 29176418 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29176418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064142, 0.07982821617861312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29176753 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184204, 'mtr_portfolio_id': 29176753, 'created_at': datetime.datetime(2025, 12, 4, 8, 19, 29), 'result': '0.052545314512877625', 'result_long': None, 'result_double': None}] Qualite : 0.052545314512877625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176753 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}" where mtr_portfolio_id = 29176753 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29176753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064143, 0.052545314512877625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29177339 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184269, 'mtr_portfolio_id': 29177339, 'created_at': datetime.datetime(2025, 12, 4, 8, 32, 58), 'result': '0.0420912092155339', 'result_long': None, 'result_double': None}] Qualite : 0.0420912092155339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177339 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}" where mtr_portfolio_id = 29177339 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29177339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064144, 0.0420912092155339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29177792 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184328, 'mtr_portfolio_id': 29177792, 'created_at': datetime.datetime(2025, 12, 4, 8, 48, 59), 'result': '0.04753595531864046', 'result_long': None, 'result_double': None}] Qualite : 0.04753595531864046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177792 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}" where mtr_portfolio_id = 29177792 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29177792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064145, 0.04753595531864046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29178343 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184395, 'mtr_portfolio_id': 29178343, 'created_at': datetime.datetime(2025, 12, 4, 9, 32, 29), 'result': '0.05307360697439451', 'result_long': None, 'result_double': None}] Qualite : 0.05307360697439451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29178343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29178343 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}" where mtr_portfolio_id = 29178343 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29178343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064146, 0.05307360697439451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29179002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184538, 'mtr_portfolio_id': 29179002, 'created_at': datetime.datetime(2025, 12, 4, 9, 48, 56), 'result': '0.06274148051775401', 'result_long': None, 'result_double': None}] Qualite : 0.06274148051775401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}" where mtr_portfolio_id = 29179002 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29179002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064147, 0.06274148051775401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29179437 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184584, 'mtr_portfolio_id': 29179437, 'created_at': datetime.datetime(2025, 12, 4, 10, 3), 'result': '0.04924474664599317', 'result_long': None, 'result_double': None}] Qualite : 0.04924474664599317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179437 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}" where mtr_portfolio_id = 29179437 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29179437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064148, 0.04924474664599317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29179810 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184659, 'mtr_portfolio_id': 29179810, 'created_at': datetime.datetime(2025, 12, 4, 10, 16, 57), 'result': '0.05443569296976892', 'result_long': None, 'result_double': None}] Qualite : 0.05443569296976892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179810 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}" where mtr_portfolio_id = 29179810 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29179810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064149, 0.05443569296976892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29180409 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184734, 'mtr_portfolio_id': 29180409, 'created_at': datetime.datetime(2025, 12, 4, 10, 32, 59), 'result': '0.04300339363385803', 'result_long': None, 'result_double': None}] Qualite : 0.04300339363385803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29180409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29180409 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}" where mtr_portfolio_id = 29180409 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29180409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064150, 0.04300339363385803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29181139 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4184822, 'mtr_portfolio_id': 29181139, 'created_at': datetime.datetime(2025, 12, 4, 14, 0, 2), 'result': '0.04122219974552667', 'result_long': None, 'result_double': None}] Qualite : 0.04122219974552667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29181139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29181139 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}" where mtr_portfolio_id = 29181139 and dashboard_run_id = 2701124 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29181139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064151, 0.04122219974552667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183299 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 = 29183299 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 = 29183299 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183299 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 = 29183299 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 = 29183299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183299_04-12-2025_14_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183299 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183299_04-12-2025_14_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183311, 'pht': 3726}}" where mtr_portfolio_id = 29183299 and dashboard_run_id = 2701126 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29183382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4185259, 'mtr_portfolio_id': 29183382, 'created_at': datetime.datetime(2025, 12, 4, 14, 13), 'result': '0.06516302388070117', 'result_long': None, 'result_double': None}] Qualite : 0.06516302388070117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_13_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}" where mtr_portfolio_id = 29183382 and dashboard_run_id = 2701126 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29183382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18064153, 0.06516302388070117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_13_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29164250,29164732,29165106,29165583,29166634,29166944,29167317,29167848,29168406,29168945,29169363,29169812,29170360,29170831,29171165,29172002,29172388,29172801,29173230,29173539,29174089,29174520,29175025,29175420,29176081,29176341,29176418,29176753,29177339,29177792,29178343,29179002,29179437,29179810,29180409,29181139,29183299,29183382) result : ((1397754704,), (1397754746,), (1397754775,), (1397754811,), (1397755183,), (1397755250,), (1397755317,), (1397755363,), (1397755398,), (1397755783,), (1397755857,), (1397755927,), (1397755994,), (1397757030,), (1397757127,), (1397757226,), (1397757284,), (1397757320,), (1397757805,), (1397757841,), (1397757873,), (1397757921,), (1397757943,), (1397758207,), (1397758258,), (1397758323,), (1397758383,), (1397758780,), (1397758800,), (1397758802,), (1397758803,), (1397758805,), (1397758807,), (1397758825,), (1397758826,), (1397759084,), (1397759085,), (1397759086,), (1397759241,), (1397759256,), (1397759259,), (1397759260,), (1397759276,), (1397759277,), (1397759278,), (1397759279,), (1397759281,), (1397759282,), (1397759291,), (1397759294,), (1397759296,), (1397759299,), (1397759302,), (1397759324,), (1397759322,), (1397759323,), (1397759331,), (1397759332,), (1397759336,), (1397759337,), (1397759339,), (1397759341,), (1397759388,), (1397759395,), (1397759406,), (1397759412,), (1397759437,), (1397759612,), (1397759618,), (1397759625,), (1397759626,), (1397759652,), (1397759653,), (1397759654,), (1397759655,), (1397759657,), (1397759671,), (1397759672,), (1397759673,), (1397759674,), (1397759705,), (1397759987,), (1397759988,), (1397759989,), (1397759990,), (1397759992,), (1397760018,), (1397760020,), (1397760021,), (1397760028,), (1397760030,), (1397760032,), (1397760035,), (1397760038,), (1397760052,), (1397760053,), (1397760054,), (1397760055,), (1397760056,), (1397760058,), (1397760069,), (1397760070,), (1397760071,), (1397760073,), (1397760075,), (1397760077,), (1397760103,), (1397760106,), (1397760107,), (1397760135,), (1397760136,), (1397760137,), (1397760140,), (1397760143,), (1397760162,), (1397760165,), (1397760166,), (1397760167,), (1397760168,), (1397760169,), (1397760152,), (1397760153,), (1397760155,), (1397760157,), (1397760160,), (1397760170,), (1397760172,), (1397760180,), (1397760190,), (1397760192,), (1397760195,), (1397760197,), (1397760199,), (1397760213,), (1397760220,), (1397760224,), (1397760225,), (1397760227,), (1397760229,), (1397760308,), (1397760342,), (1397760374,), (1397760405,), (1397760832,), (1397760866,), (1397760900,), (1397760935,), (1397760948,), (1397760950,), (1397760954,), (1397760955,), (1397760985,), (1397761023,), (1397761058,), (1397761091,), (1397761219,), (1397761258,), (1397761268,), (1397761276,), (1397761304,), (1397761306,), (1397761388,), (1397761389,), (1397761391,), (1397761415,), (1397761448,), (1397761449,), (1397761458,), (1397761459,), (1397761460,), (1397761461,), (1397761464,), (1397761465,), (1397761468,), (1397761469,), (1397761472,), (1397761473,), (1397761477,), (1397761478,), (1397761479,), (1397761481,), (1397761483,), (1397761484,), (1397761489,), (1397761490,), (1397761491,), (1397761492,), (1397761493,), (1397761517,), (1397761518,), (1397761519,), (1397761522,), (1397761529,), (1397761535,), (1397761536,), (1397761537,), (1397761538,), (1397761558,), (1397761559,), (1397761560,), (1397761582,), (1397761583,), (1397761593,), (1397761602,), (1397761607,), (1397761610,), (1397761633,), (1397761626,), (1397761627,), (1397761628,), (1397761629,), (1397761631,), (1397761638,), (1397761639,), (1397761640,), (1397761641,), (1397761658,), (1397761659,), (1397761660,), (1397761661,), (1397761668,), (1397761669,), (1397761670,), (1397761671,), (1397761673,), (1397761675,), (1397761697,), (1397761698,), (1397761699,), (1397761700,), (1397761702,), (1397761708,), (1397761709,), (1397761710,), (1397761711,), (1397761724,), (1397761725,), (1397761726,), (1397761727,), (1397761729,), (1397761731,), (1397761748,), (1397761768,), (1397761773,), (1397761774,), (1397761776,), (1397761793,), (1397761794,), (1397761795,), (1397761802,), (1397761804,), (1397761806,), (1397761809,), (1397761812,), (1397761815,), (1397761827,), (1397761828,), (1397761829,), (1397761830,), (1397761869,), (1397761870,), (1397761871,), (1397761872,), (1397761885,), (1397761886,), (1397761894,), (1397761904,), (1397761906,), (1397768205,), (1397768742,), (1397768743,), (1397768744,), (1397768746,), (1397768748,), (1397768753,), (1397768773,), (1397768780,), (1397768781,), (1397768782,), (1397768783,), (1397768794,), (1397768795,), (1397768796,), (1397768797,), (1397768814,), (1397768815,), (1397768816,), (1397768818,), (1397768820,), (1397768831,), (1397768842,), (1397768857,), (1397768872,), (1397768873,), (1397768877,), (1397768894,), (1397768896,), (1397768899,), (1397768903,), (1397768906,), (1397768954,), (1397768967,), (1397768978,), (1397768979,), (1397768982,), (1397768985,), (1397768997,), (1397768998,), (1397768999,), (1397769000,), (1397769002,), (1397769024,), (1397769025,), (1397769026,), (1397769027,), (1397769049,), (1397769050,), (1397769051,), (1397769052,), (1397769054,), (1397769061,), (1397769062,), (1397769064,), (1397769065,), (1397769096,), (1397769089,), (1397769090,), (1397769091,), (1397769092,), (1397769094,), (1397769101,), (1397769102,), (1397769103,), (1397769104,), (1397769106,), (1397769145,), (1397769147,), (1397769148,), (1397769162,), (1397769186,), (1397769217,), (1397769255,), (1397769292,), (1397769328,), (1397769562,), (1397769677,), (1397769709,), (1397769747,), (1397769790,), (1397769823,), (1397769830,), (1397769853,), (1397769885,), (1397770066,), (1397770096,), (1397770097,), (1397770098,), (1397770120,), (1397770161,), (1397770164,), (1397770166,), (1397770180,), (1397770184,), (1397770245,), (1397770250,), (1397770251,), (1397770297,), (1397770299,), (1397770301,), (1397770303,), (1397770305,), (1397770307,), (1397770324,), (1397770325,), (1397770331,), (1397770332,), (1397770365,), (1397770366,), (1397770381,), (1397770411,), (1397770419,), (1397770421,), (1397770426,), (1397770876,), (1397770867,), (1397770869,), (1397770871,), (1397770873,), (1397771055,), (1397771061,), (1397771063,), (1397771087,), (1397771088,), (1397771089,), (1397771090,), (1397771104,), (1397771105,), (1397771106,), (1397771107,), (1397771137,), (1397771147,), (1397771148,), (1397771149,), (1397771151,), (1397771161,), (1397771162,), (1397771163,), (1397771171,), (1397771172,), (1397771173,), (1397771174,), (1397771193,), (1397771194,), (1397771195,), (1397771196,), (1397771199,), (1397771203,), (1397771404,), (1397771440,), (1397771474,), (1397771511,), (1397771547,), (1397771586,), (1397771738,), (1397771780,), (1397771823,), (1397771858,), (1397771890,), (1397771928,), (1397772042,), (1397772043,), (1397772076,), (1397772077,), (1397772215,), (1397772216,), (1397772217,), (1397772407,), (1397772438,), (1397772499,), (1397773283,), (1397773323,), (1397773358,), (1397773400,), (1397773463,), (1397773797,), (1397773798,), (1397773824,), (1397773854,), (1397774486,), (1397774536,), (1397774598,), (1397774632,), (1397774669,), (1397775021,), (1397775018,), (1397775019,), (1397775020,), (1397775207,), (1397775209,), (1397775211,), (1397775246,), (1397775299,), (1397775300,), (1397775301,), (1397775303,), (1397775305,), (1397775307,), (1397775311,), (1397775312,), (1397775314,), (1397775316,), (1397775323,), (1397775325,), (1397775328,), (1397775329,), (1397775330,), (1397775331,), (1397775332,), (1397775333,), (1397775335,), (1397775337,), (1397775339,), (1397775353,), (1397775355,), (1397775357,), (1397775362,), (1397775415,), (1397775422,), (1397775423,), (1397775424,), (1397775436,), (1397775437,), (1397775438,), (1397775439,), (1397775441,), (1397775447,), (1397775448,), (1397775449,), (1397775450,), (1397775452,), (1397775463,), (1397775464,), (1397775478,), (1397775479,), (1397775483,), (1397775484,), (1397775486,), (1397775488,), (1397775544,), (1397775546,), (1397775547,), (1397775549,), (1397775551,), (1397775553,), (1397775588,), (1397775593,), (1397775594,), (1397775596,), (1397775598,), (1397775600,), (1397775609,), (1397775614,), (1397775617,), (1397775619,), (1397775621,), (1397775622,), (1397775625,), (1397775627,), (1397775629,), (1397775631,), (1397775633,), (1397775653,), (1397775654,), (1397775655,), (1397775656,), (1397775664,), (1397775665,), (1397775666,), (1397775667,), (1397775683,), (1397775684,), (1397775685,), (1397775686,), (1397775688,), (1397775690,), (1397775702,), (1397775703,), (1397775709,), (1397775710,), (1397775711,), (1397775713,), (1397775732,), (1397775737,), (1397775738,), (1397775739,), (1397775755,), (1397775781,), (1397775782,), (1397775783,), (1397775785,), (1397775787,), (1397775788,), (1397775792,), (1397775793,), (1397775794,), (1397775796,), (1397775798,), (1397775800,), (1397775810,), (1397775811,), (1397775812,), (1397775818,), (1397775821,), (1397775822,), (1397775826,), (1397775827,), (1397775829,), (1397775831,), (1397775833,), (1397775835,), (1397775837,), (1397775838,), (1397775841,), (1397775842,), (1397775844,), (1397775845,), (1397775846,), (1397775847,), (1397775848,), (1397775850,), (1397775852,), (1397775854,), (1397775874,), (1397775875,), (1397775876,), (1397775877,), (1397775884,), (1397775885,), (1397775886,), (1397775887,), (1397775889,), (1397775891,), (1397775933,), (1397775934,), (1397775935,), (1397775942,), (1397775952,), (1397775956,), (1397775983,), (1397776009,), (1397776011,), (1397776044,), (1397776039,), (1397776040,), (1397776041,), (1397776042,), (1397776050,), (1397776051,), (1397776052,), (1397776053,), (1397776073,), (1397776074,), (1397776075,), (1397776077,), (1397776079,), (1397776081,), (1397776086,), (1397776087,), (1397776089,), (1397776091,), (1397776093,), (1397776095,), (1397776109,), (1397776110,), (1397776111,), (1397776115,), (1397776126,), (1397776129,), (1397776130,), (1397776132,), (1397776134,), (1397776136,), (1397776138,), (1397776139,), (1397776140,), (1397776141,), (1397776157,), (1397776162,), (1397776163,), (1397776164,), (1397776166,), (1397776168,), (1397776185,), (1397776193,), (1397776195,), (1397776260,), (1397776268,), (1397776270,), (1397776273,), (1397776276,), (1397776279,), (1397776283,), (1397776284,), (1397776285,), (1397776286,), (1397776310,), (1397776320,), (1397776324,), (1397776325,), (1397776327,), (1397776332,), (1397776333,), (1397776334,), (1397776335,), (1397776337,), (1397776339,), (1397776357,), (1397776358,), (1397776359,), (1397776361,), (1397776363,), (1397776365,), (1397776381,), (1397776383,), (1397776393,), (1397776399,), (1397776401,), (1397776403,), (1397776412,), (1397776435,), (1397776437,), (1397776439,), (1397776441,), (1397776443,), (1397776686,), (1397776724,), (1397776761,), (1397776878,), (1397776913,), (1397776571,), (1397776605,), (1397776649,), (1397777044,), (1397777077,), (1397777118,), (1397777149,), (1397777184,), (1397777221,), (1397777489,), (1397777521,), (1397777554,), (1397777938,), (1397777969,), (1397778001,), (1397778032,), (1397778714,), (1397778777,), (1397778847,), (1397778900,), (1397779081,), (1397779116,), (1397779179,), (1397779219,), (1397779260,), (1397779294,), (1397779467,), (1397779470,), (1397779471,), (1397779472,), (1397779474,), (1397779506,), (1397779507,), (1397779508,), (1397779510,), (1397779512,), (1397779514,), (1397779522,), (1397779525,), (1397779528,), (1397779531,), (1397779538,), (1397779547,), (1397779554,), (1397779555,), (1397779556,), (1397779557,), (1397779558,), (1397779559,), (1397779563,), (1397779564,), (1397779566,), (1397779568,), (1397779569,), (1397779570,), (1397779571,), (1397779572,), (1397779573,), (1397779574,), (1397779588,), (1397779589,), (1397779590,), (1397779591,), (1397779593,), (1397779606,), (1397779607,), (1397779608,), (1397779609,), (1397779611,), (1397779613,), (1397779622,), (1397779623,), (1397779624,), (1397779627,), (1397779641,), (1397779652,), (1397779653,), (1397779655,), (1397779682,), (1397779679,), (1397779680,), (1397779681,), (1397779702,), (1397779710,), (1397779712,), (1397779715,), (1397779718,), (1397779727,), (1397779729,), (1397779731,), (1397779734,), (1397779737,), (1397779740,), (1397779745,), (1397779747,), (1397779750,), (1397779756,), (1397779759,), (1397779761,), (1397779762,), (1397779763,), (1397779764,), (1397779765,), (1397779766,), (1397779768,), (1397779770,), (1397779771,), (1397779784,), (1397779785,), (1397779786,), (1397779787,), (1397779789,), (1397779790,), (1397779800,), (1397779810,), (1397779811,), (1397779813,), (1397779819,), (1397779820,), (1397779821,), (1397779822,), (1397779824,), (1397779846,), (1397779847,), (1397779860,), (1397779861,), (1397779864,), (1397779915,), (1397779920,), (1397779921,), (1397779929,), (1397779930,), (1397779931,), (1397779932,), (1397779934,), (1397779947,), (1397779948,), (1397779961,), (1397779962,), (1397779963,), (1397779979,), (1397779980,), (1397779981,), (1397779982,), (1397780041,), (1397780042,), (1397780043,), (1397780044,), (1397780047,), (1397780049,), (1397780057,), (1397780055,), (1397780056,), (1397780064,), (1397780065,), (1397780066,), (1397780067,), (1397780080,), (1397780082,), (1397780084,), (1397780087,), (1397780090,), (1397780100,), (1397780101,), (1397780102,), (1397780103,), (1397780105,), (1397780111,), (1397780112,), (1397780113,), (1397780142,), (1397780143,), (1397780144,), (1397780145,), (1397780152,), (1397780162,), (1397780164,), (1397780166,), (1397780173,), (1397780214,), (1397780215,), (1397780216,), (1397780218,), (1397780220,), (1397780222,), (1397780229,), (1397780230,), (1397780232,), (1397780234,), (1397780237,), (1397780239,), (1397780242,), (1397780243,), (1397780249,), (1397780253,), (1397780254,), (1397780256,), (1397780258,), (1397780260,), (1397780262,), (1397780278,), (1397780279,), (1397780280,), (1397780315,), (1397780316,), (1397780317,), (1397780323,), (1397780324,), (1397780325,), (1397780389,), (1397780396,), (1397780397,), (1397780398,), (1397780400,), (1397780407,), (1397780408,), (1397780409,), (1397780410,), (1397780425,), (1397780418,), (1397780419,), (1397780420,), (1397780421,), (1397780423,), (1397780448,), (1397780449,), (1397780450,), (1397780507,), (1397780508,), (1397780509,), (1397780510,), (1397780517,), (1397780518,), (1397780519,), (1397780529,), (1397780530,), (1397780531,), (1397780532,), (1397780534,), (1397780541,), (1397780542,), (1397780543,), (1397780544,), (1397780546,), (1397780558,), (1397780559,), (1397780566,), (1397780568,), (1397780570,), (1397780573,), (1397780576,), (1397780680,), (1397780681,), (1397780682,), (1397780683,), (1397780690,), (1397780691,), (1397780692,), (1397780693,), (1397780695,), (1397780704,), (1397780707,), (1397780709,), (1397780711,), (1397780713,), (1397780715,), (1397781060,), (1397781093,), (1397781106,), (1397781109,), (1397781111,), (1397781113,), (1397781174,), (1397781212,), (1397781244,), (1397781250,), (1397781251,), (1397781281,), (1397781347,), (1397781382,), (1397781415,), (1397781561,), (1397781598,), (1397781651,), (1397781321,), (1397781322,), (1397781323,), (1397781767,), (1397781800,), (1397781830,), (1397782180,), (1397782205,), (1397782207,), (1397782210,), (1397782213,), (1397782275,), (1397782339,), (1397783075,), (1397783113,), (1397783172,), (1397783226,), (1397783264,), (1397783611,), (1397783654,), (1397783686,), (1397783695,), (1397783697,), (1397783734,), (1397783772,), (1397783807,), (1397783839,), (1397784013,), (1397784014,), (1397784015,), (1397784017,), (1397784030,), (1397784054,), (1397784060,), (1397784061,), (1397784063,), (1397784065,), (1397784067,), (1397784069,), (1397784075,), (1397784076,), (1397784091,), (1397784092,), (1397785806,), (1397785773,), (1397786282,), (1397786316,), (1397786742,), (1397786906,), (1397786941,), (1397786964,), (1397787055,), (1397787061,), (1397787062,), (1397787063,), (1397787064,), (1397787078,), (1397787079,), (1397787080,), (1397787082,), (1397787084,), (1397787086,), (1397787091,), (1397787093,), (1397787094,), (1397787096,), (1397787099,), (1397787101,), (1397787104,), (1397787105,), (1397787106,), (1397787107,), (1397787108,), (1397787109,), (1397787113,), (1397787115,), (1397787117,), (1397787119,), (1397787120,), (1397787121,), (1397787122,), (1397787123,), (1397787125,), (1397787127,), (1397787129,), (1397787135,), (1397787143,), (1397787144,), (1397787146,), (1397787148,), (1397787154,), (1397787155,), (1397787156,), (1397787157,), (1397787158,), (1397787185,), (1397787186,), (1397787187,), (1397787188,), (1397787190,), (1397787196,), (1397787197,), (1397787198,), (1397787199,), (1397787201,), (1397787222,), (1397787215,), (1397787216,), (1397787217,), (1397787218,), (1397787220,), (1397787227,), (1397787228,), (1397787229,), (1397787230,), (1397787250,), (1397787251,), (1397787252,), (1397787254,), (1397787256,), (1397787258,), (1397787263,), (1397787265,), (1397787268,), (1397787273,), (1397787276,), (1397787279,), (1397787282,), (1397787283,), (1397787284,), (1397787285,), (1397787286,), (1397787287,), (1397787291,), (1397787292,), (1397787294,), (1397787296,), (1397787298,), (1397787299,), (1397787300,), (1397787301,), (1397787302,), (1397787303,), (1397787305,), (1397787307,), (1397787332,), (1397787333,), (1397787334,), (1397787335,), (1397787337,), (1397787338,), (1397787347,), (1397787349,), (1397787354,), (1397787355,), (1397787421,), (1397787427,), (1397787430,), (1397787433,), (1397787437,), (1397787439,), (1397787446,), (1397787447,), (1397787448,), (1397787449,), (1397787467,), (1397787468,), (1397787469,), (1397787470,), (1397787472,), (1397787474,), (1397787478,), (1397787479,), (1397787480,), (1397787481,), (1397787511,), (1397787512,), (1397787513,), (1397787515,), (1397787517,), (1397787519,), (1397787523,), (1397787524,), (1397787526,), (1397787528,), (1397787530,), (1397787532,), (1397787543,), (1397787546,), (1397787547,), (1397787548,), (1397787550,), (1397787551,), (1397787555,), (1397787556,), (1397787558,), (1397787560,), (1397787562,), (1397787569,), (1397787600,), (1397787602,), (1397787604,), (1397787594,), (1397787595,), (1397787626,), (1397787627,), (1397787628,), (1397787629,), (1397787631,), (1397787637,), (1397787638,), (1397787639,), (1397787640,), (1397787642,), (1397787644,), (1397787662,), (1397787670,), (1397787681,), (1397787682,), (1397787689,), (1397787691,), (1397787693,), (1397787696,), (1397787699,), (1397787702,), (1397787709,), (1397787717,), (1397787718,), (1397787719,), (1397787726,), (1397787727,), (1397787728,), (1397787729,), (1397787731,), (1397787733,), (1397787747,), (1397787748,), (1397787749,), (1397787750,), (1397787752,), (1397787758,), (1397787759,), (1397787760,), (1397787761,), (1397787782,), (1397787786,), (1397787787,), (1397787788,), (1397787790,), (1397787792,), (1397787797,), (1397787798,), (1397787799,), (1397787800,), (1397787824,), (1397787832,), (1397787835,), (1397787836,), (1397787838,), (1397787840,), (1397787844,), (1397787845,), (1397787846,), (1397787847,), (1397787849,), (1397787873,), (1397787874,), (1397787875,), (1397787876,), (1397787878,), (1397787880,), (1397787885,), (1397787887,), (1397787888,), (1397787889,), (1397787914,), (1397787909,), (1397787910,), (1397787911,), (1397787912,), (1397787920,), (1397787921,), (1397787922,), (1397787923,), (1397787947,), (1397787954,), (1397787955,), (1397787963,), (1397787964,), (1397787965,), (1397787966,), (1397787968,), (1397787974,), (1397787975,), (1397787976,), (1397787977,), (1397787997,), (1397788003,), (1397788004,), (1397788005,), (1397788007,), (1397788012,), (1397788014,), (1397788017,), (1397788019,), (1397788022,), (1397788033,), (1397788034,), (1397788035,), (1397788036,), (1397788038,), (1397788040,), (1397788044,), (1397788045,), (1397788046,), (1397788047,), (1397788058,), (1397788059,), (1397788060,), (1397788061,), (1397788063,), (1397788069,), (1397788070,), (1397788071,), (1397788072,), (1397788090,), (1397788091,), (1397788092,), (1397788093,), (1397788095,), (1397788318,), (1397788354,), (1397788387,), (1397788422,), (1397788457,), (1397788491,), (1397788639,), (1397788671,), (1397788705,), (1397788731,), (1397788747,), (1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,), (1397790153,), (1397790154,), (1397790155,), (1397790156,), (1397790158,), (1397790160,), (1397790172,), (1397790174,), (1397790175,), (1397790176,), (1397790210,), (1397790194,), (1397790203,), (1397790205,), (1397790206,), (1397790208,), (1397790215,), (1397790216,), (1397790217,), (1397790218,), (1397790219,), (1397790236,), (1397790237,), (1397790238,), (1397790239,), (1397790241,), (1397790243,), (1397790251,), (1397790253,), (1397790256,), (1397790259,), (1397790262,), (1397790265,), (1397790277,), (1397790278,), (1397790279,), (1397790280,), (1397790283,), (1397790285,), (1397790288,), (1397790291,), (1397790294,), (1397790297,), (1397790298,), (1397790299,), (1397790337,), (1397790339,), (1397790346,), (1397790355,), (1397790357,), (1397790359,), (1397790371,), (1397790374,), (1397790375,), (1397790376,), (1397790402,), (1397790403,), (1397790404,), (1397790405,), (1397790407,), (1397790413,), (1397790414,), (1397790415,), (1397790416,), (1397790418,), (1397790420,), (1397790436,), (1397790440,), (1397790441,), (1397790442,), (1397790456,), (1397790457,), (1397790458,), (1397790459,), (1397790460,), (1397790461,), (1397790479,), (1397790484,), (1397790485,), (1397790486,), (1397790500,), (1397790494,), (1397790495,), (1397790496,), (1397790497,), (1397790499,), (1397790523,), (1397790524,), (1397790525,), (1397790526,), (1397790536,), (1397790542,), (1397790543,), (1397790544,), (1397790546,), (1397790548,), (1397790561,), (1397790564,), (1397790565,), (1397790566,), (1397790575,), (1397790576,), (1397790577,), (1397790578,), (1397790580,), (1397790594,), (1397790595,), (1397790596,), (1397790597,), (1397790599,), (1397790601,), (1397790612,), (1397790614,), (1397790616,), (1397790619,), (1397790641,), (1397790646,), (1397790647,), (1397790648,), (1397790650,), (1397790652,), (1397790657,), (1397790658,), (1397790659,), (1397790661,), (1397790663,), (1397790665,), (1397790677,), (1397790678,), (1397790679,), (1397790682,), (1397790689,), (1397790690,), (1397790691,), (1397790693,), (1397790695,), (1397790697,), (1397790706,), (1397790707,), (1397790708,), (1397790709,), (1397790711,), (1397790744,), (1397790745,), (1397790746,), (1397790747,), (1397790749,), (1397790751,), (1397790758,), (1397790759,), (1397790760,), (1397790761,), (1397790763,), (1397790765,), (1397790770,), (1397790771,), (1397790772,), (1397790787,), (1397790788,), (1397790790,), (1397790791,), (1397790793,), (1397790821,), (1397790816,), (1397790817,), (1397790818,), (1397790819,), (1397790827,), (1397790829,), (1397790831,), (1397790834,), (1397790841,), (1397790844,), (1397790848,), (1397790850,), (1397790858,), (1397790883,), (1397790884,), (1397790885,), (1397790886,), (1397790887,), (1397790889,), (1397790905,), (1397790907,), (1397790909,), (1397790911,), (1397790913,), (1397790916,), (1397790917,), (1397790919,), (1397790921,), (1397790923,), (1397790927,), (1397790928,), (1397790929,), (1397790930,), (1397790931,), (1397790932,), (1397790933,), (1397790934,), (1397790935,), (1397790936,), (1397790937,), (1397790938,), (1397790942,), (1397790943,), (1397790945,), (1397790981,), (1397790982,), (1397790983,), (1397790984,), (1397790986,), (1397790988,), (1397791000,), (1397791001,), (1397791002,), (1397791003,), (1397791005,), (1397791026,), (1397791027,), (1397791028,), (1397791029,), (1397791031,), (1397791037,), (1397791038,), (1397791039,), (1397791040,), (1397791047,), (1397791048,), (1397791049,), (1397791050,), (1397791282,), (1397791316,), (1397791483,), (1397791478,), (1397791927,), (1397791959,), (1397791992,), (1397792408,), (1397792441,), (1397792552,), (1397792585,), (1397792617,), (1397792650,), (1397792856,), (1397792857,), (1397792858,), (1397792859,), (1397792861,), (1397792862,), (1397792868,), (1397792869,), (1397792870,), (1397792871,), (1397792873,), (1397792882,), (1397792883,), (1397792884,), (1397792885,), (1397792944,), (1397792945,), (1397792946,), (1397793314,), (1397793315,), (1397793480,), (1397793479,), (1397793502,), (1397793509,), (1397793533,), (1397793534,), (1397793535,), (1397793536,), (1397793538,), (1397793540,), (1397793545,), (1397793546,), (1397793547,), (1397793548,), (1397793550,), (1397793564,), (1397793565,), (1397793572,), (1397793574,), (1397793659,), (1397793658,), (1397793666,), (1397793667,), (1397793668,), (1397793669,), (1397793686,), (1397793711,), (1397793776,), (1397793774,), (1397793775,), (1397793783,), (1397793784,), (1397793785,), (1397793786,), (1397793793,), (1397793794,), (1397793795,), (1397793796,), (1397793810,), (1397793811,), (1397793812,), (1397793813,), (1397793815,), (1397793817,), (1397793822,), (1397793823,), (1397793824,), (1397793845,), (1397793846,), (1397793847,), (1397793848,), (1397793850,), (1397793851,), (1397793857,), (1397793858,), (1397793859,), (1397793860,), (1397793861,), (1397793863,), (1397793882,), (1397793890,), (1397793891,), (1397793892,), (1397793899,), (1397793900,), (1397793901,), (1397793902,), (1397793904,), (1397793919,), (1397793920,), (1397793921,), (1397793922,), (1397793924,), (1397793930,), (1397793931,), (1397793932,), (1397793934,), (1397793955,), (1397793956,), (1397793957,), (1397793958,), (1397793960,), (1397793962,), (1397793976,), (1397793979,), (1397793981,), (1397793983,), (1397793985,), (1397793987,), (1397793991,), (1397793992,), (1397793993,), (1397793994,), (1397793995,), (1397794006,), (1397794007,), (1397794009,), (1397794011,), (1397794013,), (1397794015,), (1397793998,), (1397794000,), (1397794002,), (1397794004,), (1397794029,), (1397794030,), (1397794032,), (1397794034,), (1397794164,), (1397794194,), (1397794231,), (1397794260,), (1397794291,), (1397794329,), (1397794756,), (1397794825,), (1397794884,), (1397794946,), (1397795008,), (1397795501,), (1397795502,), (1397795503,), (1397795504,), (1397795778,), (1397795809,), (1397795861,), (1397795905,), (1397795938,), (1397796126,), (1397796157,), (1397796189,), (1397796228,), (1397796544,), (1397796577,), (1397796607,), (1397796642,), (1397796675,), (1397796987,), (1397796988,), (1397797009,), (1397797010,), (1397797011,), (1397797012,), (1397797072,), (1397797105,), (1397797140,), (1397797225,), (1397797280,), (1397797330,), (1397797363,), (1397797424,), (1397797460,), (1397797466,), (1397797468,), (1397797470,), (1397797597,), (1397797631,), (1397797662,), (1397797697,), (1397797729,), (1397797762,), (1397798077,), (1397798111,), (1397798150,), (1397798179,), (1397798547,), (1397798548,), (1397798549,), (1397798559,), (1397798569,), (1397798576,), (1397798748,), (1397798749,), (1397798777,), (1397798799,), (1397798802,), (1397798870,), (1397798865,), (1397798866,), (1397798867,), (1397798868,), (1397798876,), (1397798877,), (1397798878,), (1397798879,), (1397798881,), (1397798925,), (1397798926,), (1397798927,), (1397798928,), (1397798936,), (1397798940,), (1397798973,), (1397799005,), (1397799040,), (1397799075,), (1397799216,), (1397799217,), (1397799228,), (1397799252,), (1397799329,), (1397799331,), (1397799333,), (1397799336,), (1397799339,), (1397799342,), (1397799350,), (1397799351,), (1397799352,), (1397799353,), (1397799355,), (1397799361,), (1397799362,), (1397799363,), (1397799364,), (1397799378,), (1397799379,), (1397799380,), (1397799381,), (1397799383,), (1397799385,), (1397799390,), (1397799391,), (1397799392,), (1397799394,), (1397799396,), (1397799408,), (1397799409,), (1397799410,), (1397799411,), (1397799413,), (1397799415,), (1397799431,), (1397799437,), (1397799438,), (1397799453,), (1397799454,), (1397799455,), (1397799456,), (1397799458,), (1397799459,), (1397799465,), (1397799466,), (1397799467,), (1397799469,), (1397799471,), (1397799473,), (1397799479,), (1397799480,), (1397799481,), (1397799489,), (1397799491,), (1397799493,), (1397799495,), (1397799497,), (1397799499,), (1397799501,), (1397799504,), (1397799522,), (1397799515,), (1397799516,), (1397799517,), (1397799518,), (1397799520,), (1397799554,), (1397799555,), (1397799556,), (1397799557,), (1397799564,), (1397799565,), (1397799566,), (1397799567,), (1397799569,), (1397799589,), (1397799590,), (1397799591,), (1397799592,), (1397799594,), (1397799596,), (1397799619,), (1397799620,), (1397799623,), (1397799628,), (1397800762,), (1397800843,), (1397800845,), (1397801109,), (1397801078,), (1397801084,), (1397801085,), (1397801086,), (1397801089,), (1397801252,), (1397801258,), (1397801287,), (1397801288,), (1397801332,), (1397801341,), (1397801342,), (1397801364,), (1397801396,), (1397801680,), (1397801713,), (1397801743,), (1397801778,), (1397801795,), (1397801798,), (1397801814,), (1397801815,), (1397801816,), (1397801817,), (1397801824,), (1397801828,), (1397801829,), (1397801831,), (1397801833,), (1397801836,), (1397801837,), (1397801838,), (1397801839,), (1397801841,), (1397801843,), (1397801865,), (1397801878,), (1397801882,), (1397801886,), (1397801890,), (1397801894,), (1397801898,), (1397801902,), (1397801906,), (1397802030,), (1397802044,), (1397802052,), (1397802058,), (1397802067,), (1397802078,), (1397802104,), (1397802105,), (1397802106,), (1397802107,), (1397802138,), (1397802139,), (1397802140,), (1397802141,), (1397802144,), (1397802145,), (1397802162,), (1397802163,), (1397802165,), (1397802167,), (1397802191,), (1397802194,), (1397802197,), (1397802200,), (1397802344,), (1397802356,), (1397802360,), (1397802381,), (1397803372,), (1397803389,), (1397803390,), (1397803392,), (1397803394,), (1397803396,), (1397803413,), (1397803415,), (1397803417,), (1397803439,), (1397803440,), (1397803441,), (1397803442,), (1397803469,), (1397803470,), (1397803472,), (1397803474,), (1397803477,), (1397803480,), (1397803519,), (1397803520,), (1397803521,), (1397803522,), (1397803542,), (1397803544,), (1397803546,), (1397803548,), (1397803551,), (1397803554,), (1397803583,), (1397803591,), (1397803596,), (1397803602,), (1397803661,), (1397803689,), (1397803691,), (1397803693,), (1397803695,), (1397803728,), (1397803735,), (1397803766,), (1397803767,), (1397803768,), (1397803769,), (1397803874,), (1397803875,), (1397803877,), (1397803899,), (1397803900,), (1397803941,), (1397803943,), (1397803945,), (1397803947,), (1397803998,), (1397804000,), (1397804002,), (1397804003,), (1397804005,), (1397804232,), (1397804195,), (1397804226,), (1397804228,), (1397804229,), (1397804329,), (1397804339,), (1397804370,), (1397804393,), (1397804396,), (1397804417,), (1397804419,), (1397804421,), (1397804423,), (1397804545,), (1397804578,), (1397804610,), (1397804641,), (1397804674,), (1397804711,), (1397804781,), (1397804782,), (1397804783,), (1397804784,), (1397804786,), (1397804788,), (1397804805,), (1397804806,), (1397804808,), (1397804846,), (1397804848,), (1397804850,), (1397804852,), (1397804854,), (1397804878,), (1397804880,), (1397804881,), (1397804918,), (1397804919,), (1397804920,), (1397804921,), (1397804923,), (1397804926,), (1397804943,), (1397804945,), (1397804947,), (1397804949,), (1397804952,), (1397804974,), (1397804977,), (1397804981,), (1397804982,), (1397804984,), (1397805051,), (1397805053,), (1397805055,), (1397805057,), (1397805060,), (1397805083,), (1397805084,), (1397805085,), (1397805086,), (1397805089,), (1397805114,), (1397805115,), (1397805119,), (1397805124,), (1397805128,), (1397805131,), (1397805265,), (1397805296,), (1397805327,), (1397805361,), (1397805649,), (1397805500,), (1397805542,), (1397805576,), (1397805613,), (1397805766,), (1397805769,), (1397805796,), (1397805860,), (1397806447,), (1397806480,), (1397806515,), (1397806550,), (1397806859,), (1397806860,), (1397806875,), (1397806907,), (1397806940,), (1397806972,), (1397807401,), (1397807464,), (1397807525,), (1397807592,), (1397807838,), (1397807861,), (1397807896,), (1397807939,), (1397807984,), (1397808037,), (1397808239,), (1397808246,), (1397808269,), (1397808276,), (1397808434,), (1397808466,), (1397808503,), (1397808539,), (1397808571,), (1397808620,), (1397809294,), (1397809330,), (1397809363,), (1397809378,), (1397809382,), (1397809387,), (1397809400,), (1397809402,), (1397809404,), (1397809405,), (1397809472,), (1397809529,), (1397809567,), (1397809601,), (1397809638,), (1397809928,), (1397810032,), (1397810131,), (1397810224,), (1397810300,), (1397810731,), (1397810733,), (1397810736,), (1397810739,), (1397810968,), (1397810972,), (1397811010,), (1397811018,), (1397811022,), (1397811244,), (1397811277,), (1397811321,), (1397811366,), (1397811406,), (1397811812,), (1397811846,), (1397811875,), (1397811878,), (1397811884,), (1397812085,), (1397812026,), (1397812059,), (1397812080,), (1397812082,), (1397812249,), (1397812252,), (1397812255,), (1397812259,), (1397812264,), (1397812371,), (1397812373,), (1397812377,), (1397812382,), (1397812386,), (1397812412,), (1397812413,), (1397812416,), (1397812420,), (1397812425,), (1397812430,), (1397812453,), (1397812460,), (1397812471,), (1397812474,), (1397812507,), (1397812847,), (1397812848,), (1397812851,), (1397812854,), (1397812858,), (1397812881,), (1397812888,), (1397812894,), (1397812897,), (1397812901,), (1397812927,), (1397812934,), (1397812958,), (1397812960,), (1397813879,), (1397813881,), (1397813884,), (1397813909,), (1397813911,), (1397813912,), (1397813913,), (1397814196,), (1397814198,), (1397814215,), (1397814232,), (1397814250,), (1397814286,), (1397814282,), (1397814284,), (1397814315,), (1397814317,), (1397814318,), (1397814342,), (1397814369,), (1397814371,), (1397815955,), (1397843501,), (1397842995,), (1397843499,), (1397845207,), (1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04122025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29183382]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] map_info['map_portfolio_photo'] : {29183382: [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660, 1397848629, 1397848627, 1397848624, 1397848621, 1397848303, 1397848205, 1397848149, 1397848106, 1397848105, 1397848016, 1397847367, 1397847365, 1397847363, 1397847361, 1397847272, 1397847265, 1397847069, 1397847034, 1397846998, 1397846960, 1397846771, 1397846757, 1397846719, 1397845876]} final : True mtd_id 4302 list_pids : [1397848739, 1397848707, 1397848701, 1397848700, 1397848698, 1397848673, 1397848671, 1397848668, 1397848666, 1397848663, 1397848660] Looping around the photos to save general results len do output : 1 /29183382Didn'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, '4185259') ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259') ('4302', None, None, None, None, None, None, None, '4185259') ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29183382', 'None', None, None, None, None, '4185259'), ('4302', '29183382', '1397848739', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848707', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848701', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848700', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848698', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848673', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848671', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848668', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848666', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848663', None, None, None, None, None, '4185259'), ('4302', '29183382', '1397848660', None, None, None, None, None, '4185259')] time used for this insertion : 0.019047975540161133 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9946181774139404 time spend to save output : 0.019255876541137695 total time spend for step 5 : 3.013874053955078 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 (4185259) 2.13user 2.50system 0:11.48elapsed 40%CPU (0avgtext+0avgdata 167688maxresident)k 352inputs+11432outputs (0major+67540minor)pagefaults 0swaps