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 : 1121035 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 (2752869) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2752869) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22342994 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2752869'] with mtr_portfolio_ids : ['22342994'] and first list_photo_ids : [] new path : /proc/1121035/ Name: python3 Umask: 0002 State: R (running) Tgid: 1121035 Ngid: 0 Pid: 1121035 PPid: 1121034 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1121035 NSpid: 1121035 NSpgid: 1118118 NSsid: 1118118 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97612 kB VmRSS: 97612 kB RssAnon: 59800 kB RssFile: 37812 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 65 nonvoluntary_ctxt_switches: 151 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1121035', 'Ngid': '0', 'Pid': '1121035', 'PPid': '1121034', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1121035', 'NSpid': '1121035', 'NSpgid': '1118118', 'NSsid': '1118118', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97612 kB', 'VmRSS': '97612 kB', 'RssAnon': '59800 kB', 'RssFile': '37812 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '65', 'nonvoluntary_ctxt_switches': '151'} ('datou_batch_current', '1121035', '1106936', '0', '1106936', '865684', '97612', b'', 'marlene', '2752869') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22342994) 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 (2752869 ) ) 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 (22342994) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353027723, 'portfolio_id': 22342994}, {'photo_id': 1353012699, 'portfolio_id': 22342994}, {'photo_id': 1353012566, 'portfolio_id': 22342994}, {'photo_id': 1353012461, 'portfolio_id': 22342994}, {'photo_id': 1353012457, 'portfolio_id': 22342994}, {'photo_id': 1353012453, 'portfolio_id': 22342994}, {'photo_id': 1353012450, 'portfolio_id': 22342994}, {'photo_id': 1353012447, 'portfolio_id': 22342994}, {'photo_id': 1353012443, 'portfolio_id': 22342994}, {'photo_id': 1353012398, 'portfolio_id': 22342994}, {'photo_id': 1353012393, 'portfolio_id': 22342994}, {'photo_id': 1353012389, 'portfolio_id': 22342994}, {'photo_id': 1353012386, 'portfolio_id': 22342994}, {'photo_id': 1353012383, 'portfolio_id': 22342994}, {'photo_id': 1353012323, 'portfolio_id': 22342994}, {'photo_id': 1353012318, 'portfolio_id': 22342994}, {'photo_id': 1353012314, 'portfolio_id': 22342994}, {'photo_id': 1353012310, 'portfolio_id': 22342994}, {'photo_id': 1353012305, 'portfolio_id': 22342994}, {'photo_id': 1353012251, 'portfolio_id': 22342994}, {'photo_id': 1353012230, 'portfolio_id': 22342994}, {'photo_id': 1353012216, 'portfolio_id': 22342994}, {'photo_id': 1353012206, 'portfolio_id': 22342994}, {'photo_id': 1353012201, 'portfolio_id': 22342994}, {'photo_id': 1353011988, 'portfolio_id': 22342994}, {'photo_id': 1353011976, 'portfolio_id': 22342994}, {'photo_id': 1353011971, 'portfolio_id': 22342994}, {'photo_id': 1353011967, 'portfolio_id': 22342994}, {'photo_id': 1353011963, 'portfolio_id': 22342994}, {'photo_id': 1353011929, 'portfolio_id': 22342994}, {'photo_id': 1353011922, 'portfolio_id': 22342994}, {'photo_id': 1353011914, 'portfolio_id': 22342994}, {'photo_id': 1353011896, 'portfolio_id': 22342994}, {'photo_id': 1353011866, 'portfolio_id': 22342994}, {'photo_id': 1353011835, 'portfolio_id': 22342994}, {'photo_id': 1353011657, 'portfolio_id': 22342994}, {'photo_id': 1353011625, 'portfolio_id': 22342994}, {'photo_id': 1353011609, 'portfolio_id': 22342994}, {'photo_id': 1353011603, 'portfolio_id': 22342994}, {'photo_id': 1353011415, 'portfolio_id': 22342994}, {'photo_id': 1353011364, 'portfolio_id': 22342994}, {'photo_id': 1353011252, 'portfolio_id': 22342994}, {'photo_id': 1353011127, 'portfolio_id': 22342994}, {'photo_id': 1353011015, 'portfolio_id': 22342994}, {'photo_id': 1353010923, 'portfolio_id': 22342994}, {'photo_id': 1353010319, 'portfolio_id': 22342994}, {'photo_id': 1353010269, 'portfolio_id': 22342994}, {'photo_id': 1353010224, 'portfolio_id': 22342994}, {'photo_id': 1353010165, 'portfolio_id': 22342994}, {'photo_id': 1353010082, 'portfolio_id': 22342994}, {'photo_id': 1353010004, 'portfolio_id': 22342994}, {'photo_id': 1353009372, 'portfolio_id': 22342994}, {'photo_id': 1353009296, 'portfolio_id': 22342994}] map_portfolio_id_photo_id: {22342994: [1353027723, 1353012699, 1353012566, 1353012461, 1353012457, 1353012453, 1353012450, 1353012447, 1353012443, 1353012398, 1353012393, 1353012389, 1353012386, 1353012383, 1353012323, 1353012318, 1353012314, 1353012310, 1353012305, 1353012251, 1353012230, 1353012216, 1353012206, 1353012201, 1353011988, 1353011976, 1353011971, 1353011967, 1353011963, 1353011929, 1353011922, 1353011914, 1353011896, 1353011866, 1353011835, 1353011657, 1353011625, 1353011609, 1353011603, 1353011415, 1353011364, 1353011252, 1353011127, 1353011015, 1353010923, 1353010319, 1353010269, 1353010224, 1353010165, 1353010082, 1353010004, 1353009372, 1353009296]} ##### 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.021424055099487305 #### 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 Apr 24 00:05:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22342994) 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 : 22342994 get user id for portfolio 22342994 get sub ptf for main ptf 22342994, type 3726 and hashtags ['metal', 'mal_croppe', 'flou', 'Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'cartonnette', 'kraft', 'plastique', 'autre_refus', 'papier', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22342994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','plastique','autre_refus','papier','environnement')) 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`=22342994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','plastique','autre_refus','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22342994, 'sub_port_id': 22342999, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799651, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'cartonnette': {'main_port_id': 22342994, 'sub_port_id': 22343000, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799652, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'Carton_gris': {'main_port_id': 22342994, 'sub_port_id': 22343001, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799653, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'environnement': {'main_port_id': 22342994, 'sub_port_id': 22343002, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799654, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22342994, 'sub_port_id': 22343003, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799655, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'Carton_brun': {'main_port_id': 22342994, 'sub_port_id': 22343004, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799656, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'kraft': {'main_port_id': 22342994, 'sub_port_id': 22343005, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799657, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'autre_refus': {'main_port_id': 22342994, 'sub_port_id': 22343006, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799658, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'flou': {'main_port_id': 22342994, 'sub_port_id': 22343007, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799659, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'metal': {'main_port_id': 22342994, 'sub_port_id': 22343008, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799660, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'mal_croppe': {'main_port_id': 22342994, 'sub_port_id': 22343009, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799661, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}, 'papier': {'main_port_id': 22342994, 'sub_port_id': 22343010, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799662, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22342999 , 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=22342994 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 (22342999) result : ((1353011520,), (1353012010,), (1353012011,), (1353012294,), (1353012295,), (1353012366,), (1353012438,), (1353012582,), (1353012583,), (1353012720,), (1353012947,), (1353012948,), (1353013057,), (1353013058,), (1353013059,), (1353013167,), (1353013168,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343000 , 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=22342994 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 (22343000) result : ((1353011997,), (1353011998,), (1353012360,), (1353012361,), (1353012362,), (1353012363,), (1353012434,), (1353012435,), (1353012579,), (1353012580,), (1353012932,), (1353012933,), (1353013048,), (1353013049,), (1353013050,), (1353013160,), (1353013161,), (1353013162,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343001 , 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=22342994 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 (22343001) result : ((1353011491,), (1353011989,), (1353011990,), (1353011991,), (1353011992,), (1353011993,), (1353011994,), (1353012287,), (1353012288,), (1353012289,), (1353012702,), (1353013043,), (1353013044,), (1353013045,), (1353013046,), (1353013047,), (1353013159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343002 , 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=22342994 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 (22343002) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343003 , 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=22342994 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 (22343003) result : ((1353011933,), (1353011978,), (1353011979,), (1353011980,), (1353011982,), (1353012285,), (1353012344,), (1353012351,), (1353012352,), (1353012353,), (1353012354,), (1353012355,), (1353012356,), (1353012430,), (1353012563,), (1353012564,), (1353012632,), (1353012633,), (1353012693,), (1353012918,), (1353012919,), (1353013037,), (1353013038,), (1353013039,), (1353013040,), (1353013158,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343004 , 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=22342994 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 (22343004) result : ((1353011502,), (1353011503,), (1353011936,), (1353012003,), (1353012004,), (1353012005,), (1353012006,), (1353012007,), (1353012009,), (1353012291,), (1353012292,), (1353012293,), (1353012346,), (1353012364,), (1353012436,), (1353012437,), (1353012581,), (1353012638,), (1353012710,), (1353012712,), (1353012939,), (1353013052,), (1353013053,), (1353013054,), (1353013164,), (1353013165,), (1353013166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343005 , 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=22342994 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 (22343005) result : ((1353013170,), (1353013171,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343006 , 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=22342994 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 (22343006) result : ((1353011479,), (1353011984,), (1353011985,), (1353012565,), (1353012921,), (1353013041,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343007 , 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=22342994 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 (22343007) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343008 , 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=22342994 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 (22343008) result : ((1353012368,), (1353013172,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343009 , 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=22342994 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 (22343009) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22343010 , 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=22342994 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 (22343010) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22342994) result : ((1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22342994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','plastique','autre_refus','papier','environnement')) 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`=22342994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','plastique','autre_refus','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22342994, 'sub_port_id': 22343011, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799663, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'cartonnette': {'main_port_id': 22342994, 'sub_port_id': 22343012, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799664, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'Carton_gris': {'main_port_id': 22342994, 'sub_port_id': 22343013, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799665, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'environnement': {'main_port_id': 22342994, 'sub_port_id': 22343014, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799666, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 22342994, 'sub_port_id': 22343015, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799667, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'Carton_brun': {'main_port_id': 22342994, 'sub_port_id': 22343016, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799668, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'kraft': {'main_port_id': 22342994, 'sub_port_id': 22343017, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799669, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'autre_refus': {'main_port_id': 22342994, 'sub_port_id': 22343018, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799670, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'flou': {'main_port_id': 22342994, 'sub_port_id': 22343019, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799671, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'metal': {'main_port_id': 22342994, 'sub_port_id': 22343020, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799672, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'mal_croppe': {'main_port_id': 22342994, 'sub_port_id': 22343021, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799673, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}, 'papier': {'main_port_id': 22342994, 'sub_port_id': 22343022, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14799674, 'last_updated_at': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 12, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22342999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343006 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22343022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22343010 lien utilise dans velours : https://www.fotonower.com/velours/22343011,22343012,22343013,22343014,22343015,22343016,22343017,22343018,22343019,22343020,22343021,22343022?tags=plastique,cartonnette,Carton_gris,environnement,Teint_Dans_La_Masse,Carton_brun,kraft,autre_refus,flou,metal,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22342994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353027723] map_info['map_portfolio_photo'] : {22342994: [1353027723, 1353012699, 1353012566, 1353012461, 1353012457, 1353012453, 1353012450, 1353012447, 1353012443, 1353012398, 1353012393, 1353012389, 1353012386, 1353012383, 1353012323, 1353012318, 1353012314, 1353012310, 1353012305, 1353012251, 1353012230, 1353012216, 1353012206, 1353012201, 1353011988, 1353011976, 1353011971, 1353011967, 1353011963, 1353011929, 1353011922, 1353011914, 1353011896, 1353011866, 1353011835, 1353011657, 1353011625, 1353011609, 1353011603, 1353011415, 1353011364, 1353011252, 1353011127, 1353011015, 1353010923, 1353010319, 1353010269, 1353010224, 1353010165, 1353010082, 1353010004, 1353009372, 1353009296]} final : False mtd_id 4302 list_pids : [1353027723] Looping around the photos to save general results len do output : 1 /22342994. 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, '2752869') ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22342994', "{'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010}", None, None, None, None, '2752869'), ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869')] time used for this insertion : 0.013899803161621094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5016212463378906 time spend to save output : 0.01416468620300293 total time spend for step 1 : 1.5157859325408936 step2:final Thu Apr 24 00:06: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 ! 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 (22342994) 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 22342994 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353009372,1353009296,1353010319,1353010269,1353010224,1353010165,1353010082,1353010004,1353011415,1353011364,1353011252,1353011127,1353011015,1353010923,1353011657,1353011625,1353011609,1353011603,1353011929,1353011922,1353011914,1353011896,1353011866,1353011835,1353011988,1353011976,1353011971,1353011967,1353011963,1353012251,1353012230,1353012216,1353012206,1353012201,1353012323,1353012318,1353012314,1353012310,1353012305,1353012398,1353012393,1353012389,1353012386,1353012383,1353012461,1353012457,1353012453,1353012450,1353012447,1353012443,1353012566,1353027723,1353012699); 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([22342994]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353027723: ('0.06286442424648833',)} new output for save of step final : {1353027723: ('0.06286442424648833',)} [1353027723] map_info['map_portfolio_photo'] : {22342994: [1353027723, 1353012699, 1353012566, 1353012461, 1353012457, 1353012453, 1353012450, 1353012447, 1353012443, 1353012398, 1353012393, 1353012389, 1353012386, 1353012383, 1353012323, 1353012318, 1353012314, 1353012310, 1353012305, 1353012251, 1353012230, 1353012216, 1353012206, 1353012201, 1353011988, 1353011976, 1353011971, 1353011967, 1353011963, 1353011929, 1353011922, 1353011914, 1353011896, 1353011866, 1353011835, 1353011657, 1353011625, 1353011609, 1353011603, 1353011415, 1353011364, 1353011252, 1353011127, 1353011015, 1353010923, 1353010319, 1353010269, 1353010224, 1353010165, 1353010082, 1353010004, 1353009372, 1353009296]} final : False mtd_id 4302 list_pids : [1353027723] Looping around the photos to save general results len do output : 1 /1353027723.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, '2752869') ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22342994', '1353027723', '0.06286442424648833', None, None, None, None, '2752869')] time used for this insertion : 0.01085972785949707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07698512077331543 time spend to save output : 0.011066913604736328 total time spend for step 2 : 0.08805203437805176 step3:velours_tree Thu Apr 24 00:06: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 : {22342994: [{'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010}]} input_args_next_step : {22342994: ()} output_args : {22342994: [{'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010}]} args : 22342994 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 : ({'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22342994) 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([22342994]) 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.6124746799468994 time spend to save output : 6.985664367675781e-05 total time spend for step 3 : 0.6125445365905762 step4:send_mail_cod Thu Apr 24 00:06: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 : {1353027723: ('0.06286442424648833',)} input_args_next_step : {1353027723: ()} output_args : {1353027723: ('0.06286442424648833',)} args : 1353027723 depend.output_id : 0 complete output_args for input 3 : {22342994: [{'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010}]} input_args_next_step : {1353027723: ('0.06286442424648833',), 22342994: ()} output_args : {22342994: [{'plastique': 22342999, 'cartonnette': 22343000, 'Carton_gris': 22343001, 'environnement': 22343002, 'Teint_Dans_La_Masse': 22343003, 'Carton_brun': 22343004, 'kraft': 22343005, 'autre_refus': 22343006, 'flou': 22343007, 'metal': 22343008, 'mal_croppe': 22343009, 'papier': 22343010}]} args : 22342994 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 :2, first value : ('0.06286442424648833',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22342994) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1353027723) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353027723 download finish for photo 1353027723 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22342994_24-04-2025_00_06_00.pdf 22342999 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22342999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012583: '1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350202_0.png', 1353013168: '1745403312_4148290_1353010224_7574b3ad347312ebb47ae986c14fdc05_rle_crop_3765355579_0.png', 1353013167: '1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355502_0.png', 1353013059: '1745403223_2663333_1353012450_a6faf1cb3c373b2e3efe499bbb71d98b_rle_crop_3765355257_0.png', 1353013058: '1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355241_0.png', 1353013057: '1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355244_0.png', 1353012948: '1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350202_0.png', 1353012947: '1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350195_0.png', 1353012720: '1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351919_0.png', 1353011520: '1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344212_0.png', 1353012582: '1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350195_0.png', 1353012438: '1745402954_4142476_1353012314_8934188f98baeb12e7feee00637c5431_rle_crop_3765347990_0.png', 1353012366: '1745402870_2651341_1353011914_2721840349ae08dc26e46fffe246636e_rle_crop_3765347295_0.png', 1353012295: '1745402832_4140764_1353011971_5a8dbcc4700da63c65170f5454eb1bc9_rle_crop_3765345626_0.png', 1353012294: '1745402832_4140764_1353011976_17135aca9ac5f7a66a5df2f60fc48249_rle_crop_3765345612_0.png', 1353012011: '1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345418_0.png', 1353012010: '1745402742_2650126_1353011364_90cb1d66ec8e0f380c67235860533546_rle_crop_3765345406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4d5d05a5a347287178cdbbc3a01a2a48_4964902.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/79a32710e0ee082d5818e077b71db503_57395855.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5844dea0ae265b07f1397d2322e644b5_78488153.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e4c0ca675059e90aa5cd995d02cae4db_32229426.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/78e13e896c7b21ae9f0541258bafae01_69087045.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e88e1026549a07d99c34988e86d265e4_81303333.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4d5d05a5a347287178cdbbc3a01a2a48_20626236.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/35e51ad373a7c95845ca86e3fad75f32_1745708.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6abf8217f934a496187c5b92302e6a2b_52827628.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7005f9ce2807e6a53094348a566cd8a5_53209048.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/35e51ad373a7c95845ca86e3fad75f32_74447234.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c91add156cb5873d21cf44fda205d29b_29268055.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e26a15387a28ff7007fab9fcaae192a9_37159538.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/303e9831c2d20df625c3c6bdad048274_8066043.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2a2259cbfe748ef18fa84489ed37536c_91420569.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fc044ce7b2f9049a3d3e476aaf41066e_88048073.png change filename to text .imagette223429991745445960/ imagette223429991745445960/1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350195_0.png.png imagette223429991745445960/1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355502_0.png.png imagette223429991745445960/1745403312_4148290_1353010224_7574b3ad347312ebb47ae986c14fdc05_rle_crop_3765355579_0.png.png imagette223429991745445960/1745403223_2663333_1353012450_a6faf1cb3c373b2e3efe499bbb71d98b_rle_crop_3765355257_0.png.png imagette223429991745445960/1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350195_0.png.png imagette223429991745445960/1745402742_2650126_1353011364_90cb1d66ec8e0f380c67235860533546_rle_crop_3765345406_0.png.png imagette223429991745445960/1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350202_0.png.png imagette223429991745445960/1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355244_0.png.png imagette223429991745445960/1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355241_0.png.png imagette223429991745445960/1745402954_4142476_1353012314_8934188f98baeb12e7feee00637c5431_rle_crop_3765347990_0.png.png imagette223429991745445960/1745402832_4140764_1353011971_5a8dbcc4700da63c65170f5454eb1bc9_rle_crop_3765345626_0.png.png imagette223429991745445960/1745402832_4140764_1353011976_17135aca9ac5f7a66a5df2f60fc48249_rle_crop_3765345612_0.png.png imagette223429991745445960/1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344212_0.png.png imagette223429991745445960/1745402870_2651341_1353011914_2721840349ae08dc26e46fffe246636e_rle_crop_3765347295_0.png.png imagette223429991745445960/1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351919_0.png.png imagette223429991745445960/1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350202_0.png.png imagette223429991745445960/1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345418_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5f8e63e6b43a4ffcf695216b8e1d2e5e_96739652.png imagette223429991745445960 22343000 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012580: '1745403013_4143499_1353012206_8b80b5f34e84cbaca0ea3c30822d5895_rle_crop_3765350188_0.png', 1353013162: '1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355594_0.png', 1353013161: '1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355507_0.png', 1353013160: '1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355503_0.png', 1353013050: '1745403223_2663333_1353012457_c0bfa4599a00442f057eca2b40f1e24a_rle_crop_3765355230_0.png', 1353013049: '1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355214_0.png', 1353013048: '1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355213_0.png', 1353012933: '1745403134_4145670_1353012206_8b80b5f34e84cbaca0ea3c30822d5895_rle_crop_3765350188_0.png', 1353012932: '1745403134_4145670_1353012230_93d5377a67c19bdb9c14b199402c9961_rle_crop_3765350166_0.png', 1353011997: '1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345389_0.png', 1353012579: '1745403013_4143499_1353012230_93d5377a67c19bdb9c14b199402c9961_rle_crop_3765350166_0.png', 1353012435: '1745402954_4142476_1353012318_7f87a8153bcfc6ac9ac4a0ed758be4cb_rle_crop_3765347974_0.png', 1353012434: '1745402954_4142476_1353012318_7f87a8153bcfc6ac9ac4a0ed758be4cb_rle_crop_3765347973_0.png', 1353012363: '1745402870_2651341_1353011835_e4ea8ba9f79c91490ad195cc4975de7d_rle_crop_3765347380_0.png', 1353012362: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347299_0.png', 1353012361: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347300_0.png', 1353012360: '1745402870_2651341_1353011922_94a4a1d42e39b8cba3095c9a09492f33_rle_crop_3765347277_0.png', 1353011998: '1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345469_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b9c4c9d7741b336d911338096f06b1c0_60954946.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cafd91eaf9e7e7632a17a223dcbe4eef_94574857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4b2f90726515e6d7e253cd81492f7e99_39175339.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ca137f16b1fa4b3eee56c08f77a6046c_14436530.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/33ac24ac487d950f411cf7a10528bd41_65248131.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/008ae5a2c162021fb0f303da9c9bed84_54550256.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/eccbf7c8b6c34fc70c98cdc79b65600d_90892292.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b9c4c9d7741b336d911338096f06b1c0_60249336.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e94c7b6c0b1e8b46407d53b31bc90753_73801049.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a29fac43d3d93c8f9f1705261c881326_57930600.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e94c7b6c0b1e8b46407d53b31bc90753_64230059.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/77a5670d078d09ea095e32c3fca72d46_10730920.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0cb35788039467b35f2d5b73afd90b4b_7842737.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0390f4ede0f51829c3f28524e421194d_73824098.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9aa036a389441dedd1434b28e27ca7a5_70654883.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/315c241b3a6f7f833e8be1c43f8db3e8_7024978.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4109f5337cbb1554497fc6cf04b1e86e_96451602.png change filename to text .imagette223430001745445962/ imagette223430001745445962/1745403134_4145670_1353012230_93d5377a67c19bdb9c14b199402c9961_rle_crop_3765350166_0.png.png imagette223430001745445962/1745403013_4143499_1353012230_93d5377a67c19bdb9c14b199402c9961_rle_crop_3765350166_0.png.png imagette223430001745445962/1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355594_0.png.png imagette223430001745445962/1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355214_0.png.png imagette223430001745445962/1745403223_2663333_1353012457_c0bfa4599a00442f057eca2b40f1e24a_rle_crop_3765355230_0.png.png imagette223430001745445962/1745403134_4145670_1353012206_8b80b5f34e84cbaca0ea3c30822d5895_rle_crop_3765350188_0.png.png imagette223430001745445962/1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355507_0.png.png imagette223430001745445962/1745402870_2651341_1353011835_e4ea8ba9f79c91490ad195cc4975de7d_rle_crop_3765347380_0.png.png imagette223430001745445962/1745403312_4148290_1353011415_6d93c6ef72660b79caf0bd30a6ace41c_rle_crop_3765355503_0.png.png imagette223430001745445962/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347299_0.png.png imagette223430001745445962/1745402870_2651341_1353011922_94a4a1d42e39b8cba3095c9a09492f33_rle_crop_3765347277_0.png.png imagette223430001745445962/1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345469_0.png.png imagette223430001745445962/1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345389_0.png.png imagette223430001745445962/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347300_0.png.png imagette223430001745445962/1745402954_4142476_1353012318_7f87a8153bcfc6ac9ac4a0ed758be4cb_rle_crop_3765347973_0.png.png imagette223430001745445962/1745403013_4143499_1353012206_8b80b5f34e84cbaca0ea3c30822d5895_rle_crop_3765350188_0.png.png imagette223430001745445962/1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355213_0.png.png imagette223430001745445962/1745402954_4142476_1353012318_7f87a8153bcfc6ac9ac4a0ed758be4cb_rle_crop_3765347974_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4be789acee28468df90329d6e9d5c79b_98215075.png imagette223430001745445962 22343005 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353013170: '1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355589_0.png', 1353013171: '1745403312_4148290_1353010082_783e2ddc804036c01640f729928888a1_rle_crop_3765355609_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2cb0485f8a25c645ced7dd94b00bcc84_32703326.png change filename to text .imagette223430051745445964/ imagette223430051745445964/1745403312_4148290_1353010082_783e2ddc804036c01640f729928888a1_rle_crop_3765355609_0.png.png imagette223430051745445964/1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355589_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/668ce2959eb04664d34dc4896dda0d9f_77332077.png imagette223430051745445964 22343006 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353011479: '1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344213_0.png', 1353011984: '1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345416_0.png', 1353011985: '1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345471_0.png', 1353012565: '1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350196_0.png', 1353012921: '1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350196_0.png', 1353013041: '1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355243_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/734d4c9abf31e45cb3584689f3ca5564_40276129.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9491647cbea5c60a708f15e8fb2ead34_56712711.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d2973591a31ccaeb7e51a3ace245b736_98785734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2b48a47137322ca84b333ec8a81a0c7e_40406560.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2b48a47137322ca84b333ec8a81a0c7e_42111904.png change filename to text .imagette223430061745445965/ imagette223430061745445965/1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345416_0.png.png imagette223430061745445965/1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350196_0.png.png imagette223430061745445965/1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345471_0.png.png imagette223430061745445965/1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355243_0.png.png imagette223430061745445965/1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350196_0.png.png imagette223430061745445965/1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344213_0.png.png imagette223430071745445965/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7264348f9c16e56a67eda5034c3e6e56_8351242.png imagette223430061745445965 22343007 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343007 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223430071745445965 22343008 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012368: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347304_0.png', 1353013172: '1745403312_4148290_1353010004_bd2adfe12e114d2d9930c37e8f51c6b5_rle_crop_3765355614_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/71470879b9ba92e5472f71651865a55d_82469705.png change filename to text .imagette223430081745445965/ imagette223430081745445965/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347304_0.png.png imagette223430081745445965/1745403312_4148290_1353010004_bd2adfe12e114d2d9930c37e8f51c6b5_rle_crop_3765355614_0.png.png imagette223430091745445965/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3623562ad01cb3e53ad00ec667df163d_91281309.png imagette223430081745445965 22343009 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343009 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223430091745445965 22343001 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012288: '1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345654_0.png', 1353013159: '1745403312_4148290_1353010082_783e2ddc804036c01640f729928888a1_rle_crop_3765355608_0.png', 1353013047: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355282_0.png', 1353013046: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355279_0.png', 1353013045: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355284_0.png', 1353013044: '1745403223_2663333_1353012447_f33298ed691a37f8ec201742af9da2f4_rle_crop_3765355273_0.png', 1353013043: '1745403223_2663333_1353012457_c0bfa4599a00442f057eca2b40f1e24a_rle_crop_3765355226_0.png', 1353012702: '1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351925_0.png', 1353012289: '1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345650_0.png', 1353011491: '1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344206_0.png', 1353012287: '1745402832_4140764_1353011971_5a8dbcc4700da63c65170f5454eb1bc9_rle_crop_3765345624_0.png', 1353011994: '1745402742_2650126_1353011015_85ed75d8fcb600ba0d7d6f9df9c885c8_rle_crop_3765345454_0.png', 1353011993: '1745402742_2650126_1353011015_85ed75d8fcb600ba0d7d6f9df9c885c8_rle_crop_3765345452_0.png', 1353011992: '1745402742_2650126_1353011127_3a891ef10c837f1142a2d9a563528907_rle_crop_3765345430_0.png', 1353011991: '1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345414_0.png', 1353011990: '1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345388_0.png', 1353011989: '1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345394_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d9f5fdb4b452a7888214ee2b0ee47754_71850056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4fcdef72acce8384a593d62e5be40103_36544234.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ab33fea4f19a09cb1c1d0d38cd092ab5_73629939.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/064721f23c3e241c0303cac018440dd9_73420380.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/906a03c8e6b1c58dbc8e6c2025322f56_84520361.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/da694db6a2e8d1045d8aab3b35f65f4b_67811630.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fdee64a93c5bbc9bc709c3738e7adfe5_91344026.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f3095e5eb965a70b38224fa836dd7822_4942446.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2ceea7c5dfdf17a3769bbbf33250aa73_96250023.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cd791811516cfe0876be805b6211c32d_65440836.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1421d77399261b7139b3ee9c75ba2ebb_93663815.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d0cac227112088df9db54f28a52042d7_26129124.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ca9aca225600e5f4e64acd13e1e858ec_59925883.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b5d59ba8250f96912d12cb928b4b5cda_77570998.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b430c447ded93764562e12a1ff253661_51777880.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/324bc6424a9706c432b9eb79d100e6da_959218.png change filename to text .imagette223430011745445965/ imagette223430011745445965/1745402832_4140764_1353011971_5a8dbcc4700da63c65170f5454eb1bc9_rle_crop_3765345624_0.png.png imagette223430011745445965/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355284_0.png.png imagette223430011745445965/1745402742_2650126_1353011127_3a891ef10c837f1142a2d9a563528907_rle_crop_3765345430_0.png.png imagette223430011745445965/1745403312_4148290_1353010082_783e2ddc804036c01640f729928888a1_rle_crop_3765355608_0.png.png imagette223430011745445965/1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345650_0.png.png imagette223430011745445965/1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345394_0.png.png imagette223430011745445965/1745402742_2650126_1353011015_85ed75d8fcb600ba0d7d6f9df9c885c8_rle_crop_3765345454_0.png.png imagette223430011745445965/1745402742_2650126_1353011252_6a0ed2825825775b6494926890862a2c_rle_crop_3765345414_0.png.png imagette223430011745445965/1745402742_2650126_1353011015_85ed75d8fcb600ba0d7d6f9df9c885c8_rle_crop_3765345452_0.png.png imagette223430011745445965/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355282_0.png.png imagette223430011745445965/1745403223_2663333_1353012447_f33298ed691a37f8ec201742af9da2f4_rle_crop_3765355273_0.png.png imagette223430011745445965/1745403223_2663333_1353012457_c0bfa4599a00442f057eca2b40f1e24a_rle_crop_3765355226_0.png.png imagette223430011745445965/1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344206_0.png.png imagette223430011745445965/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355279_0.png.png imagette223430011745445965/1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351925_0.png.png imagette223430011745445965/1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345654_0.png.png imagette223430011745445965/1745402742_2650126_1353011657_f5f4bcd89f6eaba7f28f3ed337c13819_rle_crop_3765345388_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f9db0ac26cbd9e8cd6ff47e6b82f6965_10542814.png imagette223430011745445965 22343003 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012430: '1745402954_4142476_1353012314_8934188f98baeb12e7feee00637c5431_rle_crop_3765347991_0.png', 1353013158: '1745403312_4148290_1353010224_7574b3ad347312ebb47ae986c14fdc05_rle_crop_3765355577_0.png', 1353013040: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355286_0.png', 1353013039: '1745403223_2663333_1353012447_f33298ed691a37f8ec201742af9da2f4_rle_crop_3765355274_0.png', 1353013038: '1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355246_0.png', 1353013037: '1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355224_0.png', 1353012919: '1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350203_0.png', 1353012918: '1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350201_0.png', 1353012693: '1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351923_0.png', 1353012633: '1745403071_4144500_1353012383_872e1bd83bc04aa016c627078d4b1120_rle_crop_3765351916_0.png', 1353012632: '1745403071_4144500_1353012393_957459b9d09cacd3f9dd0f0f90acb1c2_rle_crop_3765351852_0.png', 1353012564: '1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350203_0.png', 1353012563: '1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350201_0.png', 1353011933: '1745402712_4138991_1353011609_546105a78d15f089a03b7df7d7aeaf74_rle_crop_3765345171_0.png', 1353012356: '1745402870_2651341_1353011835_e4ea8ba9f79c91490ad195cc4975de7d_rle_crop_3765347385_0.png', 1353012355: '1745402870_2651341_1353011866_902041c9bdea8d77e5235fe90e1a859c_rle_crop_3765347372_0.png', 1353012354: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347306_0.png', 1353012353: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347312_0.png', 1353012352: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347305_0.png', 1353012351: '1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d5ed8810db77d400121c2661a41bceec_93717040.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2910f7426012e8e118c58004d1f50266_95001573.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ad86182daaa347bfb0c6065a5db812d0_81856662.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/90a840066bda324dbc9c31968dc0eeea_2271116.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/20a6cbe4ad527347ae719885ef1ee1df_41502953.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f25d5d79d6be27213a9309755bb3defd_4852385.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1b548abf3e2b3451d305fc32b2985562_15836623.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cee708d88afad75c76c0ab22673b835b_10051925.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/13dd898720fec44b0b92ad1b6344f34c_10936964.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5fcdf75a6b676e46f40017aac6fb36e9_65080710.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c21e9e601b8ca919001011af5c82c74d_55052296.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1b548abf3e2b3451d305fc32b2985562_75425249.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cee708d88afad75c76c0ab22673b835b_36833792.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d93d7f280cdeeefe264a6e7a003fdea0_78177802.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/923554d7fcc4817901974b31fe163d36_79302271.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0673131a9385b0a892c1a4d382ab8bfe_8439989.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/02706e42a49baf92912e53a37ab6c8a0_56825685.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/07e5035d8d127531e308811987f17326_64587229.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e5336f670ac369dc657a9c4567d06c50_50422376.png change filename to text .imagette223430031745445968/ imagette223430031745445968/1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355224_0.png.png imagette223430031745445968/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347306_0.png.png imagette223430031745445968/1745402870_2651341_1353011866_902041c9bdea8d77e5235fe90e1a859c_rle_crop_3765347372_0.png.png imagette223430031745445968/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347312_0.png.png imagette223430031745445968/1745403223_2663333_1353012447_f33298ed691a37f8ec201742af9da2f4_rle_crop_3765355274_0.png.png imagette223430031745445968/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347305_0.png.png imagette223430031745445968/1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350201_0.png.png imagette223430031745445968/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355286_0.png.png imagette223430031745445968/1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351923_0.png.png imagette223430031745445968/1745402870_2651341_1353011896_86fe90c955f0c8325d56310f8c63639b_rle_crop_3765347309_0.png.png imagette223430031745445968/1745403312_4148290_1353010224_7574b3ad347312ebb47ae986c14fdc05_rle_crop_3765355577_0.png.png imagette223430031745445968/1745403071_4144500_1353012383_872e1bd83bc04aa016c627078d4b1120_rle_crop_3765351916_0.png.png imagette223430031745445968/1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350201_0.png.png imagette223430031745445968/1745402870_2651341_1353011835_e4ea8ba9f79c91490ad195cc4975de7d_rle_crop_3765347385_0.png.png imagette223430031745445968/1745402954_4142476_1353012314_8934188f98baeb12e7feee00637c5431_rle_crop_3765347991_0.png.png imagette223430031745445968/1745403071_4144500_1353012393_957459b9d09cacd3f9dd0f0f90acb1c2_rle_crop_3765351852_0.png.png imagette223430031745445968/1745403013_4143499_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350203_0.png.png imagette223430031745445968/1745403223_2663333_1353012453_40bbdb30a406e0993d67e0f602c5dc70_rle_crop_3765355246_0.png.png imagette223430031745445968/1745403134_4145670_1353012201_df8c54e4e1e2d35b7968708557b29e99_rle_crop_3765350203_0.png.png imagette223430031745445968/1745402712_4138991_1353011609_546105a78d15f089a03b7df7d7aeaf74_rle_crop_3765345171_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c171feefc9603f2a83b4e69433010452_29411629.png imagette223430031745445968 22343004 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22343004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353012364: '1745402870_2651341_1353011914_2721840349ae08dc26e46fffe246636e_rle_crop_3765347296_0.png', 1353013166: '1745403312_4148290_1353010004_bd2adfe12e114d2d9930c37e8f51c6b5_rle_crop_3765355618_0.png', 1353013165: '1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355592_0.png', 1353013164: '1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_bib_crop_3765355591_0.jpg', 1353013054: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355281_0.png', 1353013053: '1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355285_0.png', 1353013052: '1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355217_0.png', 1353012939: '1745403134_4145670_1353012323_74e7faa13e71a833a12dde704f5500c5_rle_crop_3765350162_0.png', 1353012712: '1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351926_0.png', 1353012710: '1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351930_0.png', 1353012638: '1745403071_4144500_1353012393_957459b9d09cacd3f9dd0f0f90acb1c2_rle_crop_3765351854_0.png', 1353012581: '1745403013_4143499_1353012323_74e7faa13e71a833a12dde704f5500c5_rle_crop_3765350162_0.png', 1353012437: '1745402954_4142476_1353012305_d7b0f55c4c82aaca9bd884f0ce399832_rle_crop_3765348020_0.png', 1353012436: '1745402954_4142476_1353012310_d6012da86ee6d27c80371bba0c77efb8_rle_crop_3765347999_0.png', 1353011502: '1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344211_0.png', 1353012346: '1745402893_4141493_1353011929_4b9ee9bb087a7344065947c4acb8b995_rle_crop_3765347323_0.png', 1353012293: '1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345660_0.png', 1353012292: '1745402832_4140764_1353011967_f7be8b3c4f8e77bf7af055830fdd7323_rle_crop_3765345640_0.png', 1353012291: '1745402832_4140764_1353011976_17135aca9ac5f7a66a5df2f60fc48249_rle_crop_3765345615_0.png', 1353012009: '1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345472_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1029fa25dce7c4ea145222ed404d0873_87859402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fdb3dda247188f54b723d51d9403699f_41007665.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/85e8acb68703838663e4c14da52d150c_11166154.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ce48a5c82f75d7705ad6a68b54039d70_93574286.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a1b291bb11c57661cbf16cdaa606d5ef_95306743.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c3c50b8bc06ee733fa5e3417adf81d92_56346774.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9b1087e732d3d06d679e77778bc10815_98474895.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/586fca5268d764b564f6538a216cfbdb_57159219.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4ef08e8626156573990f31d9ad2a6124_65942603.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8d4cd0ca552dad44bf300efb60276cca_52871855.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6038eaed5f715a76909712c116f4d5d7_84389862.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/586fca5268d764b564f6538a216cfbdb_78996000.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/08ba31f3423c637f0551c5fa21a96ae4_63712932.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4eaae13a8dff3eaea6d6351ebfecf193_28214098.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/10cebdce15350be4ba2612b69e8160f1_94362415.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6381cce1660165ace3cce67390526370_92532208.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a87f3f05c3ea277add6a154ae7225658_11732586.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ee51a5f8a9aa60b46cae38fabdc5e127_34620327.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/01e85bc99b4b97d56732175d1eee9d8f_4591183.png change filename to text .imagette223430041745445971/ imagette223430041745445971/1745402832_4140764_1353011967_f7be8b3c4f8e77bf7af055830fdd7323_rle_crop_3765345640_0.png.png imagette223430041745445971/1745402742_2650126_1353010923_abfbe44234d503f5d0d29e1b52f456a1_rle_crop_3765345472_0.png.png imagette223430041745445971/1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_rle_crop_3765355592_0.png.png imagette223430041745445971/1745402832_4140764_1353011963_acad0f054a7aa8f8f7d31d97af1c8b89_rle_crop_3765345660_0.png.png imagette223430041745445971/1745403013_4143499_1353012323_74e7faa13e71a833a12dde704f5500c5_rle_crop_3765350162_0.png.png imagette223430041745445971/1745402954_4142476_1353012310_d6012da86ee6d27c80371bba0c77efb8_rle_crop_3765347999_0.png.png imagette223430041745445971/1745403312_4148290_1353010165_1af5dc984b54189e97195eed804f159e_bib_crop_3765355591_0.jpg.jpg imagette223430041745445971/1745402592_4137212_1353009372_cf354ab960daa03254c7c1b37ca5545f_rle_crop_3765344211_0.png.png imagette223430041745445971/1745402954_4142476_1353012305_d7b0f55c4c82aaca9bd884f0ce399832_rle_crop_3765348020_0.png.png imagette223430041745445971/1745403312_4148290_1353010004_bd2adfe12e114d2d9930c37e8f51c6b5_rle_crop_3765355618_0.png.png imagette223430041745445971/1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351930_0.png.png imagette223430041745445971/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355285_0.png.png imagette223430041745445971/1745402870_2651341_1353011914_2721840349ae08dc26e46fffe246636e_rle_crop_3765347296_0.png.png imagette223430041745445971/1745403223_2663333_1353012443_8dfbf0263fbbe65b24756e50c6432fd7_rle_crop_3765355281_0.png.png imagette223430041745445971/1745403103_2660479_1353012398_81304bd0595739eba897236345c39a86_rle_crop_3765351926_0.png.png imagette223430041745445971/1745403134_4145670_1353012323_74e7faa13e71a833a12dde704f5500c5_rle_crop_3765350162_0.png.png imagette223430041745445971/1745403223_2663333_1353012566_6af847f37f3ea7c497b90259886f6bbc_rle_crop_3765355217_0.png.png imagette223430041745445971/1745402832_4140764_1353011976_17135aca9ac5f7a66a5df2f60fc48249_rle_crop_3765345615_0.png.png imagette223430041745445971/1745402893_4141493_1353011929_4b9ee9bb087a7344065947c4acb8b995_rle_crop_3765347323_0.png.png imagette223430041745445971/1745403071_4144500_1353012393_957459b9d09cacd3f9dd0f0f90acb1c2_rle_crop_3765351854_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f0fbfb5c11a9e4f8c572868adfc0d78c_60449610.png imagette223430041745445971 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22342994 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22343011,22343012,22343013,22343014,22343015,22343016,22343017,22343018,22343019,22343020,22343021,22343022?tags=plastique,cartonnette,Carton_gris,environnement,Teint_Dans_La_Masse,Carton_brun,kraft,autre_refus,flou,metal,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1353027723] : ('0.06286442424648833',) no score found for photo 1353027723 We are sending mail with results at report@fotonower.com refus_total : 0.06286442424648833 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22342994 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_P22342994_24-04-2025_00_06_00.pdf results_Auto_P22342994_24-04-2025_00_06_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_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','22342994','results_Auto_P22342994_24-04-2025_00_06_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf','pdf','','0.35','0.06286442424648833') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22342994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353027723] map_info['map_portfolio_photo'] : {22342994: [1353027723, 1353012699, 1353012566, 1353012461, 1353012457, 1353012453, 1353012450, 1353012447, 1353012443, 1353012398, 1353012393, 1353012389, 1353012386, 1353012383, 1353012323, 1353012318, 1353012314, 1353012310, 1353012305, 1353012251, 1353012230, 1353012216, 1353012206, 1353012201, 1353011988, 1353011976, 1353011971, 1353011967, 1353011963, 1353011929, 1353011922, 1353011914, 1353011896, 1353011866, 1353011835, 1353011657, 1353011625, 1353011609, 1353011603, 1353011415, 1353011364, 1353011252, 1353011127, 1353011015, 1353010923, 1353010319, 1353010269, 1353010224, 1353010165, 1353010082, 1353010004, 1353009372, 1353009296]} final : False mtd_id 4302 list_pids : [1353027723] 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, '2752869') ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '22342994', '1353027723', None, None, None, None, None, '2752869')] time used for this insertion : 0.012464523315429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.78413701057434 time spend to save output : 0.012654542922973633 total time spend for step 4 : 13.796791553497314 step5:split_time_score Thu Apr 24 00:06:14 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 : ['22342994'] 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 : [('22342994',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22342994) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353027723: {'path': 'temp/1745445960_1121035_1353027723_d9c754efa30e68c6de62250341fad91c.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 = 22342994; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22342994 group by h (('12', 53),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22342994 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 (22342994) 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 (22342994) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22342994 Nombre de photos uploadées : 53 / 23040 (0%) 23042025 22342994 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 23042025 22342994 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1353009372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cf354ab960daa03254c7c1b37ca5545f.jpg', 'username': None, 'uploaded_at': 1745402467, 'text': 'image_23042025_12_00_03_009154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353009296, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dcd904dfef9f3db5102ab0ce7baabce5.jpg', 'username': None, 'uploaded_at': 1745402467, 'text': 'image_23042025_12_00_13_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353010319, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ed80701b194ed003702e21ca224d2e59.jpg', 'username': None, 'uploaded_at': 1745402527, 'text': 'image_23042025_12_00_23_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353010269, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2fb008988c7a74fa5cdf46b5aee978c1.jpg', 'username': None, 'uploaded_at': 1745402527, 'text': 'image_23042025_12_01_04_010150m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023026466369628906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22342994, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022644996643066406 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22325236, 'dashboard_result_id': 10060534, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22325613, 'dashboard_result_id': 10060535, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22325942, 'dashboard_result_id': 10060536, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10060537, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22326686, 'dashboard_result_id': 10060538, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10060539, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10060540, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22328173, 'dashboard_result_id': 10060541, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22328867, 'dashboard_result_id': 10060542, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22329762, 'dashboard_result_id': 10060543, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22330414, 'dashboard_result_id': 10060544, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22331203, 'dashboard_result_id': 10060545, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22331661, 'dashboard_result_id': 10060546, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22332458, 'dashboard_result_id': 10060547, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22333179, 'dashboard_result_id': 10060548, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22334033, 'dashboard_result_id': 10060549, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22336354, 'dashboard_result_id': 10060550, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22337144, 'dashboard_result_id': 10060551, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22337891, 'dashboard_result_id': 10060552, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22338640, 'dashboard_result_id': 10060553, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22339201, 'dashboard_result_id': 10060554, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22339852, 'dashboard_result_id': 10060555, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22340451, 'dashboard_result_id': 10060556, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22341308, 'dashboard_result_id': 10060557, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22341945, 'dashboard_result_id': 10060558, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22342537, 'dashboard_result_id': 10060559, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22342994, 'dashboard_result_id': 10060560, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_23-04-2025_12_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22348035, 'dashboard_result_id': 10060561, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22348525, 'dashboard_result_id': 10060562, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22349010, 'dashboard_result_id': 10060563, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22349913, 'dashboard_result_id': 10060564, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22350703, 'dashboard_result_id': 10060565, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22351746, 'dashboard_result_id': 10060566, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22353065, 'dashboard_result_id': 10060567, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22353503, 'dashboard_result_id': 10060568, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22354290, 'dashboard_result_id': 10060569, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22354450, 'dashboard_result_id': 10060570, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22355072, 'dashboard_result_id': 10060571, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22355885, 'dashboard_result_id': 10060572, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22356488, 'dashboard_result_id': 10060573, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_23-04-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22359573, 'dashboard_result_id': 10060574, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22360340, 'dashboard_result_id': 10060575, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22361301, 'dashboard_result_id': 10060576, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751210, 'mtr_portfolio_id': 22361872, 'dashboard_result_id': 10060577, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, '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 = 22325236 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': 2751266, 'mtr_portfolio_id': 22325236, 'created_at': datetime.datetime(2025, 4, 23, 5, 56), 'result': '0.0709678645705838', 'result_long': None, 'result_double': None}] Qualite : 0.0709678645705838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}" where mtr_portfolio_id = 22325236 and dashboard_run_id = 1751210 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`=22325236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060534, 0.0709678645705838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_23-04-2025_05_56_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, '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 = 22325613 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': 2751267, 'mtr_portfolio_id': 22325613, 'created_at': datetime.datetime(2025, 4, 23, 5, 56, 58), 'result': '0.06878107966408131', 'result_long': None, 'result_double': None}] Qualite : 0.06878107966408131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}" where mtr_portfolio_id = 22325613 and dashboard_run_id = 1751210 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`=22325613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060535, 0.06878107966408131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_23-04-2025_05_57_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, '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 = 22325942 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': 2751294, 'mtr_portfolio_id': 22325942, 'created_at': datetime.datetime(2025, 4, 23, 5, 47, 46), 'result': '0.0684979031853887', 'result_long': None, 'result_double': None}] Qualite : 0.0684979031853887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}" where mtr_portfolio_id = 22325942 and dashboard_run_id = 1751210 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`=22325942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060536, 0.0684979031853887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_23-04-2025_05_47_50.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, '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 = 22326303 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': 2751328, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 23, 6, 2, 59), 'result': '0.0705016942968641', 'result_long': None, 'result_double': None}] Qualite : 0.0705016942968641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1751210 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`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060537, 0.0705016942968641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 = 22326686 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': 2751380, 'mtr_portfolio_id': 22326686, 'created_at': datetime.datetime(2025, 4, 23, 6, 20, 58), 'result': '0.08849670839449893', 'result_long': None, 'result_double': None}] Qualite : 0.08849670839449893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}" where mtr_portfolio_id = 22326686 and dashboard_run_id = 1751210 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`=22326686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060538, 0.08849670839449893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, '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 = 22327416 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': 2751439, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 23, 6, 34, 58), 'result': '0.06719231217388424', 'result_long': None, 'result_double': None}] Qualite : 0.06719231217388424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1751210 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`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060539, 0.06719231217388424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, '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 = 22327827 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': 2751479, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 23, 6, 48, 57), 'result': '0.06327099763152055', 'result_long': None, 'result_double': None}] Qualite : 0.06327099763152055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1751210 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`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060540, 0.06327099763152055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 = 22328173 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': 2751510, 'mtr_portfolio_id': 22328173, 'created_at': datetime.datetime(2025, 4, 23, 7, 2, 58), 'result': '0.06952255225921646', 'result_long': None, 'result_double': None}] Qualite : 0.06952255225921646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328173 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}" where mtr_portfolio_id = 22328173 and dashboard_run_id = 1751210 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`=22328173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060541, 0.06952255225921646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, '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 = 22328867 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': 2751669, 'mtr_portfolio_id': 22328867, 'created_at': datetime.datetime(2025, 4, 23, 7, 20, 57), 'result': '0.08314204137547636', 'result_long': None, 'result_double': None}] Qualite : 0.08314204137547636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328867 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}" where mtr_portfolio_id = 22328867 and dashboard_run_id = 1751210 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`=22328867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060542, 0.08314204137547636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_20_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, '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 = 22329762 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': 2751716, 'mtr_portfolio_id': 22329762, 'created_at': datetime.datetime(2025, 4, 23, 7, 32, 58), 'result': '0.06514431270651219', 'result_long': None, 'result_double': None}] Qualite : 0.06514431270651219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22329762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22329762 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}" where mtr_portfolio_id = 22329762 and dashboard_run_id = 1751210 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`=22329762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060543, 0.06514431270651219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_23-04-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, '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 = 22330414 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': 2751774, 'mtr_portfolio_id': 22330414, 'created_at': datetime.datetime(2025, 4, 23, 7, 48, 59), 'result': '0.058774719427930264', 'result_long': None, 'result_double': None}] Qualite : 0.058774719427930264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22330414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22330414 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}" where mtr_portfolio_id = 22330414 and dashboard_run_id = 1751210 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`=22330414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060544, 0.058774719427930264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_23-04-2025_07_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, '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 = 22331203 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': 2751835, 'mtr_portfolio_id': 22331203, 'created_at': datetime.datetime(2025, 4, 23, 8, 2, 59), 'result': '0.04797771175706554', 'result_long': None, 'result_double': None}] Qualite : 0.04797771175706554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331203 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}" where mtr_portfolio_id = 22331203 and dashboard_run_id = 1751210 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`=22331203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060545, 0.04797771175706554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, '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 = 22331661 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': 2751898, 'mtr_portfolio_id': 22331661, 'created_at': datetime.datetime(2025, 4, 23, 8, 17), 'result': '0.05327031960987797', 'result_long': None, 'result_double': None}] Qualite : 0.05327031960987797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331661 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}" where mtr_portfolio_id = 22331661 and dashboard_run_id = 1751210 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`=22331661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060546, 0.05327031960987797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, '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 = 22332458 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': 2751952, 'mtr_portfolio_id': 22332458, 'created_at': datetime.datetime(2025, 4, 23, 8, 34, 59), 'result': '0.07737588999273574', 'result_long': None, 'result_double': None}] Qualite : 0.07737588999273574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22332458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22332458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}" where mtr_portfolio_id = 22332458 and dashboard_run_id = 1751210 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`=22332458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060547, 0.07737588999273574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, '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 = 22333179 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': 2752018, 'mtr_portfolio_id': 22333179, 'created_at': datetime.datetime(2025, 4, 23, 8, 46, 59), 'result': '0.059361322375682285', 'result_long': None, 'result_double': None}] Qualite : 0.059361322375682285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22333179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22333179 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}" where mtr_portfolio_id = 22333179 and dashboard_run_id = 1751210 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`=22333179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060548, 0.059361322375682285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, '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 = 22334033 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': 2752095, 'mtr_portfolio_id': 22334033, 'created_at': datetime.datetime(2025, 4, 23, 9, 16, 32), 'result': '0.06863535212709608', 'result_long': None, 'result_double': None}] Qualite : 0.06863535212709608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22334033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22334033 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}" where mtr_portfolio_id = 22334033 and dashboard_run_id = 1751210 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`=22334033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060549, 0.06863535212709608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, '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 = 22336354 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': 2752283, 'mtr_portfolio_id': 22336354, 'created_at': datetime.datetime(2025, 4, 23, 9, 49), 'result': '0.0756758171083557', 'result_long': None, 'result_double': None}] Qualite : 0.0756758171083557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22336354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22336354 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}" where mtr_portfolio_id = 22336354 and dashboard_run_id = 1751210 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`=22336354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060550, 0.0756758171083557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, '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 = 22337144 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': 2752342, 'mtr_portfolio_id': 22337144, 'created_at': datetime.datetime(2025, 4, 23, 10, 3, 1), 'result': '0.059795252541870805', 'result_long': None, 'result_double': None}] Qualite : 0.059795252541870805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337144 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}" where mtr_portfolio_id = 22337144 and dashboard_run_id = 1751210 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`=22337144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060551, 0.059795252541870805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, '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 = 22337891 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': 2752399, 'mtr_portfolio_id': 22337891, 'created_at': datetime.datetime(2025, 4, 23, 10, 16, 59), 'result': '0.07046765031723179', 'result_long': None, 'result_double': None}] Qualite : 0.07046765031723179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}" where mtr_portfolio_id = 22337891 and dashboard_run_id = 1751210 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`=22337891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060552, 0.07046765031723179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, '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 = 22338640 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': 2752462, 'mtr_portfolio_id': 22338640, 'created_at': datetime.datetime(2025, 4, 23, 10, 32, 30), 'result': '0.08295155152499999', 'result_long': None, 'result_double': None}] Qualite : 0.08295155152499999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22338640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22338640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}" where mtr_portfolio_id = 22338640 and dashboard_run_id = 1751210 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`=22338640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060553, 0.08295155152499999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_23-04-2025_10_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, '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 = 22339201 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': 2752528, 'mtr_portfolio_id': 22339201, 'created_at': datetime.datetime(2025, 4, 23, 10, 46, 59), 'result': '0.06237691042856295', 'result_long': None, 'result_double': None}] Qualite : 0.06237691042856295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339201 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}" where mtr_portfolio_id = 22339201 and dashboard_run_id = 1751210 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`=22339201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060554, 0.06237691042856295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_23-04-2025_10_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, '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 = 22339852 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': 2752581, 'mtr_portfolio_id': 22339852, 'created_at': datetime.datetime(2025, 4, 23, 11, 3, 28), 'result': '0.047202876661661765', 'result_long': None, 'result_double': None}] Qualite : 0.047202876661661765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}" where mtr_portfolio_id = 22339852 and dashboard_run_id = 1751210 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`=22339852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060555, 0.047202876661661765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, '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 = 22340451 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': 2752641, 'mtr_portfolio_id': 22340451, 'created_at': datetime.datetime(2025, 4, 23, 11, 16, 58), 'result': '0.06235186309820279', 'result_long': None, 'result_double': None}] Qualite : 0.06235186309820279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22340451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22340451 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}" where mtr_portfolio_id = 22340451 and dashboard_run_id = 1751210 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`=22340451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060556, 0.06235186309820279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, '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 = 22341308 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': 2752700, 'mtr_portfolio_id': 22341308, 'created_at': datetime.datetime(2025, 4, 23, 11, 32, 59), 'result': '0.04767917474961474', 'result_long': None, 'result_double': None}] Qualite : 0.04767917474961474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341308 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}" where mtr_portfolio_id = 22341308 and dashboard_run_id = 1751210 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`=22341308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060557, 0.04767917474961474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, '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 = 22341945 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': 2752763, 'mtr_portfolio_id': 22341945, 'created_at': datetime.datetime(2025, 4, 23, 11, 48, 59), 'result': '0.061373847411342525', 'result_long': None, 'result_double': None}] Qualite : 0.061373847411342525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341945 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}" where mtr_portfolio_id = 22341945 and dashboard_run_id = 1751210 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`=22341945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060558, 0.061373847411342525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_23-04-2025_11_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, '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 = 22342537 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': 2752817, 'mtr_portfolio_id': 22342537, 'created_at': datetime.datetime(2025, 4, 23, 12, 2, 59), 'result': '0.06941682431519162', 'result_long': None, 'result_double': None}] Qualite : 0.06941682431519162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}" where mtr_portfolio_id = 22342537 and dashboard_run_id = 1751210 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`=22342537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060559, 0.06941682431519162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, '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 = 22342994 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': 2752869, 'mtr_portfolio_id': 22342994, 'created_at': datetime.datetime(2025, 4, 24, 0, 6), 'result': '0.06286442424648833', 'result_long': None, 'result_double': None}] Qualite : 0.06286442424648833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342994 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}" where mtr_portfolio_id = 22342994 and dashboard_run_id = 1751210 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`=22342994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060560, 0.06286442424648833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_00_06_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, '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 = 22348035 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': 2753540, 'mtr_portfolio_id': 22348035, 'created_at': datetime.datetime(2025, 4, 23, 16, 21, 29), 'result': '0.07689961495624048', 'result_long': None, 'result_double': None}] Qualite : 0.07689961495624048 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}" where mtr_portfolio_id = 22348035 and dashboard_run_id = 1751210 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`=22348035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060561, 0.07689961495624048, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, '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 = 22348525 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': 2753580, 'mtr_portfolio_id': 22348525, 'created_at': datetime.datetime(2025, 4, 23, 16, 32, 59), 'result': '0.062361052152202334', 'result_long': None, 'result_double': None}] Qualite : 0.062361052152202334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348525 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}" where mtr_portfolio_id = 22348525 and dashboard_run_id = 1751210 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`=22348525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060562, 0.062361052152202334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_23-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, '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 = 22349010 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': 2753655, 'mtr_portfolio_id': 22349010, 'created_at': datetime.datetime(2025, 4, 23, 16, 48, 59), 'result': '0.05304367135890578', 'result_long': None, 'result_double': None}] Qualite : 0.05304367135890578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}" where mtr_portfolio_id = 22349010 and dashboard_run_id = 1751210 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`=22349010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060563, 0.05304367135890578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_23-04-2025_16_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, '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 = 22349913 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': 2753722, 'mtr_portfolio_id': 22349913, 'created_at': datetime.datetime(2025, 4, 23, 17, 2, 30), 'result': '0.07862185598645142', 'result_long': None, 'result_double': None}] Qualite : 0.07862185598645142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}" where mtr_portfolio_id = 22349913 and dashboard_run_id = 1751210 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`=22349913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060564, 0.07862185598645142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_23-04-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, '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 = 22350703 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': 2753789, 'mtr_portfolio_id': 22350703, 'created_at': datetime.datetime(2025, 4, 23, 17, 16, 59), 'result': '0.053544550129259245', 'result_long': None, 'result_double': None}] Qualite : 0.053544550129259245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22350703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22350703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}" where mtr_portfolio_id = 22350703 and dashboard_run_id = 1751210 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`=22350703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060565, 0.053544550129259245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, '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 = 22351746 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': 2753858, 'mtr_portfolio_id': 22351746, 'created_at': datetime.datetime(2025, 4, 23, 17, 34, 58), 'result': '0.046430601391658985', 'result_long': None, 'result_double': None}] Qualite : 0.046430601391658985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22351746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22351746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}" where mtr_portfolio_id = 22351746 and dashboard_run_id = 1751210 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`=22351746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060566, 0.046430601391658985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_23-04-2025_17_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, '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 = 22353065 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': 2754013, 'mtr_portfolio_id': 22353065, 'created_at': datetime.datetime(2025, 4, 23, 18, 18, 58), 'result': '0.04914646860979779', 'result_long': None, 'result_double': None}] Qualite : 0.04914646860979779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353065 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}" where mtr_portfolio_id = 22353065 and dashboard_run_id = 1751210 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`=22353065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060567, 0.04914646860979779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_23-04-2025_18_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, '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 = 22353503 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': 2754073, 'mtr_portfolio_id': 22353503, 'created_at': datetime.datetime(2025, 4, 23, 18, 32, 30), 'result': '0.05479845340734035', 'result_long': None, 'result_double': None}] Qualite : 0.05479845340734035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}" where mtr_portfolio_id = 22353503 and dashboard_run_id = 1751210 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`=22353503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060568, 0.05479845340734035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_23-04-2025_18_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, '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 = 22354290 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': 2754160, 'mtr_portfolio_id': 22354290, 'created_at': datetime.datetime(2025, 4, 23, 18, 46, 58), 'result': '0.07883123016562744', 'result_long': None, 'result_double': None}] Qualite : 0.07883123016562744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354290 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}" where mtr_portfolio_id = 22354290 and dashboard_run_id = 1751210 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`=22354290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060569, 0.07883123016562744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_23-04-2025_18_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, '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 = 22354450 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': 2754176, 'mtr_portfolio_id': 22354450, 'created_at': datetime.datetime(2025, 4, 23, 19, 3), 'result': '0.06836334816532279', 'result_long': None, 'result_double': None}] Qualite : 0.06836334816532279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354450 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}" where mtr_portfolio_id = 22354450 and dashboard_run_id = 1751210 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`=22354450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060570, 0.06836334816532279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_23-04-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, '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 = 22355072 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': 2754247, 'mtr_portfolio_id': 22355072, 'created_at': datetime.datetime(2025, 4, 23, 19, 16, 31), 'result': '0.07034225435993269', 'result_long': None, 'result_double': None}] Qualite : 0.07034225435993269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355072 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}" where mtr_portfolio_id = 22355072 and dashboard_run_id = 1751210 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`=22355072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060571, 0.07034225435993269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_23-04-2025_19_16_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, '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 = 22355885 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': 2754300, 'mtr_portfolio_id': 22355885, 'created_at': datetime.datetime(2025, 4, 23, 19, 32, 59), 'result': '0.07312940830385102', 'result_long': None, 'result_double': None}] Qualite : 0.07312940830385102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}" where mtr_portfolio_id = 22355885 and dashboard_run_id = 1751210 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`=22355885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060572, 0.07312940830385102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_23-04-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, '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 = 22356488 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': 2754350, 'mtr_portfolio_id': 22356488, 'created_at': datetime.datetime(2025, 4, 23, 19, 48, 57), 'result': '0.09260684401074976', 'result_long': None, 'result_double': None}] Qualite : 0.09260684401074976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22356488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_23-04-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22356488 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_23-04-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}" where mtr_portfolio_id = 22356488 and dashboard_run_id = 1751210 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`=22356488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060573, 0.09260684401074976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_23-04-2025_19_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, '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 = 22359573 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': 2754740, 'mtr_portfolio_id': 22359573, 'created_at': datetime.datetime(2025, 4, 23, 22, 2, 31), 'result': '0.11215870316230325', 'result_long': None, 'result_double': None}] Qualite : 0.11215870316230325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22359573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22359573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}" where mtr_portfolio_id = 22359573 and dashboard_run_id = 1751210 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`=22359573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060574, 0.11215870316230325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, '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 = 22360340 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': 2754872, 'mtr_portfolio_id': 22360340, 'created_at': datetime.datetime(2025, 4, 23, 22, 17, 1), 'result': '0.041548315411460035', 'result_long': None, 'result_double': None}] Qualite : 0.041548315411460035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22360340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22360340 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}" where mtr_portfolio_id = 22360340 and dashboard_run_id = 1751210 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`=22360340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060575, 0.041548315411460035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_23-04-2025_22_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, '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 = 22361301 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': 2754936, 'mtr_portfolio_id': 22361301, 'created_at': datetime.datetime(2025, 4, 23, 22, 35), 'result': '0.009978512216599714', 'result_long': None, 'result_double': None}] Qualite : 0.009978512216599714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361301 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}" where mtr_portfolio_id = 22361301 and dashboard_run_id = 1751210 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`=22361301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060576, 0.009978512216599714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, '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 = 22361872 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': 2754971, 'mtr_portfolio_id': 22361872, 'created_at': datetime.datetime(2025, 4, 23, 22, 46, 57), 'result': '0.24777382948637755', 'result_long': None, 'result_double': None}] Qualite : 0.24777382948637755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361872 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, 'pht': 3726}}" where mtr_portfolio_id = 22361872 and dashboard_run_id = 1751210 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`=22361872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10060577, 0.24777382948637755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, '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 (22325236,22325613,22325942,22326303,22326686,22327416,22327827,22328173,22328867,22329762,22330414,22331203,22331661,22332458,22333179,22334033,22336354,22337144,22337891,22338640,22339201,22339852,22340451,22341308,22341945,22342537,22342994,22348035,22348525,22349010,22349913,22350703,22351746,22353065,22353503,22354290,22354450,22355072,22355885,22356488,22359573,22360340,22361301,22361872) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,), (1352915045,), (1352915052,), (1352915057,), (1352915062,), (1352915099,), (1352915100,), (1352915101,), (1352915102,), (1352915103,), (1352915136,), (1352915139,), (1352915141,), (1352915143,), (1352915144,), (1352915175,), (1352915176,), (1352915177,), (1352915219,), (1352915221,), (1352915226,), (1352915231,), (1352915232,), (1352915233,), (1352915279,), (1352915280,), (1352915281,), (1352915282,), (1352915307,), (1352915308,), (1352915309,), (1352915334,), (1352915336,), (1352915337,), (1352915338,), (1352915361,), (1352915362,), (1352915402,), (1352915404,), (1352915443,), (1352915444,), (1352915446,), (1352915447,), (1352915448,), (1352915450,), (1352915463,), (1352915464,), (1352915466,), (1352915493,), (1352915496,), (1352915497,), (1352915498,), (1352915500,), (1352915526,), (1352915527,), (1352915528,), (1352915529,), (1352915559,), (1352915561,), (1352915563,), (1352915564,), (1352915565,), (1352915568,), (1352915628,), (1352915622,), (1352915623,), (1352915624,), (1352915627,), (1352915646,), (1352915647,), (1352915648,), (1352915690,), (1352915691,), (1352915692,), (1352915693,), (1352915737,), (1352915740,), (1352915742,), (1352915750,), (1352915752,), (1352915753,), (1352915775,), (1352915776,), (1352915777,), (1352915778,), (1352915806,), (1352915808,), (1352915809,), (1352915810,), (1352915812,), (1352915816,), (1352915842,), (1352915845,), (1352915846,), (1352915847,), (1352915896,), (1352915898,), (1352915902,), (1352915906,), (1352915907,), (1352915909,), (1352915936,), (1352915937,), (1352915938,), (1352915939,), (1352915942,), (1352915972,), (1352915975,), (1352915977,), (1352916018,), (1352916030,), (1352916031,), (1352916032,), (1352916034,), (1352916037,), (1352916094,), (1352916099,), (1352916101,), (1352916103,), (1352916137,), (1352916138,), (1352916139,), (1352916140,), (1352916142,), (1352916194,), (1352916204,), (1352916207,), (1352916209,), (1352916212,), (1352916214,), (1352916243,), (1352916245,), (1352916247,), (1352916248,), (1352916310,), (1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,), (1352917891,), (1352917944,), (1352918010,), (1352918087,), (1352918134,), (1352918466,), (1352918346,), (1352918398,), (1352918431,), (1352918642,), (1352918670,), (1352918701,), (1352918726,), (1352918756,), (1352918871,), (1352918872,), (1352918873,), (1352918874,), (1352918876,), (1352918879,), (1352918909,), (1352918912,), (1352918914,), (1352918916,), (1352918953,), (1352918954,), (1352918956,), (1352918957,), (1352918961,), (1352918964,), (1352918989,), (1352918992,), (1352918995,), (1352918997,), (1352919024,), (1352919025,), (1352919061,), (1352919064,), (1352919067,), (1352919072,), (1352919075,), (1352919120,), (1352919121,), (1352919122,), (1352919123,), (1352919125,), (1352919128,), (1352919180,), (1352919189,), (1352919193,), (1352919197,), (1352919202,), (1352919254,), (1352919257,), (1352919258,), (1352919259,), (1352919260,), (1352919262,), (1352919317,), (1352919319,), (1352919325,), (1352919363,), (1352919364,), (1352919365,), (1352919366,), (1352919367,), (1352919370,), (1352919417,), (1352919420,), (1352919422,), (1352919424,), (1352919426,), (1352919429,), (1352919476,), (1352919477,), (1352919479,), (1352919480,), (1352919483,), (1352919543,), (1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,), (1352921702,), (1352921706,), (1352921708,), (1352921710,), (1352921713,), (1352921716,), (1352921752,), (1352921753,), (1352921783,), (1352921785,), (1352921786,), (1352921787,), (1352921816,), (1352921820,), (1352921822,), (1352921864,), (1352921851,), (1352921854,), (1352921857,), (1352921859,), (1352921861,), (1352921892,), (1352921895,), (1352921897,), (1352921899,), (1352921929,), (1352921930,), (1352921931,), (1352921932,), (1352921933,), (1352921972,), (1352921974,), (1352921976,), (1352921978,), (1352921981,), (1352921983,), (1352922010,), (1352922012,), (1352922013,), (1352922014,), (1352922016,), (1352922063,), (1352922064,), (1352922066,), (1352922068,), (1352922094,), (1352922097,), (1352922099,), (1352922101,), (1352922104,), (1352922107,), (1352922139,), (1352922141,), (1352922142,), (1352922143,), (1352922192,), (1352922197,), (1352922198,), (1352922199,), (1352922200,), (1352922233,), (1352922236,), (1352922240,), (1352922243,), (1352922246,), (1352922248,), (1352922298,), (1352922301,), (1352922302,), (1352922656,), (1352922659,), (1352922661,), (1352922683,), (1352922698,), (1352922755,), (1352922757,), (1352922759,), (1352922761,), (1352922766,), (1352922769,), (1352923825,), (1352923859,), (1352923869,), (1352924869,), (1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,), (1352928961,), (1352928964,), (1352928968,), (1352928972,), (1352928977,), (1352928981,), (1352929029,), (1352929031,), (1352929034,), (1352929057,), (1352929066,), (1352929135,), (1352929140,), (1352929161,), (1352929212,), (1352929241,), (1352929273,), (1352929358,), (1352929364,), (1352929371,), (1352929389,), (1352929785,), (1352929811,), (1352929823,), (1352929829,), (1352929834,), (1352929858,), (1352930044,), (1352930057,), (1352930071,), (1352930236,), (1352930243,), (1352930247,), (1352930253,), (1352930266,), (1352930300,), (1352930474,), (1352930479,), (1352930486,), (1352930488,), (1352930693,), (1352930708,), (1352930712,), (1352930715,), (1352930719,), (1352930724,), (1352930886,), (1352930839,), (1352930853,), (1352930870,), (1352930882,), (1352931172,), (1352931193,), (1352931227,), (1352931249,), (1352931364,), (1352931391,), (1352931403,), (1352931406,), (1352931409,), (1352931412,), (1352931444,), (1352931458,), (1352931475,), (1352931482,), (1352931495,), (1352931607,), (1352931654,), (1352931850,), (1352931951,), (1352931969,), (1352932152,), (1352932192,), (1352932229,), (1352932255,), (1352932260,), (1352932300,), (1352932302,), (1352932304,), (1352932307,), (1352932312,), (1352932320,), (1352932377,), (1352932395,), (1352932429,), (1352932583,), (1352932586,), (1352932590,), (1352932593,), (1352932598,), (1352932609,), (1352932774,), (1352932789,), (1352932829,), (1352932867,), (1352932973,), (1352932977,), (1352932982,), (1352933012,), (1352933050,), (1352933076,), (1352933358,), (1352933407,), (1352933459,), (1352933481,), (1352933484,), (1352933792,), (1352933800,), (1352933805,), (1352933839,), (1352933962,), (1352934001,), (1352934029,), (1352934050,), (1352934053,), (1352934056,), (1352934106,), (1352934133,), (1352934185,), (1352934459,), (1352934446,), (1352934452,), (1352934455,), (1352934456,), (1352934532,), (1352934538,), (1352934543,), (1352934547,), (1352934551,), (1352934554,), (1352934596,), (1352934599,), (1352934601,), (1352934603,), (1352934796,), (1352934848,), (1352934949,), (1352934988,), (1352935045,), (1352935325,), (1352935346,), (1352935359,), (1352935386,), (1352935432,), (1352935461,), (1352935528,), (1352935531,), (1352935614,), (1352935620,), (1352935626,), (1352935631,), (1352935636,), (1352935644,), (1352935726,), (1352935741,), (1352935750,), (1352935762,), (1352935796,), (1352935809,), (1352936013,), (1352936034,), (1352936045,), (1352936823,), (1352937660,), (1352937329,), (1352937636,), (1352937639,), (1352937651,), (1352937764,), (1352937835,), (1352937839,), (1352937847,), (1352937878,), (1352937908,), (1352938024,), (1352938035,), (1352938039,), (1352938080,), (1352938083,), (1352938085,), (1352938094,), (1352938107,), (1352938141,), (1352938144,), (1352938148,), (1352938152,), (1352938155,), (1352938160,), (1352938191,), (1352938195,), (1352938199,), (1352938203,), (1352938206,), (1352938251,), (1352938258,), (1352938373,), (1352938406,), (1352938659,), (1352940413,), (1352940365,), (1352941249,), (1352941277,), (1352941899,), (1352941927,), (1352941953,), (1352941978,), (1352941989,), (1352942080,), (1352942081,), (1352942084,), (1352942086,), (1352942357,), (1352942525,), (1352942530,), (1352942536,), (1352942568,), (1352942595,), (1352942790,), (1352942827,), (1352942992,), (1352943026,), (1352943060,), (1352943132,), (1352943139,), (1352943160,), (1352943168,), (1352943171,), (1352943371,), (1352943388,), (1352943403,), (1352943423,), (1352943631,), (1352943633,), (1352943636,), (1352943679,), (1352943688,), (1352943694,), (1352943889,), (1352943891,), (1352943892,), (1352943894,), (1352943896,), (1352943901,), (1352943953,), (1352943956,), (1352943962,), (1352944104,), (1352944106,), (1352944521,), (1352944566,), (1352944569,), (1352944595,), (1352944829,), (1352944866,), (1352944908,), (1352944909,), (1352944915,), (1352945129,), (1352945094,), (1352945118,), (1352945125,), (1352945321,), (1352945325,), (1352945343,), (1352945345,), (1352945358,), (1352945364,), (1352945438,), (1352945441,), (1352945450,), (1352945456,), (1352945461,), (1352945569,), (1352945577,), (1352945755,), (1352945758,), (1352945761,), (1352945764,), (1352945767,), (1352945803,), (1352945963,), (1352945977,), (1352945979,), (1352945981,), (1352945983,), (1352945987,), (1352946233,), (1352946243,), (1352946250,), (1352946255,), (1352946540,), (1352946703,), (1352946715,), (1352946728,), (1352946731,), (1352946793,), (1352946798,), (1352946807,), (1352946810,), (1352946811,), (1352946869,), (1352946873,), (1352946878,), (1352946880,), (1352947085,), (1352947086,), (1352947088,), (1352947090,), (1352947221,), (1352947226,), (1352947235,), (1352947294,), (1352947296,), (1352947322,), (1352947392,), (1352947394,), (1352947397,), (1352947400,), (1352947405,), (1352947451,), (1352947461,), (1352947760,), (1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,), (1352948761,), (1352948765,), (1352948833,), (1352948880,), (1352948889,), (1352948983,), (1352948989,), (1352948992,), (1352948994,), (1352948996,), (1352949037,), (1352949038,), (1352949040,), (1352949042,), (1352949044,), (1352949324,), (1352949398,), (1352949447,), (1352949490,), (1352949547,), (1352949555,), (1352949873,), (1352949884,), (1352949899,), (1352949927,), (1352950208,), (1352950278,), (1352950309,), (1352950320,), (1352950326,), (1352950331,), (1352950493,), (1352950497,), (1352950508,), (1352950516,), (1352950525,), (1352950836,), (1352950789,), (1352950822,), (1352950831,), (1352950983,), (1352951003,), (1352951028,), (1352951061,), (1352951080,), (1352951092,), (1352951311,), (1352951353,), (1352951389,), (1352951425,), (1352952499,), (1352952532,), (1352952576,), (1352952639,), (1352952671,), (1352952702,), (1352952792,), (1352952801,), (1352952842,), (1352952886,), (1352952940,), (1352953003,), (1352953217,), (1352953284,), (1352953334,), (1352953367,), (1352953520,), (1352953579,), (1352953638,), (1352953691,), (1352953740,), (1352953786,), (1352954734,), (1352954740,), (1352954743,), (1352954755,), (1352954934,), (1352954942,), (1352954964,), (1352955145,), (1352955376,), (1352955385,), (1352955574,), (1352955579,), (1352955582,), (1352955661,), (1352955811,), (1352955943,), (1352955949,), (1352955953,), (1352955957,), (1352955989,), (1352955992,), (1352955995,), (1352955999,), (1352956085,), (1352956160,), (1352956186,), (1352956212,), (1352957185,), (1352957220,), (1352957250,), (1352957283,), (1352957404,), (1352957425,), (1352959727,), (1352971452,), (1352971456,), (1352971458,), (1352971621,), (1352971655,), (1352971690,), (1352971740,), (1352971801,), (1352971999,), (1352972747,), (1352972756,), (1352972776,), (1352972780,), (1352972828,), (1352973500,), (1352973532,), (1352973642,), (1352973690,), (1352973820,), (1352974131,), (1352974154,), (1352974198,), (1352974234,), (1352974285,), (1352974323,), (1352974518,), (1352974551,), (1352974579,), (1352974618,), (1352975052,), (1352975087,), (1352975113,), (1352975140,), (1352975169,), (1352975200,), (1352975496,), (1352975502,), (1352975518,), (1352975525,), (1352975531,), (1352975785,), (1352975812,), (1352975840,), (1352975879,), (1352975934,), (1352976201,), (1352976210,), (1352976240,), (1352976270,), (1352976619,), (1352976630,), (1352976639,), (1352976702,), (1352976808,), (1352976920,), (1352977563,), (1352977638,), (1352977725,), (1352977763,), (1352977805,), (1352977837,), (1352978122,), (1352978126,), (1352978140,), (1352978349,), (1352978412,), (1352978449,), (1352978476,), (1352978488,), (1352978549,), (1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,), (1352982939,), (1352982995,), (1352983640,), (1352983669,), (1352983739,), (1352983818,), (1352983909,), (1352983994,), (1352984875,), (1352984947,), (1352985009,), (1352985051,), (1352985150,), (1352985191,), (1352985405,), (1352985412,), (1352985415,), (1352985420,), (1352985473,), (1352985477,), (1352985480,), (1352985483,), (1352985585,), (1352985588,), (1352985591,), (1352985594,), (1352985598,), (1352985600,), (1352985666,), (1352985671,), (1352985675,), (1352985681,), (1352985695,), (1352985723,), (1352986027,), (1352986030,), (1352986032,), (1352986034,), (1352986103,), (1352986115,), (1352986119,), (1352986123,), (1352986128,), (1352986130,), (1352986195,), (1352986201,), (1352986205,), (1352986209,), (1352986422,), (1352986434,), (1352986438,), (1352986442,), (1352986445,), (1352986515,), (1352986519,), (1352986525,), (1352986528,), (1352986530,), (1352986622,), (1352986644,), (1352986647,), (1352986651,), (1352986895,), (1352986904,), (1352986913,), (1352986948,), (1352986991,), (1352987037,), (1352987164,), (1352987168,), (1352987172,), (1352987176,), (1352987179,), (1352987183,), (1352987243,), (1352987240,), (1352987533,), (1352987536,), (1352987546,), (1352987549,), (1352987565,), (1352987730,), (1352987749,), (1352987753,), (1352987773,), (1352987804,), (1352987820,), (1352987863,), (1352987866,), (1352987868,), (1352987870,), (1352987999,), (1352988003,), (1352988007,), (1352988015,), (1352988023,), (1352988027,), (1352988140,), (1352988178,), (1352988198,), (1352988203,), (1352988487,), (1352988490,), (1352988951,), (1352988955,), (1352988959,), (1352988988,), (1352989006,), (1352989012,), (1352989085,), (1352989088,), (1352989092,), (1352989095,), (1352989140,), (1352989142,), (1352989144,), (1352989146,), (1352989149,), (1352989438,), (1352989444,), (1352989455,), (1352989462,), (1352989515,), (1352989517,), (1352989729,), (1352989949,), (1352989955,), (1352990077,), (1352990029,), (1352990072,), (1352990192,), (1352990194,), (1352990213,), (1352990366,), (1352990369,), (1352990371,), (1352990478,), (1352990483,), (1352990485,), (1352990487,), (1352990490,), (1352990494,), (1352990533,), (1352990535,), (1352990559,), (1352990562,), (1352990759,), (1352990798,), (1352990834,), (1352991280,), (1352991294,), (1352991298,), (1352991319,), (1352991325,), (1352991548,), (1352991633,), (1352991661,), (1352991696,), (1352991749,), (1352992436,), (1352992554,), (1352992601,), (1352992637,), (1352992949,), (1352992956,), (1352992962,), (1352992967,), (1352992974,), (1352993015,), (1352993027,), (1352993032,), (1352993038,), (1352993162,), (1352993211,), (1352993246,), (1352993273,), (1352993383,), (1352993389,), (1352993395,), (1352993399,), (1352993404,), (1352993464,), (1352993469,), (1352993472,), (1352993475,), (1352993481,), (1352993487,), (1352993603,), (1352993607,), (1352993614,), (1352993624,), (1352993631,), (1352993682,), (1352993665,), (1352993675,), (1352993781,), (1352993786,), (1352993790,), (1352993795,), (1352993798,), (1352993871,), (1352993878,), (1352993885,), (1352993886,), (1352993931,), (1352993935,), (1352993939,), (1352993956,), (1352993992,), (1352994346,), (1352994389,), (1352994412,), (1352994463,), (1352994466,), (1352994470,), (1352994474,), (1352994478,), (1352994536,), (1352994542,), (1352994544,), (1352994546,), (1352994613,), (1352994622,), (1352994627,), (1352994631,), (1352994745,), (1352994749,), (1352994753,), (1352994796,), (1352994800,), (1352994944,), (1352994990,), (1352994993,), (1352994998,), (1352995001,), (1352995007,), (1352995010,), (1352995055,), (1352995077,), (1352995082,), (1352995085,), (1352995156,), (1352995161,), (1352995167,), (1352995171,), (1352995175,), (1352995943,), (1352995977,), (1352996039,), (1352996210,), (1352996240,), (1352996272,), (1352996301,), (1352996334,), (1352996661,), (1352996528,), (1352996574,), (1352996605,), (1352996633,), (1352996656,), (1352996897,), (1352996952,), (1352997021,), (1352997080,), (1352997374,), (1352997378,), (1352997383,), (1352997388,), (1352997393,), (1352997397,), (1352997439,), (1352997443,), (1352997446,), (1352997449,), (1352997451,), (1352997488,), (1352997492,), (1352997496,), (1352997506,), (1352997511,), (1352997579,), (1352997582,), (1352997596,), (1352997661,), (1352997665,), (1352997669,), (1352997674,), (1352997679,), (1352997683,), (1352997710,), (1352997779,), (1352997783,), (1352997789,), (1352997797,), (1352997802,), (1352997931,), (1352997937,), (1352998160,), (1352998164,), (1352998176,), (1352998352,), (1352998426,), (1352998480,), (1352998540,), (1352998607,), (1352998759,), (1352998770,), (1352998783,), (1352998797,), (1352998918,), (1352998926,), (1352999164,), (1352999198,), (1352999731,), (1352999549,), (1352999640,), (1352999694,), (1353000334,), (1353000353,), (1353000360,), (1353000382,), (1353000387,), (1353000399,), (1353000528,), (1353000531,), (1353000537,), (1353000545,), (1353000632,), (1353000636,), (1353000645,), (1353000711,), (1353000714,), (1353000717,), (1353000735,), (1353000741,), (1353000884,), (1353000893,), (1353000897,), (1353000902,), (1353000908,), (1353000913,), (1353001190,), (1353001221,), (1353001249,), (1353001279,), (1353001732,), (1353001761,), (1353001791,), (1353001819,), (1353001846,), (1353002275,), (1353002303,), (1353002331,), (1353002353,), (1353002397,), (1353002401,), (1353002406,), (1353002559,), (1353002595,), (1353002623,), (1353002665,), (1353002708,), (1353002992,), (1353003007,), (1353003009,), (1353003015,), (1353003018,), (1353003164,), (1353003193,), (1353003224,), (1353003256,), (1353003310,), (1353003313,), (1353003315,), (1353003317,), (1353003320,), (1353003324,), (1353003531,), (1353003563,), (1353003596,), (1353003626,), (1353003659,), (1353003695,), (1353003798,), (1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,), (1353005005,), (1353005009,), (1353005016,), (1353005027,), (1353005032,), (1353005061,), (1353005144,), (1353005149,), (1353005153,), (1353005160,), (1353005279,), (1353005282,), (1353005833,), (1353006018,), (1353006044,), (1353006047,), (1353006050,), (1353006054,), (1353006654,), (1353006659,), (1353006664,), (1353006669,), (1353006676,), (1353007070,), (1353007072,), (1353007074,), (1353007077,), (1353007080,), (1353007244,), (1353007251,), (1353007256,), (1353007259,), (1353007523,), (1353007525,), (1353007527,), (1353007529,), (1353007530,), (1353007535,), (1353007583,), (1353007592,), (1353007599,), (1353007603,), (1353007644,), (1353007646,), (1353007648,), (1353007650,), (1353007653,), (1353007658,), (1353007694,), (1353007698,), (1353007702,), (1353007706,), (1353007709,), (1353007758,), (1353007762,), (1353007765,), (1353007771,), (1353007776,), (1353007820,), (1353007828,), (1353007840,), (1353007850,), (1353007861,), (1353007891,), (1353008391,), (1353008439,), (1353008486,), (1353008702,), (1353008760,), (1353008815,), (1353008864,), (1353008937,), (1353009468,), (1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,), (1353076602,), (1353076665,), (1353077221,), (1353077224,), (1353077227,), (1353077228,), (1353078467,), (1353078494,), (1353078520,), (1353078549,), (1353078589,), (1353078617,), (1353078961,), (1353078994,), (1353079024,), (1353079052,), (1353079091,), (1353079123,), (1353079216,), (1353079225,), (1353079229,), (1353079231,), (1353079246,), (1353079380,), (1353079407,), (1353079435,), (1353079468,), (1353079498,), (1353079528,), (1353079744,), (1353079769,), (1353079891,), (1353079902,), (1353079905,), (1353079909,), (1353079913,), (1353079953,), (1353079973,), (1353079985,), (1353079990,), (1353079995,), (1353080041,), (1353080046,), (1353080050,), (1353080054,), (1353080101,), (1353080107,), (1353080113,), (1353080117,), (1353080123,), (1353080171,), (1353080176,), (1353080207,), (1353080299,), (1353080674,), (1353080661,), (1353080664,), (1353080667,), (1353080671,), (1353080738,), (1353080740,), (1353080742,), (1353080744,), (1353080810,), (1353080813,), (1353080816,), (1353080870,), (1353080873,), (1353080876,), (1353080920,), (1353080923,), (1353080926,), (1353080973,), (1353080977,), (1353080978,), (1353080984,), (1353081006,), (1353081019,), (1353081086,), (1353081089,), (1353081091,), (1353081094,), (1353081191,), (1353081194,), (1353081198,), (1353081202,), (1353081208,), (1353081211,), (1353081268,), (1353081272,), (1353081275,), (1353081277,), (1353081281,), (1353081319,), (1353081324,), (1353081330,), (1353081333,), (1353081336,), (1353081386,), (1353081389,), (1353081392,), (1353081394,), (1353081436,), (1353081439,), (1353081444,), (1353081449,), (1353081499,), (1353081504,), (1353081509,), (1353081513,), (1353081519,), (1353081526,), (1353081598,), (1353081583,), (1353081587,), (1353081593,), (1353082009,), (1353082028,), (1353082032,), (1353082057,), (1353082062,), (1353082080,), (1353082150,), (1353082153,), (1353082158,), (1353082161,), (1353082165,), (1353082170,), (1353082208,), (1353082212,), (1353082216,), (1353082258,), (1353082260,), (1353082266,), (1353082270,), (1353082276,), (1353082283,), (1353082471,), (1353082487,), (1353082502,), (1353082506,), (1353082537,), (1353082647,), (1353082726,), (1353082729,), (1353082733,), (1353082753,), (1353082871,), (1353082875,), (1353082878,), (1353082903,), (1353082936,), (1353082938,), (1353083102,), (1353083130,), (1353083159,), (1353083480,), (1353083497,), (1353083529,), (1353083541,), (1353083546,), (1353083550,), (1353083589,), (1353083593,), (1353083597,), (1353083601,), (1353083679,), (1353083691,), (1353083701,), (1353083716,), (1353083735,), (1353083741,), (1353083985,), (1353084044,), (1353084077,), (1353084106,), (1353084326,), (1353084328,), (1353084335,), (1353084338,), (1353084376,), (1353084426,), (1353084859,), (1353084890,), (1353084922,), (1353084971,), (1353085001,), (1353085683,), (1353085654,), (1353085658,), (1353085661,), (1353085663,), (1353086633,), (1353086649,), (1353087006,), (1353087051,), (1353087079,), (1353087091,), (1353087096,), (1353087730,), (1353087758,), (1353087813,), (1353087816,), (1353087839,), (1353087867,), (1353087896,), (1353088130,), (1353088144,), (1353088154,), (1353088157,), (1353088161,), (1353088329,), (1353088337,), (1353088342,), (1353088344,), (1353088378,), (1353088381,), (1353088389,), (1353088393,), (1353088396,), (1353088467,), (1353088480,), (1353088496,), (1353088508,), (1353088513,), (1353088525,), (1353089469,), (1353089517,), (1353089551,), (1353090026,), (1353090010,), (1353090021,), (1353090420,), (1353090444,), (1353090453,), (1353090461,), (1353090487,), (1353090540,), (1353090923,), (1353090934,), (1353090944,), (1353090976,), (1353091004,), (1353091018,), (1353091110,), (1353091122,), (1353091126,), (1353091158,), (1353091163,), (1353091174,), (1353091179,), (1353091207,), (1353091238,), (1353091390,), (1353091394,), (1353091396,), (1353091405,), (1353091407,), (1353091444,), (1353091448,), (1353091461,), (1353091468,), (1353091649,), (1353091699,), (1353091747,), (1353091797,), (1353091861,), (1353091925,), (1353092332,), (1353092372,), (1353092403,), (1353092430,), (1353092457,), (1353092501,), (1353092958,), (1353093036,), (1353093400,), (1353093410,), (1353093425,), (1353093892,), (1353093946,), (1353094584,), (1353094617,), (1353094644,), (1353094667,), (1353094682,), (1353095214,), (1353095289,), (1353095371,), (1353095429,), (1353095446,), (1353095636,), (1353095605,), (1353096830,), (1353097084,), (1353097095,), (1353097131,), (1353097508,), (1353097538,), (1353097568,), (1353097609,), (1353097648,), (1353097682,), (1353097875,), (1353097882,), (1353097886,), (1353098219,), (1353098248,), (1353098297,), (1353098314,), (1353098336,), (1353098341,), (1353098541,), (1353098593,), (1353098618,), (1353098648,), (1353098718,), (1353098764,), (1353098969,), (1353098976,), (1353098990,), (1353099002,), (1353099125,), (1353099155,), (1353099190,), (1353099237,), (1353099268,), (1353099295,), (1353099695,), (1353099726,), (1353099777,), (1353099781,), (1353099791,), (1353100064,), (1353100100,), (1353100141,), (1353100144,), (1353100423,), (1353100442,), (1353100471,), (1353100472,), (1353100476,), (1353100488,), (1353100517,), (1353100526,), (1353100530,), (1353100543,), (1353100643,), (1353100647,), (1353100652,), (1353102366,), (1353111678,), (1353111710,), (1353111738,), (1353111778,), (1353111817,), (1353111848,), (1353112060,), (1353112063,), (1353112066,), (1353112069,), (1353112499,), (1353113056,), (1353113077,), (1353113082,), (1353113084,), (1353113088,), (1353113116,), (1353113120,), (1353113124,), (1353113128,), (1353113131,), (1353113287,), (1353113318,), (1353113350,), (1353113378,), (1353113408,), (1353113447,), (1353113546,), (1353113550,), (1353113553,), (1353113557,), (1353113562,), (1353113611,), (1353113616,), (1353113623,), (1353113635,), (1353113638,), (1353113685,), (1353113700,), (1353113705,), (1353113710,), (1353113714,), (1353113750,), (1353113762,), (1353113779,), (1353113788,), (1353113794,), (1353113810,), (1353113872,), (1353113879,), (1353113885,), (1353113896,), (1353114185,), (1353114189,), (1353114193,), (1353114206,), (1353114230,), (1353114243,), (1353114298,), (1353114302,), (1353114307,), (1353114312,), (1353114378,), (1353114383,), (1353114388,), (1353114394,), (1353114659,), (1353114581,), (1353114591,), (1353114619,), (1353114646,), (1353114654,), (1353114949,), (1353114976,), (1353115047,), (1353115133,), (1353115138,), (1353115173,), (1353115194,), (1353115204,), (1353115229,), (1353115254,), (1353115356,), (1353115366,), (1353115370,), (1353115380,), (1353115410,), (1353115422,), (1353115542,), (1353115569,), (1353115586,), (1353115976,), (1353116007,), (1353116033,), (1353116089,), (1353116148,), (1353116371,), (1353116374,), (1353116377,), (1353116379,), (1353116381,), (1353116435,), (1353116438,), (1353116442,), (1353116445,), (1353116449,), (1353116451,), (1353116493,), (1353116504,), (1353116509,), (1353116511,), (1353116564,), (1353116568,), (1353116573,), (1353116577,), (1353116582,), (1353116589,), (1353116645,), (1353116649,), (1353116652,), (1353116653,), (1353116655,), (1353116819,), (1353116855,), (1353116858,), (1353116862,), (1353116866,), (1353116886,), (1353116988,), (1353116991,), (1353116993,), (1353116996,), (1353117050,), (1353117066,), (1353117095,), (1353117126,), (1353117154,), (1353117186,), (1353117410,), (1353117413,), (1353117415,), (1353117421,), (1353117426,), (1353117473,), (1353118535,), (1353118804,), (1353118813,), (1353118873,), (1353118876,), (1353118878,), (1353118955,), (1353118958,), (1353118963,), (1353118966,), (1353118971,), (1353119023,), (1353119234,), (1353119244,), (1353119247,), (1353119274,), (1353119309,), (1353119349,), (1353119464,), (1353119495,), (1353119521,), (1353119524,), (1353119527,), (1353119594,), (1353119597,), (1353119601,), (1353119604,), (1353119642,), (1353119662,), (1353119664,), (1353119670,), (1353119676,), (1353119758,), (1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,), (1353120589,), (1353120591,), (1353120593,), (1353120596,), (1353120708,), (1353120719,), (1353120782,), (1353120785,), (1353120793,), (1353120802,), (1353120809,), (1353120855,), (1353120867,), (1353120871,), (1353120872,), (1353120875,), (1353120878,), (1353120963,), (1353120967,), (1353120971,), (1353120975,), (1353120979,), (1353121023,), (1353121030,), (1353121032,), (1353121255,), (1353121263,), (1353121267,), (1353121271,), (1353121276,), (1353121437,), (1353121445,), (1353121451,), (1353121458,), (1353121469,), (1353122341,), (1353122166,), (1353122223,), (1353122282,), (1353122925,), (1353122976,), (1353123036,), (1353123081,), (1353123111,), (1353123151,), (1353123576,), (1353123649,), (1353123733,), (1353123821,), (1353123910,), (1353124386,), (1353124620,), (1353124658,), (1353124695,), (1353125059,), (1353125088,), (1353125125,), (1353125143,), (1353125149,), (1353125180,), (1353125326,), (1353125367,), (1353125404,), (1353127014,), (1353127047,), (1353127081,), (1353127113,), (1353127146,), (1353127176,), (1353127742,), (1353127840,), (1353127887,), (1353127920,), (1353128020,), (1353128037,), (1353128060,), (1353128073,), (1353128086,), (1353128090,), (1353128429,), (1353128534,), (1353128643,), (1353128751,), (1353128869,), (1353128980,), (1353129287,), (1353129337,), (1353129383,), (1353129453,), (1353129879,), (1353129909,), (1353129934,), (1353129973,), (1353130033,), (1353130084,), (1353130390,), (1353130396,), (1353130402,), (1353130406,), (1353130633,), (1353130639,), (1353130644,), (1353130654,), (1353130681,), (1353130697,), (1353130862,), (1353130868,), (1353130873,), (1353130876,), (1353130881,), (1353131055,), (1353131013,), (1353131017,), (1353131020,), (1353131025,), (1353131193,), (1353131201,), (1353131206,), (1353131211,), (1353131227,), (1353131237,), (1353131329,), (1353131333,), (1353131346,), (1353131352,), (1353131396,), (1353131405,), (1353131413,), (1353131419,), (1353131424,), (1353131446,), (1353131506,), (1353131517,), (1353131522,), (1353131528,), (1353131535,), (1353131539,), (1353131576,), (1353131582,), (1353131592,), (1353131599,), (1353131611,), (1353131686,), (1353131689,), (1353131691,), (1353131695,), (1353131702,), (1353131712,), (1353131750,), (1353131755,), (1353131763,), (1353131766,), (1353131789,), (1353131798,), (1353131967,), (1353131972,), (1353131981,), (1353131994,), (1353131998,), (1353132032,), (1353132038,), (1353132043,), (1353132048,), (1353132052,), (1353132134,), (1353132137,), (1353132149,), (1353132159,), (1353132238,), (1353132244,), (1353132249,), (1353132268,), (1353132275,), (1353132279,), (1353132308,), (1353132313,), (1353132317,), (1353132322,), (1353132327,), (1353132417,), (1353132498,), (1353132602,), (1353132557,), (1353132582,), (1353132586,), (1353132591,), (1353132597,), (1353132655,), (1353132660,), (1353132665,), (1353132670,), (1353132686,), (1353132789,), (1353132936,), (1353132975,), (1353133006,), (1353133038,), (1353133070,), (1353133215,), (1353133219,), (1353133223,), (1353133226,), (1353133765,), (1353133810,), (1353133844,), (1353133849,), (1353133854,), (1353133987,), (1353134004,), (1353134036,), (1353134070,), (1353134421,), (1353134449,), (1353134479,), (1353134490,), (1353134495,), (1353134646,), (1353134664,), (1353134680,), (1353134769,), (1353135009,), (1353135031,), (1353135035,), (1353135039,), (1353135042,), (1353135046,), (1353135085,), (1353135091,), (1353135350,), (1353135360,), (1353135371,), (1353135392,), (1353135537,), (1353135609,), (1353135669,), (1353135675,), (1353135680,), (1353135825,), (1353135842,), (1353135845,), (1353135851,), (1353135866,), (1353136055,), (1353136060,), (1353163056,), (1353163053,), (1353163289,), (1353163457,), (1353163612,), (1353163719,), (1353163723,), (1353163767,), (1353163787,), (1353163790,), (1353163822,), (1353163828,), (1353164461,), (1353164468,), (1353164603,), (1353164608,), (1353164644,), (1353164648,), (1353164931,), (1353164963,), (1353165435,), (1353166256,), (1353166265,), (1353166465,), (1353166469,), (1353166516,), (1353166591,), (1353166595,), (1353166623,), (1353166864,), (1353166892,), (1353167146,), (1353167276,), (1353168141,), (1353168517,), (1353168521,), (1353169027,), (1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,), (1353177567,), (1353177600,), (1353177925,), (1353180426,), (1353180650,), (1353180683,), (1353181324,), (1353181604,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22342994]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353027723] map_info['map_portfolio_photo'] : {22342994: [1353027723, 1353012699, 1353012566, 1353012461, 1353012457, 1353012453, 1353012450, 1353012447, 1353012443, 1353012398, 1353012393, 1353012389, 1353012386, 1353012383, 1353012323, 1353012318, 1353012314, 1353012310, 1353012305, 1353012251, 1353012230, 1353012216, 1353012206, 1353012201, 1353011988, 1353011976, 1353011971, 1353011967, 1353011963, 1353011929, 1353011922, 1353011914, 1353011896, 1353011866, 1353011835, 1353011657, 1353011625, 1353011609, 1353011603, 1353011415, 1353011364, 1353011252, 1353011127, 1353011015, 1353010923, 1353010319, 1353010269, 1353010224, 1353010165, 1353010082, 1353010004, 1353009372, 1353009296]} final : True mtd_id 4302 list_pids : [1353027723] Looping around the photos to save general results len do output : 1 /22342994Didn'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, '2752869') ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22342994', 'None', None, None, None, None, '2752869'), ('4302', '22342994', '1353027723', None, None, None, None, None, '2752869')] time used for this insertion : 0.013122320175170898 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.667952537536621 time spend to save output : 0.013281106948852539 total time spend for step 5 : 2.6812336444854736 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 (2752869) 2.31user 2.87system 0:23.11elapsed 22%CPU (0avgtext+0avgdata 161264maxresident)k 99064inputs+20032outputs (447major+75929minor)pagefaults 0swaps