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 : 3686790 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 (2756507) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2756507) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376038 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2756507'] with mtr_portfolio_ids : ['22376038'] and first list_photo_ids : [] new path : /proc/3686790/ Name: python3 Umask: 0002 State: R (running) Tgid: 3686790 Ngid: 0 Pid: 3686790 PPid: 3686789 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3686790 NSpid: 3686790 NSpgid: 3685934 NSsid: 3685934 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97924 kB VmRSS: 97924 kB RssAnon: 59812 kB RssFile: 38112 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 144 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3686790', 'Ngid': '0', 'Pid': '3686790', 'PPid': '3686789', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3686790', 'NSpid': '3686790', 'NSpgid': '3685934', 'NSsid': '3685934', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97924 kB', 'VmRSS': '97924 kB', 'RssAnon': '59812 kB', 'RssFile': '38112 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '144'} ('datou_batch_current', '3686790', '1106840', '0', '1106840', '865588', '97924', b'', 'marlene', '2756507') 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 (22376038) 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 (2756507 ) ) 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 (22376038) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353362235, 'portfolio_id': 22376038}, {'photo_id': 1353309428, 'portfolio_id': 22376038}, {'photo_id': 1353309401, 'portfolio_id': 22376038}, {'photo_id': 1353309394, 'portfolio_id': 22376038}, {'photo_id': 1353309391, 'portfolio_id': 22376038}, {'photo_id': 1353309323, 'portfolio_id': 22376038}, {'photo_id': 1353309310, 'portfolio_id': 22376038}, {'photo_id': 1353309297, 'portfolio_id': 22376038}, {'photo_id': 1353309293, 'portfolio_id': 22376038}, {'photo_id': 1353309289, 'portfolio_id': 22376038}, {'photo_id': 1353309277, 'portfolio_id': 22376038}, {'photo_id': 1353309272, 'portfolio_id': 22376038}, {'photo_id': 1353309230, 'portfolio_id': 22376038}, {'photo_id': 1353309206, 'portfolio_id': 22376038}, {'photo_id': 1353309178, 'portfolio_id': 22376038}, {'photo_id': 1353309127, 'portfolio_id': 22376038}, {'photo_id': 1353309101, 'portfolio_id': 22376038}, {'photo_id': 1353309085, 'portfolio_id': 22376038}, {'photo_id': 1353309059, 'portfolio_id': 22376038}, {'photo_id': 1353309054, 'portfolio_id': 22376038}, {'photo_id': 1353309050, 'portfolio_id': 22376038}, {'photo_id': 1353309048, 'portfolio_id': 22376038}, {'photo_id': 1353309014, 'portfolio_id': 22376038}, {'photo_id': 1353308847, 'portfolio_id': 22376038}, {'photo_id': 1353308846, 'portfolio_id': 22376038}, {'photo_id': 1353308843, 'portfolio_id': 22376038}, {'photo_id': 1353308841, 'portfolio_id': 22376038}, {'photo_id': 1353308838, 'portfolio_id': 22376038}, {'photo_id': 1353308833, 'portfolio_id': 22376038}, {'photo_id': 1353308730, 'portfolio_id': 22376038}, {'photo_id': 1353308722, 'portfolio_id': 22376038}, {'photo_id': 1353308706, 'portfolio_id': 22376038}, {'photo_id': 1353308703, 'portfolio_id': 22376038}, {'photo_id': 1353308502, 'portfolio_id': 22376038}, {'photo_id': 1353308471, 'portfolio_id': 22376038}, {'photo_id': 1353308442, 'portfolio_id': 22376038}, {'photo_id': 1353308395, 'portfolio_id': 22376038}, {'photo_id': 1353308337, 'portfolio_id': 22376038}, {'photo_id': 1353308269, 'portfolio_id': 22376038}, {'photo_id': 1353307773, 'portfolio_id': 22376038}, {'photo_id': 1353307770, 'portfolio_id': 22376038}, {'photo_id': 1353307766, 'portfolio_id': 22376038}, {'photo_id': 1353307669, 'portfolio_id': 22376038}, {'photo_id': 1353307663, 'portfolio_id': 22376038}, {'photo_id': 1353307658, 'portfolio_id': 22376038}, {'photo_id': 1353307655, 'portfolio_id': 22376038}, {'photo_id': 1353307652, 'portfolio_id': 22376038}, {'photo_id': 1353307649, 'portfolio_id': 22376038}, {'photo_id': 1353307577, 'portfolio_id': 22376038}, {'photo_id': 1353307575, 'portfolio_id': 22376038}, {'photo_id': 1353307573, 'portfolio_id': 22376038}, {'photo_id': 1353307568, 'portfolio_id': 22376038}, {'photo_id': 1353307507, 'portfolio_id': 22376038}, {'photo_id': 1353307437, 'portfolio_id': 22376038}, {'photo_id': 1353307411, 'portfolio_id': 22376038}, {'photo_id': 1353307398, 'portfolio_id': 22376038}, {'photo_id': 1353307368, 'portfolio_id': 22376038}, {'photo_id': 1353307354, 'portfolio_id': 22376038}, {'photo_id': 1353306942, 'portfolio_id': 22376038}, {'photo_id': 1353306938, 'portfolio_id': 22376038}, {'photo_id': 1353306935, 'portfolio_id': 22376038}, {'photo_id': 1353306870, 'portfolio_id': 22376038}, {'photo_id': 1353306794, 'portfolio_id': 22376038}, {'photo_id': 1353306416, 'portfolio_id': 22376038}, {'photo_id': 1353306413, 'portfolio_id': 22376038}, {'photo_id': 1353306411, 'portfolio_id': 22376038}, {'photo_id': 1353306361, 'portfolio_id': 22376038}] map_portfolio_id_photo_id: {22376038: [1353362235, 1353309428, 1353309401, 1353309394, 1353309391, 1353309323, 1353309310, 1353309297, 1353309293, 1353309289, 1353309277, 1353309272, 1353309230, 1353309206, 1353309178, 1353309127, 1353309101, 1353309085, 1353309059, 1353309054, 1353309050, 1353309048, 1353309014, 1353308847, 1353308846, 1353308843, 1353308841, 1353308838, 1353308833, 1353308730, 1353308722, 1353308706, 1353308703, 1353308502, 1353308471, 1353308442, 1353308395, 1353308337, 1353308269, 1353307773, 1353307770, 1353307766, 1353307669, 1353307663, 1353307658, 1353307655, 1353307652, 1353307649, 1353307577, 1353307575, 1353307573, 1353307568, 1353307507, 1353307437, 1353307411, 1353307398, 1353307368, 1353307354, 1353306942, 1353306938, 1353306935, 1353306870, 1353306794, 1353306416, 1353306413, 1353306411, 1353306361]} ##### 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.02416706085205078 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 25 03:16:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22376038) 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 : 22376038 get user id for portfolio 22376038 get sub ptf for main ptf 22376038, type 3726 and hashtags ['mal_croppe', 'Carton_brun', 'environnement', 'cartonnette', 'plastique', 'flou', 'papier', 'kraft', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22376038 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','environnement','cartonnette','plastique','flou','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal')) 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`=22376038 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','environnement','cartonnette','plastique','flou','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22376038, 'sub_port_id': 22376147, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828330, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'autre_refus': {'main_port_id': 22376038, 'sub_port_id': 22376148, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828331, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'kraft': {'main_port_id': 22376038, 'sub_port_id': 22376149, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828332, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'plastique': {'main_port_id': 22376038, 'sub_port_id': 22376150, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828333, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'mal_croppe': {'main_port_id': 22376038, 'sub_port_id': 22376151, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828334, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'Carton_brun': {'main_port_id': 22376038, 'sub_port_id': 22376152, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828335, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'Carton_gris': {'main_port_id': 22376038, 'sub_port_id': 22376153, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828336, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'environnement': {'main_port_id': 22376038, 'sub_port_id': 22376154, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828337, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'metal': {'main_port_id': 22376038, 'sub_port_id': 22376155, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828338, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'cartonnette': {'main_port_id': 22376038, 'sub_port_id': 22376156, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828339, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'papier': {'main_port_id': 22376038, 'sub_port_id': 22376157, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828340, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}, 'flou': {'main_port_id': 22376038, 'sub_port_id': 22376158, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828341, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22376147 , 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=22376038 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 (22376147) result : ((1353307666,), (1353307667,), (1353307668,), (1353307670,), (1353307671,), (1353307733,), (1353308653,), (1353308654,), (1353308655,), (1353308656,), (1353308657,), (1353309511,), (1353309512,), (1353309514,), (1353309515,), (1353309603,), (1353309604,), (1353309605,), (1353309632,), (1353309665,), (1353309666,), (1353309679,), (1353309752,), (1353309827,), (1353309828,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376148 , 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=22376038 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 (22376148) result : ((1353307672,), (1353307673,), (1353307674,), (1353309609,), (1353309667,), (1353309680,), (1353309681,), (1353309848,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376149 , 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=22376038 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 (22376149) result : ((1353308362,), (1353319468,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376150 , 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=22376038 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 (22376150) result : ((1353309542,), (1353309618,), (1353309686,), (1353309765,), (1353309860,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376151 , 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=22376038 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 (22376151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376152 , 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=22376038 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 (22376152) result : ((1353307682,), (1353307683,), (1353307684,), (1353307685,), (1353307743,), (1353308339,), (1353308668,), (1353309534,), (1353309535,), (1353309536,), (1353309537,), (1353309538,), (1353309539,), (1353309676,), (1353309856,), (1353309857,), (1353319465,), (1353319466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376153 , 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=22376038 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 (22376153) result : ((1353307676,), (1353308321,), (1353308324,), (1353308663,), (1353309517,), (1353309518,), (1353309669,), (1353309670,), (1353309830,), (1353309831,), (1353309854,), (1353319462,), (1353319463,), (1353319464,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376154 , 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=22376038 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 (22376154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376155 , 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=22376038 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 (22376155) result : ((1353307745,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376156 , 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=22376038 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 (22376156) result : ((1353307679,), (1353307680,), (1353309522,), (1353309524,), (1353309526,), (1353309527,), (1353309532,), (1353309613,), (1353309614,), (1353309673,), (1353309674,), (1353309682,), (1353309683,), (1353309684,), (1353309833,), (1353309855,), (1353319303,), (1353319304,), (1353319305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376157 , 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=22376038 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 (22376157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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 22376158 , 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=22376038 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 (22376158) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22376038) result : ((1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,)) 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`=22376038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','environnement','cartonnette','plastique','flou','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal')) 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`=22376038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','environnement','cartonnette','plastique','flou','papier','kraft','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22376038, 'sub_port_id': 22376159, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828342, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'autre_refus': {'main_port_id': 22376038, 'sub_port_id': 22376160, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828343, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'kraft': {'main_port_id': 22376038, 'sub_port_id': 22376161, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828344, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'plastique': {'main_port_id': 22376038, 'sub_port_id': 22376162, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828345, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'mal_croppe': {'main_port_id': 22376038, 'sub_port_id': 22376163, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828346, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'Carton_brun': {'main_port_id': 22376038, 'sub_port_id': 22376164, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828347, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'Carton_gris': {'main_port_id': 22376038, 'sub_port_id': 22376165, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828348, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'environnement': {'main_port_id': 22376038, 'sub_port_id': 22376166, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828349, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'metal': {'main_port_id': 22376038, 'sub_port_id': 22376167, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828350, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'cartonnette': {'main_port_id': 22376038, 'sub_port_id': 22376168, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828351, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'papier': {'main_port_id': 22376038, 'sub_port_id': 22376169, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828352, 'last_updated_at': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 8, 49, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}, 'flou': {'main_port_id': 22376038, 'sub_port_id': 22376170, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14828353, 'last_updated_at': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 9, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 8, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22376170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22376158 lien utilise dans velours : https://www.fotonower.com/velours/22376159,22376160,22376161,22376162,22376163,22376164,22376165,22376166,22376167,22376168,22376169,22376170?tags=Teint_Dans_La_Masse,autre_refus,kraft,plastique,mal_croppe,Carton_brun,Carton_gris,environnement,metal,cartonnette,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22376038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353362235] map_info['map_portfolio_photo'] : {22376038: [1353362235, 1353309428, 1353309401, 1353309394, 1353309391, 1353309323, 1353309310, 1353309297, 1353309293, 1353309289, 1353309277, 1353309272, 1353309230, 1353309206, 1353309178, 1353309127, 1353309101, 1353309085, 1353309059, 1353309054, 1353309050, 1353309048, 1353309014, 1353308847, 1353308846, 1353308843, 1353308841, 1353308838, 1353308833, 1353308730, 1353308722, 1353308706, 1353308703, 1353308502, 1353308471, 1353308442, 1353308395, 1353308337, 1353308269, 1353307773, 1353307770, 1353307766, 1353307669, 1353307663, 1353307658, 1353307655, 1353307652, 1353307649, 1353307577, 1353307575, 1353307573, 1353307568, 1353307507, 1353307437, 1353307411, 1353307398, 1353307368, 1353307354, 1353306942, 1353306938, 1353306935, 1353306870, 1353306794, 1353306416, 1353306413, 1353306411, 1353306361]} final : False mtd_id 4302 list_pids : [1353362235] Looping around the photos to save general results len do output : 1 /22376038. 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, '2756507') ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507') 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, '22376038', "{'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158}", None, None, None, None, '2756507'), ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507')] time used for this insertion : 0.012955188751220703 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4409687519073486 time spend to save output : 0.013199567794799805 total time spend for step 1 : 1.4541683197021484 step2:final Fri Apr 25 03:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (22376038) 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 22376038 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353306416,1353306413,1353306411,1353306361,1353306942,1353306938,1353306935,1353306870,1353306794,1353307507,1353307437,1353307411,1353307398,1353307368,1353307354,1353307577,1353307575,1353307573,1353307568,1353307669,1353307663,1353307658,1353307655,1353307652,1353307649,1353307773,1353307770,1353307766,1353308502,1353308471,1353308442,1353308395,1353308337,1353308269,1353308730,1353308722,1353308706,1353308703,1353308847,1353308846,1353308843,1353308841,1353308838,1353308833,1353309059,1353309054,1353309050,1353309048,1353309014,1353309230,1353309206,1353309178,1353309127,1353309101,1353309085,1353309297,1353309293,1353309289,1353309277,1353309272,1353309323,1353309310,1353309401,1353309394,1353309391,1353309428,1353362235); 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([22376038]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353362235: ('0.04218582708402632',)} new output for save of step final : {1353362235: ('0.04218582708402632',)} [1353362235] map_info['map_portfolio_photo'] : {22376038: [1353362235, 1353309428, 1353309401, 1353309394, 1353309391, 1353309323, 1353309310, 1353309297, 1353309293, 1353309289, 1353309277, 1353309272, 1353309230, 1353309206, 1353309178, 1353309127, 1353309101, 1353309085, 1353309059, 1353309054, 1353309050, 1353309048, 1353309014, 1353308847, 1353308846, 1353308843, 1353308841, 1353308838, 1353308833, 1353308730, 1353308722, 1353308706, 1353308703, 1353308502, 1353308471, 1353308442, 1353308395, 1353308337, 1353308269, 1353307773, 1353307770, 1353307766, 1353307669, 1353307663, 1353307658, 1353307655, 1353307652, 1353307649, 1353307577, 1353307575, 1353307573, 1353307568, 1353307507, 1353307437, 1353307411, 1353307398, 1353307368, 1353307354, 1353306942, 1353306938, 1353306935, 1353306870, 1353306794, 1353306416, 1353306413, 1353306411, 1353306361]} final : False mtd_id 4302 list_pids : [1353362235] Looping around the photos to save general results len do output : 1 /1353362235.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, '2756507') ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507') 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', '22376038', '1353362235', '0.04218582708402632', None, None, None, None, '2756507')] time used for this insertion : 0.011416912078857422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07105612754821777 time spend to save output : 0.011603832244873047 total time spend for step 2 : 0.08265995979309082 step3:velours_tree Fri Apr 25 03:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22376038: [{'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158}]} input_args_next_step : {22376038: ()} output_args : {22376038: [{'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158}]} args : 22376038 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 : ({'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22376038) 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([22376038]) 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.3090333938598633 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.30908775329589844 step4:send_mail_cod Fri Apr 25 03:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1353362235: ('0.04218582708402632',)} input_args_next_step : {1353362235: ()} output_args : {1353362235: ('0.04218582708402632',)} args : 1353362235 depend.output_id : 0 complete output_args for input 3 : {22376038: [{'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158}]} input_args_next_step : {1353362235: ('0.04218582708402632',), 22376038: ()} output_args : {22376038: [{'Teint_Dans_La_Masse': 22376147, 'autre_refus': 22376148, 'kraft': 22376149, 'plastique': 22376150, 'mal_croppe': 22376151, 'Carton_brun': 22376152, 'Carton_gris': 22376153, 'environnement': 22376154, 'metal': 22376155, 'cartonnette': 22376156, 'papier': 22376157, 'flou': 22376158}]} args : 22376038 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.04218582708402632',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22376038) 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 (1353362235) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353362235 download finish for photo 1353362235 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_P22376038_25-04-2025_03_16_29.pdf 22376148 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=22376148 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353307672: '1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112452_0.png', 1353307673: '1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112456_0.png', 1353307674: '1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112548_0.png', 1353309609: '1745477861_3971549_1353307437_8ab7262714247f17d91789d927452b69_rle_crop_3767127444_0.png', 1353309667: '1745477891_752462_1353308841_7447b76ef3667f25d79fa024c4bfae08_rle_crop_3767129894_0.png', 1353309680: '1745478131_755291_1353309289_b9ef24dc5fa865ba96e77c67b996021a_rle_crop_3767130460_0.png', 1353309681: '1745478131_755291_1353309272_16ec4690c06f29e697a473b53f66b746_rle_crop_3767133527_0.png', 1353309848: '1745478014_753686_1353309085_113ef8ddd65253e56e4d44c0c1af9b26_rle_crop_3767141186_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/53f77218467c22bba86a57456de891da_53661265.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3fa463002f424153e82446efb99f7f57_78475919.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c2cc89cd1fe52c59bce914acca201285_77002743.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f8c36bf6c0722b297c98a1a9476ef926_16490966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/47d28da592b06679753b3793caf6b94c_52008616.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ce708cf82781ce6c8278f383637770d0_9278607.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e4b29b73faf1fd5a0d1f2b8d4c97d263_92392569.png change filename to text .imagette223761481745543789/ imagette223761481745543789/1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112452_0.png.png imagette223761481745543789/1745477891_752462_1353308841_7447b76ef3667f25d79fa024c4bfae08_rle_crop_3767129894_0.png.png imagette223761481745543789/1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112456_0.png.png imagette223761481745543789/1745478014_753686_1353309085_113ef8ddd65253e56e4d44c0c1af9b26_rle_crop_3767141186_0.png.png imagette223761481745543789/1745478131_755291_1353309272_16ec4690c06f29e697a473b53f66b746_rle_crop_3767133527_0.png.png imagette223761481745543789/1745478131_755291_1353309289_b9ef24dc5fa865ba96e77c67b996021a_rle_crop_3767130460_0.png.png imagette223761481745543789/1745477861_3971549_1353307437_8ab7262714247f17d91789d927452b69_rle_crop_3767127444_0.png.png imagette223761481745543789/1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112548_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/dfa9fcdfd9f0faa05e38fc2f03cf8ab0_56088995.png imagette223761481745543789 22376149 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=22376149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353308362: '1745477506_3964481_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113649_0.png', 1353319468: '1745479932_773523_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113649_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8981e18546f89f7b48cf1401309f0a21_4136657.png change filename to text .imagette223761491745543790/ imagette223761491745543790/1745477506_3964481_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113649_0.png.png imagette223761491745543790/1745479932_773523_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113649_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8981e18546f89f7b48cf1401309f0a21_39166967.png imagette223761491745543790 22376150 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=22376150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353309542: '1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127040_0.png', 1353309618: '1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129658_0.png', 1353309686: '1745478131_755291_1353309277_61567def6a28b8d95cadfe5c2eac5c5b_rle_crop_3767132410_0.png', 1353309765: '1745478252_756685_1353309310_89a7357945859820958d43a60e133ad6_rle_crop_3767130446_0.png', 1353309860: '1745478014_753686_1353309206_698ceaa9d6d8e2f922e3c5e650deb2d4_rle_crop_3767133483_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2002d2aca7e28b0681e9ee91ec211245_78584759.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/112b2a89c3d9c95d15ee47d23003be76_26145228.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f20a56f55c4f671555ffaac375e2fccb_60988611.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/60c7b661e336d329f484ac83dda996d4_99672575.png change filename to text .imagette223761501745543790/ imagette223761501745543790/1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129658_0.png.png imagette223761501745543790/1745478131_755291_1353309277_61567def6a28b8d95cadfe5c2eac5c5b_rle_crop_3767132410_0.png.png imagette223761501745543790/1745478252_756685_1353309310_89a7357945859820958d43a60e133ad6_rle_crop_3767130446_0.png.png imagette223761501745543790/1745478014_753686_1353309206_698ceaa9d6d8e2f922e3c5e650deb2d4_rle_crop_3767133483_0.png.png imagette223761501745543790/1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127040_0.png.png imagette223761511745543791/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/35b14ce47e2d229b52f5bff24943bee3_27361607.png imagette223761501745543790 22376151 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=22376151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223761511745543791 22376155 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=22376155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353307745: '1745477412_747071_1353306794_79243defed5a54b3623c8c327a23781c_rle_crop_3767113152_0.png'} change filename to text .imagette223761551745543791/ imagette223761551745543791/1745477412_747071_1353306794_79243defed5a54b3623c8c327a23781c_rle_crop_3767113152_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a1859f1c15eacfe04a3331eaa3273c0d_21071025.png imagette223761551745543791 22376156 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=22376156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353309673: '1745477891_752462_1353309059_e7c5511438683314c68cb457ebe0fea9_rle_crop_3767127824_0.png', 1353319305: '1745479871_773009_1353307766_0403c8ba688dcbfe8260a1208d010754_rle_crop_3767177512_0.png', 1353319304: '1745479871_773009_1353307766_0403c8ba688dcbfe8260a1208d010754_rle_crop_3767115730_0.png', 1353319303: '1745479871_773009_1353308502_d92b5e5f8df03ab0465684f552d2f581_rle_crop_3767177496_0.png', 1353309855: '1745478014_753686_1353309101_52625e33c0e664a6df84cdbf4ce0a947_rle_crop_3767141138_0.png', 1353309833: '1745478071_754804_1353309054_f272f8b20f5c9409656beef1daeb85e1_rle_crop_3767133428_0.png', 1353309684: '1745478131_755291_1353309272_16ec4690c06f29e697a473b53f66b746_rle_crop_3767133530_0.png', 1353309683: '1745478131_755291_1353309277_61567def6a28b8d95cadfe5c2eac5c5b_rle_crop_3767132408_0.png', 1353309682: '1745478131_755291_1353309289_b9ef24dc5fa865ba96e77c67b996021a_rle_crop_3767130459_0.png', 1353309674: '1745477891_752462_1353308841_7447b76ef3667f25d79fa024c4bfae08_rle_crop_3767129896_0.png', 1353307679: '1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112499_0.png', 1353309614: '1745477861_3971549_1353307411_070f7d5c5b84e515c3f58e3cc1d4276d_rle_crop_3767128185_0.png', 1353309613: '1745477861_3971549_1353307437_8ab7262714247f17d91789d927452b69_rle_crop_3767127446_0.png', 1353309532: '1745477772_750791_1353307652_3ee7efd58a2874c1e32d1e5b7aa90320_rle_crop_3767127787_0.png', 1353309527: '1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128623_0.png', 1353309526: '1745477725_3921827_1353308337_731574d9aaf56b380caac67ea0960aac_rle_crop_3767127843_0.png', 1353309524: '1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126403_0.png', 1353309522: '1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126400_0.png', 1353307680: '1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112559_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3106aea9a129a5706b1d46fc830d0b0c_83792095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a330b47546b4380f632c6fc9173ad4e6_76402761.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ff7abdac8188deb96ab094edd91d2d06_56219715.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8effc925ad29e7e3f3a3976020c21fa8_69117410.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ca5b3cfbdd826fc55329580ec718a103_89697648.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b442140e298c3bfbf437ffb6daeef8bb_79183171.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/11697b894c0460b48f498fe88b4949b0_89735917.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ae804dc7ef429b81a3506e8dda9a4fc4_58760488.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/394eda9b38ea440aab429731a3b94a7f_15023742.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/71f1eb875d66a537161093edf8cf6368_92086993.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7b1019ba8b7f425012ade42387bde6b3_83785264.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c8f875c0e31db06e66d4432445546e00_8338007.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f3b30e1387cddc8a32fe978b2de105e9_52322629.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a2bd4c5e4d21fa0c61b12ac4e235f5f0_79895605.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/29024d8a1c3cc629692d34ea8072839d_82995462.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/aa92bbff72ff06599f8681494e3bc9ca_49156677.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/be5cc14646ad0d7a3e33bd139ea7a2b9_67349306.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a0ac608227fb1b68bbdfe58af7da3b5d_25180091.png change filename to text .imagette223761561745543791/ imagette223761561745543791/1745477891_752462_1353309059_e7c5511438683314c68cb457ebe0fea9_rle_crop_3767127824_0.png.png imagette223761561745543791/1745477861_3971549_1353307411_070f7d5c5b84e515c3f58e3cc1d4276d_rle_crop_3767128185_0.png.png imagette223761561745543791/1745477891_752462_1353308841_7447b76ef3667f25d79fa024c4bfae08_rle_crop_3767129896_0.png.png imagette223761561745543791/1745478071_754804_1353309054_f272f8b20f5c9409656beef1daeb85e1_rle_crop_3767133428_0.png.png imagette223761561745543791/1745477772_750791_1353307652_3ee7efd58a2874c1e32d1e5b7aa90320_rle_crop_3767127787_0.png.png imagette223761561745543791/1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112499_0.png.png imagette223761561745543791/1745479871_773009_1353307766_0403c8ba688dcbfe8260a1208d010754_rle_crop_3767115730_0.png.png imagette223761561745543791/1745479871_773009_1353307766_0403c8ba688dcbfe8260a1208d010754_rle_crop_3767177512_0.png.png imagette223761561745543791/1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126403_0.png.png imagette223761561745543791/1745478131_755291_1353309272_16ec4690c06f29e697a473b53f66b746_rle_crop_3767133530_0.png.png imagette223761561745543791/1745478131_755291_1353309289_b9ef24dc5fa865ba96e77c67b996021a_rle_crop_3767130459_0.png.png imagette223761561745543791/1745478131_755291_1353309277_61567def6a28b8d95cadfe5c2eac5c5b_rle_crop_3767132408_0.png.png imagette223761561745543791/1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112559_0.png.png imagette223761561745543791/1745477861_3971549_1353307437_8ab7262714247f17d91789d927452b69_rle_crop_3767127446_0.png.png imagette223761561745543791/1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126400_0.png.png imagette223761561745543791/1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128623_0.png.png imagette223761561745543791/1745477725_3921827_1353308337_731574d9aaf56b380caac67ea0960aac_rle_crop_3767127843_0.png.png imagette223761561745543791/1745478014_753686_1353309101_52625e33c0e664a6df84cdbf4ce0a947_rle_crop_3767141138_0.png.png imagette223761561745543791/1745479871_773009_1353308502_d92b5e5f8df03ab0465684f552d2f581_rle_crop_3767177496_0.png.png imagette223761581745543793/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c584522486139b1f3a7bcd715c074dc8_93863654.png imagette223761561745543791 22376158 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=22376158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223761581745543793 22376147 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=22376147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353309512: '1745477725_3921827_1353308395_5d21f127053d2c2e14671232fec35725_rle_crop_3767127436_0.png', 1353309828: '1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133650_0.png', 1353309827: '1745478071_754804_1353309054_f272f8b20f5c9409656beef1daeb85e1_rle_crop_3767133431_0.png', 1353309752: '1745478252_756685_1353309310_89a7357945859820958d43a60e133ad6_rle_crop_3767130444_0.png', 1353309679: '1745478131_755291_1353309323_b90505665559b3ad22bcd51694271311_rle_crop_3767129602_0.png', 1353309666: '1745477891_752462_1353308843_6390e082bd2da91baedb11337475aa2d_rle_crop_3767129625_0.png', 1353309665: '1745477891_752462_1353309059_e7c5511438683314c68cb457ebe0fea9_rle_crop_3767127829_0.png', 1353309632: '1745478087_3931845_1353309391_0bd31ec4c9acfbbb60baa61c538b2d11_rle_crop_3767130468_0.png', 1353309605: '1745477861_3971549_1353307354_887e0ce709f4e8d2a1ce7a21b0547160_rle_crop_3767129927_0.png', 1353309604: '1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129659_0.png', 1353309603: '1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129665_0.png', 1353309515: '1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128627_0.png', 1353309514: '1745477725_3921827_1353308337_731574d9aaf56b380caac67ea0960aac_rle_crop_3767127840_0.png', 1353307666: '1745477382_3961721_1353306416_b55c23e28b0f14403988c1a8a1b2914a_rle_crop_3767112415_0.png', 1353309511: '1745477725_3921827_1353308395_5d21f127053d2c2e14671232fec35725_rle_crop_3767127429_0.png', 1353308657: '1745477531_748548_1353306870_57b62c484a0b63a09ce1dfe2a5032c4c_rle_crop_3767113096_0.png', 1353308656: '1745477531_748548_1353306870_57b62c484a0b63a09ce1dfe2a5032c4c_rle_crop_3767113100_0.png', 1353308655: '1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_bib_crop_3767113082_0.jpg', 1353308654: '1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_rle_crop_3767113842_0.png', 1353308653: '1745477531_748548_1353307507_e6874d84fae8e48970801a88a63d6970_rle_crop_3767113823_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5c557e50f9b9f67e75c9deaae7faf7ad_64893790.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/66a2a44facfa634d9ac4720e586eba90_84943057.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c1b3a0c112f4ba1d14a4f37516911b94_62209639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c204a7d98cefd511a9300c0d76154643_48437698.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/202286d161aaddc9d5424fdfe3cb2f98_53872739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b88e84041338d89ec930e7780de9a77e_8670146.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/745fd1146e647d157dcf303e335c16fb_53708429.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/bb9deb52c24b9422a5e1553c9bf8e278_73519180.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5fce3a759c9df8a3cb40d72584feeb2a_32403622.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/99b442c7bc2e7c9c6c36ef97c58ba672_15689281.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/512cd07e0b792b944adb45ba7937b73a_35550672.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4b6abe1bf159f67f37f499603d794483_84741314.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/50a445260aed0040d5c2e93aab0e985d_57722490.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3f9b43843d1a5b24e8e9b59529de3309_90693673.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8a83a17610bdf824f8902882b614e7a9_86161029.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a5504fedfc5bdb607f59ef3f35237a2c_6944332.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5ca1cb1d50053e756c873a7cdf854452_67893984.png change filename to text .wget -O 18.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fd58566ed24a43032f2f2cb7a4f51877_37841105.jpg change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/33a5c4de4eee795ce23506609e1dac4c_14400049.png change filename to text .imagette223761471745543793/ imagette223761471745543793/1745477861_3971549_1353307354_887e0ce709f4e8d2a1ce7a21b0547160_rle_crop_3767129927_0.png.png imagette223761471745543793/1745478071_754804_1353309054_f272f8b20f5c9409656beef1daeb85e1_rle_crop_3767133431_0.png.png imagette223761471745543793/1745477725_3921827_1353308337_731574d9aaf56b380caac67ea0960aac_rle_crop_3767127840_0.png.png imagette223761471745543793/1745477725_3921827_1353308395_5d21f127053d2c2e14671232fec35725_rle_crop_3767127436_0.png.png imagette223761471745543793/1745477382_3961721_1353306416_b55c23e28b0f14403988c1a8a1b2914a_rle_crop_3767112415_0.png.png imagette223761471745543793/1745478252_756685_1353309310_89a7357945859820958d43a60e133ad6_rle_crop_3767130444_0.png.png imagette223761471745543793/1745477891_752462_1353309059_e7c5511438683314c68cb457ebe0fea9_rle_crop_3767127829_0.png.png imagette223761471745543793/1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128627_0.png.png imagette223761471745543793/1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129659_0.png.png imagette223761471745543793/1745477861_3971549_1353307368_b6ce94556999dd7dc749537847daf785_rle_crop_3767129665_0.png.png imagette223761471745543793/1745477531_748548_1353306870_57b62c484a0b63a09ce1dfe2a5032c4c_rle_crop_3767113100_0.png.png imagette223761471745543793/1745477891_752462_1353308843_6390e082bd2da91baedb11337475aa2d_rle_crop_3767129625_0.png.png imagette223761471745543793/1745478131_755291_1353309323_b90505665559b3ad22bcd51694271311_rle_crop_3767129602_0.png.png imagette223761471745543793/1745477531_748548_1353306870_57b62c484a0b63a09ce1dfe2a5032c4c_rle_crop_3767113096_0.png.png imagette223761471745543793/1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133650_0.png.png imagette223761471745543793/1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_rle_crop_3767113842_0.png.png imagette223761471745543793/1745477531_748548_1353307507_e6874d84fae8e48970801a88a63d6970_rle_crop_3767113823_0.png.png imagette223761471745543793/1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_bib_crop_3767113082_0.jpg.jpg imagette223761471745543793/1745478087_3931845_1353309391_0bd31ec4c9acfbbb60baa61c538b2d11_rle_crop_3767130468_0.png.png imagette223761471745543793/1745477725_3921827_1353308395_5d21f127053d2c2e14671232fec35725_rle_crop_3767127429_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5e57098432b3edb86650836a92171107_74742334.png imagette223761471745543793 22376152 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=22376152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353309536: '1745477772_750791_1353307649_40de79b6cb0f559b98c6f17958345196_rle_crop_3767129564_0.png', 1353319466: '1745479932_773523_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113647_0.png', 1353319465: '1745479932_773523_1353307669_53edd81bfc9c24342fd9b57cd5b6ea48_rle_crop_3767178016_0.png', 1353309857: '1745478014_753686_1353309101_52625e33c0e664a6df84cdbf4ce0a947_rle_crop_3767141137_0.png', 1353309856: '1745478014_753686_1353309127_32f03a32015219ecbd1542d903a43b63_rle_crop_3767141019_0.png', 1353309676: '1745477891_752462_1353308838_e6bc5a5865b45c8e6583fc5feac8c7c6_rle_crop_3767130665_0.png', 1353309539: '1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128624_0.png', 1353309538: '1745477725_3921827_1353308442_bb9aa32b2ffae437ac2f07284cabd9fd_rle_crop_3767127197_0.png', 1353309537: '1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126405_0.png', 1353307682: '1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112460_0.png', 1353309535: '1745477772_750791_1353307658_8ac50d18fadf98ec79f17456e0e607a4_rle_crop_3767126449_0.png', 1353309534: '1745477772_750791_1353307663_099dd85423dfabaa45168f0b0f4a6878_rle_crop_3767122979_0.png', 1353308668: '1745477531_748548_1353306938_44c846573640ca489f68fdba73a41076_rle_crop_3767113065_0.png', 1353308339: '1745477506_3964481_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113647_0.png', 1353307743: '1745477412_747071_1353306794_79243defed5a54b3623c8c327a23781c_rle_crop_3767113153_0.png', 1353307685: '1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112549_0.png', 1353307684: '1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112552_0.png', 1353307683: '1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fd9dc4884ec67e456393f8848e5bd709_5188904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5a01b28d5ed952a80d4811b0e6d863b6_28238924.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/6b8cee490fc79d1228d72e68291a227a_19499711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/114021c55afc61a1850218281ddc1d03_80192138.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5d45adf0e20b8379f1852842667b45e2_32574709.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cec7bd1ac07239170a55a6794fab0411_37216315.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/798c59e29011a97ee5481b5c8413bd04_80151442.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7e85150ccb57fd0903a3231f8ea6782d_47055673.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f999304999a094c2a4df21399e35564f_5970570.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8aca4bcb2310fd8e144f7e45682df1cc_44177147.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8f1d172e1e43b41f50e9843ee9d92b2e_64188172.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/72323eec2ff4f74fa5262c50aacf7d19_53262518.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/26c2313b0da072ab82f7752586e64238_34915427.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5a01b28d5ed952a80d4811b0e6d863b6_23490169.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cf63d02349ee0850e3cd3eec82ff87f5_1301330.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/29b3bc609fdcbdcd0f9a366a1bdce470_33273328.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/949913b8139100ec625332fcc267c659_77091830.png change filename to text .imagette223761521745543795/ imagette223761521745543795/1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112549_0.png.png imagette223761521745543795/1745477772_750791_1353307649_40de79b6cb0f559b98c6f17958345196_rle_crop_3767129564_0.png.png imagette223761521745543795/1745478014_753686_1353309127_32f03a32015219ecbd1542d903a43b63_rle_crop_3767141019_0.png.png imagette223761521745543795/1745477412_747071_1353306794_79243defed5a54b3623c8c327a23781c_rle_crop_3767113153_0.png.png imagette223761521745543795/1745477725_3921827_1353308730_5a62953724d8763484e6aa02ba50fd84_rle_crop_3767126405_0.png.png imagette223761521745543795/1745477531_748548_1353306938_44c846573640ca489f68fdba73a41076_rle_crop_3767113065_0.png.png imagette223761521745543795/1745477382_3961721_1353306361_bf23a745b9cc96d69dc4110ddd5108ab_rle_crop_3767112552_0.png.png imagette223761521745543795/1745477506_3964481_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113647_0.png.png imagette223761521745543795/1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112508_0.png.png imagette223761521745543795/1745477382_3961721_1353306413_8dc84818f388a7303b37591c608c6597_rle_crop_3767112460_0.png.png imagette223761521745543795/1745477772_750791_1353307663_099dd85423dfabaa45168f0b0f4a6878_rle_crop_3767122979_0.png.png imagette223761521745543795/1745477725_3921827_1353308442_bb9aa32b2ffae437ac2f07284cabd9fd_rle_crop_3767127197_0.png.png imagette223761521745543795/1745478014_753686_1353309101_52625e33c0e664a6df84cdbf4ce0a947_rle_crop_3767141137_0.png.png imagette223761521745543795/1745477891_752462_1353308838_e6bc5a5865b45c8e6583fc5feac8c7c6_rle_crop_3767130665_0.png.png imagette223761521745543795/1745479932_773523_1353307669_53edd81bfc9c24342fd9b57cd5b6ea48_rle_crop_3767178016_0.png.png imagette223761521745543795/1745477772_750791_1353307658_8ac50d18fadf98ec79f17456e0e607a4_rle_crop_3767126449_0.png.png imagette223761521745543795/1745477725_3921827_1353308269_1e2f42b91e4664ec1f70b19d4462f59c_rle_crop_3767128624_0.png.png imagette223761521745543795/1745479932_773523_1353307568_556aa84163394db339a2ca786e8dafc3_rle_crop_3767113647_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/30ffa93a8195ec85e65d0dc150cc04e1_93355401.png imagette223761521745543795 22376153 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=22376153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353307676: '1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112496_0.png', 1353308321: '1745477506_3964481_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113630_0.png', 1353308324: '1745477506_3964481_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113632_0.png', 1353308663: '1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_rle_crop_3767113080_0.png', 1353309517: '1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127030_0.png', 1353309518: '1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127032_0.png', 1353309669: '1745477891_752462_1353308838_e6bc5a5865b45c8e6583fc5feac8c7c6_rle_crop_3767130659_0.png', 1353309670: '1745477891_752462_1353308833_26572397db93c6869b323c5b94eae8bf_rle_crop_3767133397_0.png', 1353309830: '1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133651_0.png', 1353309831: '1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133648_0.png', 1353309854: '1745478014_753686_1353309297_fcb16b5e06710774f5b6896ee1a2d421_rle_crop_3767130481_0.png', 1353319462: '1745479932_773523_1353307669_53edd81bfc9c24342fd9b57cd5b6ea48_rle_crop_3767178014_0.png', 1353319463: '1745479932_773523_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113630_0.png', 1353319464: '1745479932_773523_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113632_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/033022440ba1652468747ad38c43ed73_59991814.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0dd6e91d0b9cda6fba251e90551d7a9e_60179594.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d13ea94bec1c83392bde5e9fc43aa4c3_53792823.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f7b91bf9f8b3627272a1a68a9fa54dca_87745523.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0bb0995a593a5d110f060f9cc86bb8d6_1216527.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4377346e12eea030b0f32b54f491f7f0_18297452.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/87450c3e3755771bc5c14f7d10e9b9ac_55682872.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/636b54f76f9a72e83608117aea4c5cfd_77930353.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/74be4be90dc113829dec14721d35a263_44560418.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/186d0d373b552dcc04100949d4d176b5_68342125.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/09c530be15be6f10d8a997eaea6be0b7_78936049.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e4655002bbe527e1cad294f23587c12d_44024377.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0dd6e91d0b9cda6fba251e90551d7a9e_8733523.png change filename to text .imagette223761531745543797/ imagette223761531745543797/1745479932_773523_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113632_0.png.png imagette223761531745543797/1745477382_3961721_1353306411_2d2e278ba6b12decf0dce6d6e4631419_rle_crop_3767112496_0.png.png imagette223761531745543797/1745479932_773523_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113630_0.png.png imagette223761531745543797/1745477891_752462_1353308838_e6bc5a5865b45c8e6583fc5feac8c7c6_rle_crop_3767130659_0.png.png imagette223761531745543797/1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133648_0.png.png imagette223761531745543797/1745477506_3964481_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113632_0.png.png imagette223761531745543797/1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127032_0.png.png imagette223761531745543797/1745478071_754804_1353309050_282e9d4e5652df8e5b1b840956d3e20e_rle_crop_3767133651_0.png.png imagette223761531745543797/1745477725_3921827_1353308471_e40736753e586e0c0737d1e4d0ff44d4_rle_crop_3767127030_0.png.png imagette223761531745543797/1745477891_752462_1353308833_26572397db93c6869b323c5b94eae8bf_rle_crop_3767133397_0.png.png imagette223761531745543797/1745477531_748548_1353306935_eb666f0367e6320cdf437b0a33f19fb7_rle_crop_3767113080_0.png.png imagette223761531745543797/1745478014_753686_1353309297_fcb16b5e06710774f5b6896ee1a2d421_rle_crop_3767130481_0.png.png imagette223761531745543797/1745479932_773523_1353307669_53edd81bfc9c24342fd9b57cd5b6ea48_rle_crop_3767178014_0.png.png imagette223761531745543797/1745477506_3964481_1353307573_e02d73accb279e545cd336afc9b4f5db_rle_crop_3767113630_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d13ea94bec1c83392bde5e9fc43aa4c3_74378391.png imagette223761531745543797 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22376038 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22376159,22376160,22376161,22376162,22376163,22376164,22376165,22376166,22376167,22376168,22376169,22376170?tags=Teint_Dans_La_Masse,autre_refus,kraft,plastique,mal_croppe,Carton_brun,Carton_gris,environnement,metal,cartonnette,papier,flou your option no_mail is active, we will not send the real mail to your client args[1353362235] : ('0.04218582708402632',) no score found for photo 1353362235 We are sending mail with results at report@fotonower.com refus_total : 0.04218582708402632 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=22376038 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_P22376038_25-04-2025_03_16_29.pdf results_Auto_P22376038_25-04-2025_03_16_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22376038_25-04-2025_03_16_29.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','22376038','results_Auto_P22376038_25-04-2025_03_16_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22376038_25-04-2025_03_16_29.pdf','pdf','','0.24','0.04218582708402632') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22376038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353362235] map_info['map_portfolio_photo'] : {22376038: [1353362235, 1353309428, 1353309401, 1353309394, 1353309391, 1353309323, 1353309310, 1353309297, 1353309293, 1353309289, 1353309277, 1353309272, 1353309230, 1353309206, 1353309178, 1353309127, 1353309101, 1353309085, 1353309059, 1353309054, 1353309050, 1353309048, 1353309014, 1353308847, 1353308846, 1353308843, 1353308841, 1353308838, 1353308833, 1353308730, 1353308722, 1353308706, 1353308703, 1353308502, 1353308471, 1353308442, 1353308395, 1353308337, 1353308269, 1353307773, 1353307770, 1353307766, 1353307669, 1353307663, 1353307658, 1353307655, 1353307652, 1353307649, 1353307577, 1353307575, 1353307573, 1353307568, 1353307507, 1353307437, 1353307411, 1353307398, 1353307368, 1353307354, 1353306942, 1353306938, 1353306935, 1353306870, 1353306794, 1353306416, 1353306413, 1353306411, 1353306361]} final : False mtd_id 4302 list_pids : [1353362235] 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, '2756507') ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507') 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', '22376038', '1353362235', None, None, None, None, None, '2756507')] time used for this insertion : 0.012017250061035156 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.895370483398438 time spend to save output : 0.0121917724609375 total time spend for step 4 : 9.907562255859375 step5:split_time_score Fri Apr 25 03:16:39 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 : ['22376038'] 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 : [('22376038',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22376038) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353362235: {'path': 'temp/1745543789_3686790_1353362235_f5c1e4120663a8a8b6ed41bbc672f369.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 = 22376038; (('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 = 22376038 group by h (('08', 67),) 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=22376038 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 (22376038) 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 (22376038) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22376038 Nombre de photos uploadées : 67 / 23040 (0%) 24042025 22376038 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 24042025 22376038 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1353306416, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b55c23e28b0f14403988c1a8a1b2914a.jpg', 'username': None, 'uploaded_at': 1745477168, 'text': 'image_24042025_08_45_04_010158m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353306413, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8dc84818f388a7303b37591c608c6597.jpg', 'username': None, 'uploaded_at': 1745477168, 'text': 'image_24042025_08_45_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353306411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2d2e278ba6b12decf0dce6d6e4631419.jpg', 'username': None, 'uploaded_at': 1745477168, 'text': 'image_24042025_08_45_24_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353306361, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/bf23a745b9cc96d69dc4110ddd5108ab.jpg', 'username': None, 'uploaded_at': 1745477168, 'text': 'image_24042025_08_45_34_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003290414810180664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22376038, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02271413803100586 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22364845, 'dashboard_result_id': 10089941, '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_P22364845_24-04-2025_01_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364857, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22364940, 'dashboard_result_id': 10089942, '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_P22364940_24-04-2025_02_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364953, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22365435, 'dashboard_result_id': 10089943, '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_P22365435_24-04-2025_02_47_51.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365473, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22365436, 'dashboard_result_id': 10089944, '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_P22365436_24-04-2025_02_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365448, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22365571, 'dashboard_result_id': 10089945, '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_P22365571_24-04-2025_03_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22365572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365583, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22365928, 'dashboard_result_id': 10089946, '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_P22365928_24-04-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365956, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22366604, 'dashboard_result_id': 10089947, '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_P22366604_24-04-2025_04_15_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22366605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22366606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22366608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22366609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22366610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22366611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22366612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22366613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22366614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22366615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22366616, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22367709, 'dashboard_result_id': 10089948, '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_P22367709_24-04-2025_05_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22367710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22367711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22367712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22367713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22367714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22367715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22367716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22367717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22367718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22367719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22367720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22367721, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22367997, 'dashboard_result_id': 10089949, '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_P22367997_24-04-2025_05_56_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368034, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22368394, 'dashboard_result_id': 10089950, '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_P22368394_24-04-2025_05_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22368435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368446, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22368844, 'dashboard_result_id': 10089951, '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_P22368844_24-04-2025_06_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368856, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22369326, 'dashboard_result_id': 10089952, '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_P22369326_24-04-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22369374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369376, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22369768, 'dashboard_result_id': 10089953, '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_P22369768_24-04-2025_06_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22369769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369780, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22370237, 'dashboard_result_id': 10089954, '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_P22370237_24-04-2025_06_55_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370249, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22370495, 'dashboard_result_id': 10089955, '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_P22370495_24-04-2025_07_05_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370507, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22370825, 'dashboard_result_id': 10089956, '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_P22370825_24-04-2025_07_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22370868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370882, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22371527, 'dashboard_result_id': 10089957, '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_P22371527_24-04-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22371567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22371568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22371569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22371570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22371571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22371572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22371573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22371574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22371575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22371576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22371577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22371578, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22372069, 'dashboard_result_id': 10089958, '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_P22372069_24-04-2025_07_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22372126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372127, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22372881, 'dashboard_result_id': 10089959, '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_P22372881_24-04-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22372907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372918, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22373509, 'dashboard_result_id': 10089960, '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_P22373509_24-04-2025_08_21_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22373527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22373528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22373529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22373530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22373531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22373532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22373533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22373534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22373535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22373536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22373537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22373538, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22374509, 'dashboard_result_id': 10089961, '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_P22374509_24-04-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22374572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22374573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22374574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22374575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22374576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22374577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22374578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22374579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22374580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22374581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22374582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22374583, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22375127, 'dashboard_result_id': 10089962, '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_P22375127_24-04-2025_08_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22375136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22375137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22375138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22375139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22375140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22375141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22375142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22375143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22375144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22375145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22375146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22375147, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22376038, 'dashboard_result_id': 10089963, '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_P22376038_24-04-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22376147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22376148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22376149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22376150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22376151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22376152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22376153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22376154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22376155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22376156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22376157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22376158, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22381488, 'dashboard_result_id': 10089964, '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_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22381997, 'dashboard_result_id': 10089965, '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_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22382953, 'dashboard_result_id': 10089966, '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_P22382953_24-04-2025_14_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22383692, 'dashboard_result_id': 10089967, '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_P22383692_24-04-2025_14_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22383720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22383721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22383722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22383723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22383724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22383725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22383726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22383727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22383728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22383729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22383730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22383731, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22384585, 'dashboard_result_id': 10089968, '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_P22384585_24-04-2025_14_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22384590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22384591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22384592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22384593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22384594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22384595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22384596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22384597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22384598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22384599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22384600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22384601, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22385919, 'dashboard_result_id': 10089969, '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_P22385919_24-04-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22385925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22385926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22385927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22385928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22385929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22385930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22385931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22385932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22385933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22385934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22385935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22385936, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22386105, 'dashboard_result_id': 10089970, '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_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22386532, 'dashboard_result_id': 10089971, '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_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22387089, 'dashboard_result_id': 10089972, '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_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22387635, 'dashboard_result_id': 10089973, '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_P22387635_24-04-2025_16_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22387956, 'dashboard_result_id': 10089974, '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_P22387956_24-04-2025_16_51_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22388016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22388017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22388018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22388019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22388020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22388021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22388022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22388023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22388024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22388025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22388026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22388027, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22388968, 'dashboard_result_id': 10089975, '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_P22388968_24-04-2025_17_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389016, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22389487, 'dashboard_result_id': 10089976, '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_P22389487_24-04-2025_17_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389606, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22390166, 'dashboard_result_id': 10089977, '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_P22390166_24-04-2025_17_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22390170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22390171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22390172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22390173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22390174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22390175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22390176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22390177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22390178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22390179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22390180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22390181, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22391365, 'dashboard_result_id': 10089978, '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_P22391365_24-04-2025_18_20_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391403, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22391982, 'dashboard_result_id': 10089979, '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_P22391982_24-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391998, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22392453, 'dashboard_result_id': 10089980, '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_P22392453_24-04-2025_18_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22392519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392521, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22392883, 'dashboard_result_id': 10089981, '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_P22392883_24-04-2025_19_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392897, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22393323, 'dashboard_result_id': 10089982, '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_P22393323_24-04-2025_19_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22393363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22393364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22393365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22393366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22393367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22393368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22393369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22393370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22393371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22393372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22393373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22393374, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22394050, 'dashboard_result_id': 10089983, '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_P22394050_24-04-2025_19_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394086, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22394741, 'dashboard_result_id': 10089984, '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_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22395373, 'dashboard_result_id': 10089985, '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_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22395952, 'dashboard_result_id': 10089986, '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_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22396625, 'dashboard_result_id': 10089987, '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_P22396625_24-04-2025_20_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22397613, 'dashboard_result_id': 10089988, '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_P22397613_24-04-2025_21_07_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22397617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22397618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22397619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22397620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22397621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22397622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22397623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22397624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22397625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22397626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22397627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22397628, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22398306, 'dashboard_result_id': 10089989, '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_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22398412, 'dashboard_result_id': 10089990, '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_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22398957, 'dashboard_result_id': 10089991, '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_P22398957_24-04-2025_21_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22399545, 'dashboard_result_id': 10089992, '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_P22399545_24-04-2025_22_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22399574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22399575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22399576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22399577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22399578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22399579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22399580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22399581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22399582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22399583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22399584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22399585, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22400562, 'dashboard_result_id': 10089993, '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_P22400562_24-04-2025_22_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22400625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22400626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22400627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22400628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22400629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22400630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22400631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22400632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22400633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22400634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22400635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22400636, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22401543, 'dashboard_result_id': 10089994, '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_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22402470, 'dashboard_result_id': 10089995, '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_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22403475, 'dashboard_result_id': 10089996, '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_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22404342, 'dashboard_result_id': 10089997, '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_P22404342_24-04-2025_23_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22405149, 'dashboard_result_id': 10089998, '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_P22405149_24-04-2025_23_34_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22405174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22405175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22405176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22405177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22405178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22405179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22405180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22405181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22405182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22405183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22405184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22405185, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22405977, 'dashboard_result_id': 10089999, '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_P22405977_24-04-2025_23_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22406006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22406007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22406008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22406009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22406010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22406011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22406012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22406013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22406014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22406015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22406016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22406017, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1755502, 'mtr_portfolio_id': 22413934, 'dashboard_result_id': 10090000, '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_P22413934_25-04-2025_03_16_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22413935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22413936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22413937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22413938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22413939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22413940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22413941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22413942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22413943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22413944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22413945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22413946, '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 = 22364845 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': 2755230, 'mtr_portfolio_id': 22364845, 'created_at': datetime.datetime(2025, 4, 24, 1, 47), 'result': '0.0917488642218522', 'result_long': None, 'result_double': None}] Qualite : 0.0917488642218522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22364845 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22364845_24-04-2025_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22364845 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_P22364845_24-04-2025_01_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364857, 'pht': 3726}}" where mtr_portfolio_id = 22364845 and dashboard_run_id = 1755502 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`=22364845 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089941, 0.0917488642218522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22364845_24-04-2025_01_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364857, '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 = 22364940 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': 2755250, 'mtr_portfolio_id': 22364940, 'created_at': datetime.datetime(2025, 4, 24, 2, 5), 'result': '0.0419656379462685', 'result_long': None, 'result_double': None}] Qualite : 0.0419656379462685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22364940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22364940_24-04-2025_02_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22364940 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_P22364940_24-04-2025_02_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364953, 'pht': 3726}}" where mtr_portfolio_id = 22364940 and dashboard_run_id = 1755502 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`=22364940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089942, 0.0419656379462685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22364940_24-04-2025_02_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22364942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22364943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22364944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22364945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22364946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22364947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22364948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22364949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22364950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22364951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22364952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22364953, '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 = 22365435 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': 2755316, 'mtr_portfolio_id': 22365435, 'created_at': datetime.datetime(2025, 4, 24, 2, 47, 51), 'result': '0.0010840822754716792', 'result_long': None, 'result_double': None}] Qualite : 0.0010840822754716792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22365435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365435_24-04-2025_02_47_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22365435 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_P22365435_24-04-2025_02_47_51.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365473, 'pht': 3726}}" where mtr_portfolio_id = 22365435 and dashboard_run_id = 1755502 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`=22365435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089943, 0.0010840822754716792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365435_24-04-2025_02_47_51.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365473, '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 = 22365436 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': 2755317, 'mtr_portfolio_id': 22365436, 'created_at': datetime.datetime(2025, 4, 24, 2, 46, 58), 'result': '0.009682735022376038', 'result_long': None, 'result_double': None}] Qualite : 0.009682735022376038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22365436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365436_24-04-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22365436 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_P22365436_24-04-2025_02_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365448, 'pht': 3726}}" where mtr_portfolio_id = 22365436 and dashboard_run_id = 1755502 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`=22365436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089944, 0.009682735022376038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365436_24-04-2025_02_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365448, '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 = 22365571 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': 2755341, 'mtr_portfolio_id': 22365571, 'created_at': datetime.datetime(2025, 4, 24, 3, 2, 59), 'result': '0.082238356799411', 'result_long': None, 'result_double': None}] Qualite : 0.082238356799411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22365571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365571_24-04-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22365571 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_P22365571_24-04-2025_03_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22365572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365583, 'pht': 3726}}" where mtr_portfolio_id = 22365571 and dashboard_run_id = 1755502 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`=22365571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089945, 0.082238356799411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365571_24-04-2025_03_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22365572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365583, '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 = 22365928 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': 2755384, 'mtr_portfolio_id': 22365928, 'created_at': datetime.datetime(2025, 4, 24, 3, 17), 'result': '0.034141212025998666', 'result_long': None, 'result_double': None}] Qualite : 0.034141212025998666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22365928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365928_24-04-2025_03_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22365928 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_P22365928_24-04-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365956, 'pht': 3726}}" where mtr_portfolio_id = 22365928 and dashboard_run_id = 1755502 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`=22365928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089946, 0.034141212025998666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22365928_24-04-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22365945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22365946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22365947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22365948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22365949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22365950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22365951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22365952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22365953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22365954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22365955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22365956, '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 = 22366604 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': 2755510, 'mtr_portfolio_id': 22366604, 'created_at': datetime.datetime(2025, 4, 24, 4, 15, 2), 'result': '0.11564601982178765', 'result_long': None, 'result_double': None}] Qualite : 0.11564601982178765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22366604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22366604_24-04-2025_04_15_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22366604 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_P22366604_24-04-2025_04_15_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22366605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22366606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22366608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22366609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22366610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22366611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22366612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22366613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22366614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22366615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22366616, 'pht': 3726}}" where mtr_portfolio_id = 22366604 and dashboard_run_id = 1755502 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`=22366604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089947, 0.11564601982178765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22366604_24-04-2025_04_15_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22366605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22366606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22366608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22366609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22366610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22366611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22366612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22366613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22366614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22366615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22366616, '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 = 22367709 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': 2755684, 'mtr_portfolio_id': 22367709, 'created_at': datetime.datetime(2025, 4, 24, 5, 55, 59), 'result': '0.04997587747792928', 'result_long': None, 'result_double': None}] Qualite : 0.04997587747792928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22367709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22367709_24-04-2025_05_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22367709 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_P22367709_24-04-2025_05_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22367710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22367711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22367712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22367713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22367714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22367715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22367716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22367717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22367718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22367719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22367720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22367721, 'pht': 3726}}" where mtr_portfolio_id = 22367709 and dashboard_run_id = 1755502 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`=22367709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089948, 0.04997587747792928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22367709_24-04-2025_05_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22367710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22367711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22367712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22367713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22367714, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22367715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22367716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22367717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22367718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22367719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22367720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22367721, '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 = 22367997 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': 2755685, 'mtr_portfolio_id': 22367997, 'created_at': datetime.datetime(2025, 4, 24, 5, 56, 30), 'result': '0.05971901742655535', 'result_long': None, 'result_double': None}] Qualite : 0.05971901742655535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22367997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22367997_24-04-2025_05_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22367997 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_P22367997_24-04-2025_05_56_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368034, 'pht': 3726}}" where mtr_portfolio_id = 22367997 and dashboard_run_id = 1755502 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`=22367997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089949, 0.05971901742655535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22367997_24-04-2025_05_56_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368034, '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 = 22368394 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': 2755703, 'mtr_portfolio_id': 22368394, 'created_at': datetime.datetime(2025, 4, 24, 5, 49, 3), 'result': '0.048285313891457377', 'result_long': None, 'result_double': None}] Qualite : 0.048285313891457377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22368394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22368394_24-04-2025_05_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22368394 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_P22368394_24-04-2025_05_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22368435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368446, 'pht': 3726}}" where mtr_portfolio_id = 22368394 and dashboard_run_id = 1755502 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`=22368394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089950, 0.048285313891457377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22368394_24-04-2025_05_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22368435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368446, '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 = 22368844 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': 2755736, 'mtr_portfolio_id': 22368844, 'created_at': datetime.datetime(2025, 4, 24, 6, 4, 59), 'result': '0.04534289407338639', 'result_long': None, 'result_double': None}] Qualite : 0.04534289407338639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22368844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22368844_24-04-2025_06_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22368844 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_P22368844_24-04-2025_06_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368856, 'pht': 3726}}" where mtr_portfolio_id = 22368844 and dashboard_run_id = 1755502 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`=22368844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089951, 0.04534289407338639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22368844_24-04-2025_06_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22368845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22368846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22368847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22368848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22368849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22368850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22368851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22368852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22368853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22368854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22368855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22368856, '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 = 22369326 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': 2755782, 'mtr_portfolio_id': 22369326, 'created_at': datetime.datetime(2025, 4, 24, 6, 17), 'result': '0.04852916224923396', 'result_long': None, 'result_double': None}] Qualite : 0.04852916224923396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22369326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22369326_24-04-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22369326 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_P22369326_24-04-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22369374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369376, 'pht': 3726}}" where mtr_portfolio_id = 22369326 and dashboard_run_id = 1755502 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`=22369326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089952, 0.04852916224923396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22369326_24-04-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22369374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369376, '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 = 22369768 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': 2755813, 'mtr_portfolio_id': 22369768, 'created_at': datetime.datetime(2025, 4, 24, 6, 32, 31), 'result': '0.052888407671088156', 'result_long': None, 'result_double': None}] Qualite : 0.052888407671088156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22369768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22369768_24-04-2025_06_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22369768 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_P22369768_24-04-2025_06_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22369769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369780, 'pht': 3726}}" where mtr_portfolio_id = 22369768 and dashboard_run_id = 1755502 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`=22369768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089953, 0.052888407671088156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22369768_24-04-2025_06_32_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22369769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22369770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22369771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22369772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22369773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22369774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22369775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22369776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22369777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22369778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22369779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22369780, '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 = 22370237 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': 2755859, 'mtr_portfolio_id': 22370237, 'created_at': datetime.datetime(2025, 4, 24, 6, 54, 59), 'result': '0.06424533586621727', 'result_long': None, 'result_double': None}] Qualite : 0.06424533586621727 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22370237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370237_24-04-2025_06_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22370237 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_P22370237_24-04-2025_06_55_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370249, 'pht': 3726}}" where mtr_portfolio_id = 22370237 and dashboard_run_id = 1755502 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`=22370237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089954, 0.06424533586621727, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370237_24-04-2025_06_55_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370249, '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 = 22370495 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': 2755892, 'mtr_portfolio_id': 22370495, 'created_at': datetime.datetime(2025, 4, 24, 7, 4, 59), 'result': '0.056105977140070463', 'result_long': None, 'result_double': None}] Qualite : 0.056105977140070463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22370495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370495_24-04-2025_07_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22370495 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_P22370495_24-04-2025_07_05_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370507, 'pht': 3726}}" where mtr_portfolio_id = 22370495 and dashboard_run_id = 1755502 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`=22370495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089955, 0.056105977140070463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370495_24-04-2025_07_05_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22370507, '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 = 22370825 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': 2755937, 'mtr_portfolio_id': 22370825, 'created_at': datetime.datetime(2025, 4, 24, 7, 18, 59), 'result': '0.05806895426701232', 'result_long': None, 'result_double': None}] Qualite : 0.05806895426701232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22370825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370825_24-04-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22370825 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_P22370825_24-04-2025_07_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22370868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370882, 'pht': 3726}}" where mtr_portfolio_id = 22370825 and dashboard_run_id = 1755502 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`=22370825 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089956, 0.05806895426701232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22370825_24-04-2025_07_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22370868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22370869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22370871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22370872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22370873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22370874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22370876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22370877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22370878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22370880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22370881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22370882, '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 = 22371527 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': 2756031, 'mtr_portfolio_id': 22371527, 'created_at': datetime.datetime(2025, 4, 24, 7, 32, 58), 'result': '0.055504342594357575', 'result_long': None, 'result_double': None}] Qualite : 0.055504342594357575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22371527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22371527_24-04-2025_07_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22371527 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_P22371527_24-04-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22371567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22371568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22371569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22371570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22371571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22371572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22371573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22371574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22371575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22371576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22371577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22371578, 'pht': 3726}}" where mtr_portfolio_id = 22371527 and dashboard_run_id = 1755502 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`=22371527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089957, 0.055504342594357575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22371527_24-04-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22371567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22371568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22371569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22371570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22371571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22371572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22371573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22371574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22371575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22371576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22371577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22371578, '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 = 22372069 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': 2756094, 'mtr_portfolio_id': 22372069, 'created_at': datetime.datetime(2025, 4, 24, 7, 48, 58), 'result': '0.06428471435941363', 'result_long': None, 'result_double': None}] Qualite : 0.06428471435941363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22372069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22372069_24-04-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22372069 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_P22372069_24-04-2025_07_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22372126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372127, 'pht': 3726}}" where mtr_portfolio_id = 22372069 and dashboard_run_id = 1755502 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`=22372069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089958, 0.06428471435941363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22372069_24-04-2025_07_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22372126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372127, '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 = 22372881 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': 2756154, 'mtr_portfolio_id': 22372881, 'created_at': datetime.datetime(2025, 4, 24, 8, 2, 58), 'result': '0.0455534551482904', 'result_long': None, 'result_double': None}] Qualite : 0.0455534551482904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22372881 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22372881_24-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22372881 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_P22372881_24-04-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22372907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372918, 'pht': 3726}}" where mtr_portfolio_id = 22372881 and dashboard_run_id = 1755502 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`=22372881 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089959, 0.0455534551482904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22372881_24-04-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22372907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22372908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22372909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22372910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22372911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22372912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22372913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22372914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22372915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22372916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22372917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22372918, '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 = 22373509 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': 2756252, 'mtr_portfolio_id': 22373509, 'created_at': datetime.datetime(2025, 4, 24, 8, 21), 'result': '0.04311849371474129', 'result_long': None, 'result_double': None}] Qualite : 0.04311849371474129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22373509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22373509_24-04-2025_08_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22373509 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_P22373509_24-04-2025_08_21_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22373527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22373528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22373529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22373530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22373531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22373532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22373533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22373534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22373535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22373536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22373537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22373538, 'pht': 3726}}" where mtr_portfolio_id = 22373509 and dashboard_run_id = 1755502 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`=22373509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089960, 0.04311849371474129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22373509_24-04-2025_08_21_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22373527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22373528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22373529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22373530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22373531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22373532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22373533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22373534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22373535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22373536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22373537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22373538, '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 = 22374509 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': 2756348, 'mtr_portfolio_id': 22374509, 'created_at': datetime.datetime(2025, 4, 24, 8, 32, 59), 'result': '0.0465993125254894', 'result_long': None, 'result_double': None}] Qualite : 0.0465993125254894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22374509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22374509_24-04-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22374509 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_P22374509_24-04-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22374572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22374573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22374574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22374575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22374576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22374577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22374578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22374579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22374580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22374581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22374582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22374583, 'pht': 3726}}" where mtr_portfolio_id = 22374509 and dashboard_run_id = 1755502 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`=22374509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089961, 0.0465993125254894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22374509_24-04-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22374572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22374573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22374574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22374575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22374576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22374577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22374578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22374579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22374580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22374581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22374582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22374583, '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 = 22375127 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': 2756424, 'mtr_portfolio_id': 22375127, 'created_at': datetime.datetime(2025, 4, 24, 8, 48, 58), 'result': '0.05449015915567036', 'result_long': None, 'result_double': None}] Qualite : 0.05449015915567036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22375127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22375127_24-04-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22375127 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_P22375127_24-04-2025_08_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22375136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22375137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22375138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22375139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22375140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22375141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22375142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22375143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22375144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22375145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22375146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22375147, 'pht': 3726}}" where mtr_portfolio_id = 22375127 and dashboard_run_id = 1755502 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`=22375127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089962, 0.05449015915567036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22375127_24-04-2025_08_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22375136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22375137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22375138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22375139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22375140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22375141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22375142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22375143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22375144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22375145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22375146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22375147, '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 = 22376038 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': 2756507, 'mtr_portfolio_id': 22376038, 'created_at': datetime.datetime(2025, 4, 25, 3, 16, 29), 'result': '0.04218582708402632', 'result_long': None, 'result_double': None}] Qualite : 0.04218582708402632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22376038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22376038_25-04-2025_03_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22376038 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_P22376038_25-04-2025_03_16_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22376147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22376148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22376149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22376150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22376151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22376152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22376153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22376154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22376155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22376156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22376157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22376158, 'pht': 3726}}" where mtr_portfolio_id = 22376038 and dashboard_run_id = 1755502 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`=22376038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089963, 0.04218582708402632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22376038_25-04-2025_03_16_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22376147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22376148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22376149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22376150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22376151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22376152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22376153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22376154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22376155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22376156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22376157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22376158, '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 = 22381488 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': 2757346, 'mtr_portfolio_id': 22381488, 'created_at': datetime.datetime(2025, 4, 24, 13, 46, 30), 'result': '0.07283001687836634', 'result_long': None, 'result_double': None}] Qualite : 0.07283001687836634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22381488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381488_24-04-2025_13_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22381488 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_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, 'pht': 3726}}" where mtr_portfolio_id = 22381488 and dashboard_run_id = 1755502 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`=22381488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089964, 0.07283001687836634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, '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 = 22381997 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': 2757376, 'mtr_portfolio_id': 22381997, 'created_at': datetime.datetime(2025, 4, 24, 14, 6, 58), 'result': '0.05530348544963968', 'result_long': None, 'result_double': None}] Qualite : 0.05530348544963968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22381997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381997_24-04-2025_14_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22381997 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_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, 'pht': 3726}}" where mtr_portfolio_id = 22381997 and dashboard_run_id = 1755502 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`=22381997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089965, 0.05530348544963968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, '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 = 22382953 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': 2757457, 'mtr_portfolio_id': 22382953, 'created_at': datetime.datetime(2025, 4, 24, 14, 19), 'result': '0.043272288002806206', 'result_long': None, 'result_double': None}] Qualite : 0.043272288002806206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22382953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22382953 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_P22382953_24-04-2025_14_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, 'pht': 3726}}" where mtr_portfolio_id = 22382953 and dashboard_run_id = 1755502 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`=22382953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089966, 0.043272288002806206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, '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 = 22383692 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': 2757498, 'mtr_portfolio_id': 22383692, 'created_at': datetime.datetime(2025, 4, 24, 14, 34, 59), 'result': '0.04610178439227608', 'result_long': None, 'result_double': None}] Qualite : 0.04610178439227608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22383692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22383692_24-04-2025_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22383692 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_P22383692_24-04-2025_14_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22383720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22383721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22383722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22383723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22383724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22383725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22383726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22383727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22383728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22383729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22383730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22383731, 'pht': 3726}}" where mtr_portfolio_id = 22383692 and dashboard_run_id = 1755502 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`=22383692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089967, 0.04610178439227608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22383692_24-04-2025_14_35_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22383720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22383721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22383722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22383723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22383724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22383725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22383726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22383727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22383728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22383729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22383730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22383731, '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 = 22384585 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': 2757568, 'mtr_portfolio_id': 22384585, 'created_at': datetime.datetime(2025, 4, 24, 14, 48, 29), 'result': '0.07113551959039967', 'result_long': None, 'result_double': None}] Qualite : 0.07113551959039967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22384585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22384585_24-04-2025_14_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22384585 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_P22384585_24-04-2025_14_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22384590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22384591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22384592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22384593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22384594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22384595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22384596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22384597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22384598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22384599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22384600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22384601, 'pht': 3726}}" where mtr_portfolio_id = 22384585 and dashboard_run_id = 1755502 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`=22384585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089968, 0.07113551959039967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22384585_24-04-2025_14_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22384590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22384591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22384592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22384593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22384594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22384595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22384596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22384597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22384598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22384599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22384600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22384601, '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 = 22385919 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': 2757732, 'mtr_portfolio_id': 22385919, 'created_at': datetime.datetime(2025, 4, 24, 15, 34, 59), 'result': '0.09178398317884932', 'result_long': None, 'result_double': None}] Qualite : 0.09178398317884932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22385919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22385919_24-04-2025_15_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22385919 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_P22385919_24-04-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22385925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22385926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22385927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22385928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22385929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22385930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22385931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22385932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22385933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22385934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22385935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22385936, 'pht': 3726}}" where mtr_portfolio_id = 22385919 and dashboard_run_id = 1755502 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`=22385919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089969, 0.09178398317884932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22385919_24-04-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22385925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22385926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22385927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22385928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22385929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22385930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22385931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22385932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22385933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22385934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22385935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22385936, '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 = 22386105 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': 2757750, 'mtr_portfolio_id': 22386105, 'created_at': datetime.datetime(2025, 4, 24, 15, 47), 'result': '0.06124602521363633', 'result_long': None, 'result_double': None}] Qualite : 0.06124602521363633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22386105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386105_24-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22386105 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_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, 'pht': 3726}}" where mtr_portfolio_id = 22386105 and dashboard_run_id = 1755502 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`=22386105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089970, 0.06124602521363633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, '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 = 22386532 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': 2757807, 'mtr_portfolio_id': 22386532, 'created_at': datetime.datetime(2025, 4, 24, 16, 2, 30), 'result': '0.05765260509667263', 'result_long': None, 'result_double': None}] Qualite : 0.05765260509667263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22386532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386532_24-04-2025_16_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22386532 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_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, 'pht': 3726}}" where mtr_portfolio_id = 22386532 and dashboard_run_id = 1755502 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`=22386532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089971, 0.05765260509667263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, '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 = 22387089 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': 2757900, 'mtr_portfolio_id': 22387089, 'created_at': datetime.datetime(2025, 4, 24, 16, 17, 1), 'result': '0.05648683752681784', 'result_long': None, 'result_double': None}] Qualite : 0.05648683752681784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22387089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387089_24-04-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22387089 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_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, 'pht': 3726}}" where mtr_portfolio_id = 22387089 and dashboard_run_id = 1755502 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`=22387089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089972, 0.05648683752681784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, '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 = 22387635 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': 2757938, 'mtr_portfolio_id': 22387635, 'created_at': datetime.datetime(2025, 4, 24, 16, 32, 59), 'result': '0.0720265064539904', 'result_long': None, 'result_double': None}] Qualite : 0.0720265064539904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22387635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22387635 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_P22387635_24-04-2025_16_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, 'pht': 3726}}" where mtr_portfolio_id = 22387635 and dashboard_run_id = 1755502 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`=22387635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089973, 0.0720265064539904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, '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 = 22387956 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': 2757992, 'mtr_portfolio_id': 22387956, 'created_at': datetime.datetime(2025, 4, 24, 16, 50, 59), 'result': '0.05543258693448774', 'result_long': None, 'result_double': None}] Qualite : 0.05543258693448774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22387956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387956_24-04-2025_16_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22387956 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_P22387956_24-04-2025_16_51_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22388016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22388017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22388018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22388019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22388020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22388021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22388022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22388023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22388024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22388025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22388026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22388027, 'pht': 3726}}" where mtr_portfolio_id = 22387956 and dashboard_run_id = 1755502 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`=22387956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089974, 0.05543258693448774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387956_24-04-2025_16_51_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22388016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22388017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22388018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22388019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22388020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22388021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22388022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22388023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22388024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22388025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22388026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22388027, '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 = 22388968 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': 2758072, 'mtr_portfolio_id': 22388968, 'created_at': datetime.datetime(2025, 4, 24, 17, 4, 58), 'result': '0.06352964092713036', 'result_long': None, 'result_double': None}] Qualite : 0.06352964092713036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22388968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22388968_24-04-2025_17_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22388968 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_P22388968_24-04-2025_17_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389016, 'pht': 3726}}" where mtr_portfolio_id = 22388968 and dashboard_run_id = 1755502 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`=22388968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089975, 0.06352964092713036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22388968_24-04-2025_17_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389016, '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 = 22389487 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': 2758126, 'mtr_portfolio_id': 22389487, 'created_at': datetime.datetime(2025, 4, 24, 17, 18, 59), 'result': '0.05770817470709239', 'result_long': None, 'result_double': None}] Qualite : 0.05770817470709239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22389487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22389487_24-04-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22389487 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_P22389487_24-04-2025_17_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389606, 'pht': 3726}}" where mtr_portfolio_id = 22389487 and dashboard_run_id = 1755502 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`=22389487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089976, 0.05770817470709239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22389487_24-04-2025_17_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22389595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22389596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22389597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22389598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22389599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22389600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22389601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22389602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22389603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22389604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22389605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22389606, '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 = 22390166 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': 2758173, 'mtr_portfolio_id': 22390166, 'created_at': datetime.datetime(2025, 4, 24, 17, 32, 30), 'result': '0.06113605016141997', 'result_long': None, 'result_double': None}] Qualite : 0.06113605016141997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22390166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22390166_24-04-2025_17_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22390166 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_P22390166_24-04-2025_17_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22390170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22390171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22390172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22390173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22390174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22390175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22390176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22390177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22390178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22390179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22390180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22390181, 'pht': 3726}}" where mtr_portfolio_id = 22390166 and dashboard_run_id = 1755502 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`=22390166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089977, 0.06113605016141997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22390166_24-04-2025_17_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22390170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22390171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22390172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22390173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22390174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22390175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22390176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22390177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22390178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22390179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22390180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22390181, '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 = 22391365 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': 2758389, 'mtr_portfolio_id': 22391365, 'created_at': datetime.datetime(2025, 4, 24, 18, 20, 58), 'result': '0.051908386847678525', 'result_long': None, 'result_double': None}] Qualite : 0.051908386847678525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22391365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22391365_24-04-2025_18_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22391365 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_P22391365_24-04-2025_18_20_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391403, 'pht': 3726}}" where mtr_portfolio_id = 22391365 and dashboard_run_id = 1755502 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`=22391365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089978, 0.051908386847678525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22391365_24-04-2025_18_20_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391403, '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 = 22391982 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': 2758440, 'mtr_portfolio_id': 22391982, 'created_at': datetime.datetime(2025, 4, 24, 18, 33), 'result': '0.05254239459125022', 'result_long': None, 'result_double': None}] Qualite : 0.05254239459125022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22391982 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22391982_24-04-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22391982 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_P22391982_24-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391998, 'pht': 3726}}" where mtr_portfolio_id = 22391982 and dashboard_run_id = 1755502 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`=22391982 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089979, 0.05254239459125022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22391982_24-04-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22391987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22391988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22391989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22391990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22391991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22391992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22391993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22391994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22391995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22391996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22391997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22391998, '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 = 22392453 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': 2758496, 'mtr_portfolio_id': 22392453, 'created_at': datetime.datetime(2025, 4, 24, 18, 48, 57), 'result': '0.07075174923897375', 'result_long': None, 'result_double': None}] Qualite : 0.07075174923897375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22392453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22392453_24-04-2025_18_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22392453 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_P22392453_24-04-2025_18_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22392519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392521, 'pht': 3726}}" where mtr_portfolio_id = 22392453 and dashboard_run_id = 1755502 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`=22392453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089980, 0.07075174923897375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22392453_24-04-2025_18_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22392519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392521, '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 = 22392883 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': 2758545, 'mtr_portfolio_id': 22392883, 'created_at': datetime.datetime(2025, 4, 24, 19, 2, 32), 'result': '0.07720033540700966', 'result_long': None, 'result_double': None}] Qualite : 0.07720033540700966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22392883 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22392883_24-04-2025_19_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22392883 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_P22392883_24-04-2025_19_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392897, 'pht': 3726}}" where mtr_portfolio_id = 22392883 and dashboard_run_id = 1755502 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`=22392883 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089981, 0.07720033540700966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22392883_24-04-2025_19_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22392887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22392888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22392889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22392890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22392891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22392892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22392893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22392894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22392895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22392896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22392897, '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 = 22393323 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': 2758607, 'mtr_portfolio_id': 22393323, 'created_at': datetime.datetime(2025, 4, 24, 19, 17), 'result': '0.07177438740590858', 'result_long': None, 'result_double': None}] Qualite : 0.07177438740590858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22393323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22393323_24-04-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22393323 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_P22393323_24-04-2025_19_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22393363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22393364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22393365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22393366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22393367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22393368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22393369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22393370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22393371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22393372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22393373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22393374, 'pht': 3726}}" where mtr_portfolio_id = 22393323 and dashboard_run_id = 1755502 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`=22393323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089982, 0.07177438740590858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22393323_24-04-2025_19_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22393363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22393364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22393365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22393366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22393367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22393368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22393369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22393370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22393371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22393372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22393373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22393374, '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 = 22394050 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': 2758650, 'mtr_portfolio_id': 22394050, 'created_at': datetime.datetime(2025, 4, 24, 19, 34, 59), 'result': '0.05536436296369449', 'result_long': None, 'result_double': None}] Qualite : 0.05536436296369449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22394050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394050_24-04-2025_19_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22394050 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_P22394050_24-04-2025_19_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394086, 'pht': 3726}}" where mtr_portfolio_id = 22394050 and dashboard_run_id = 1755502 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`=22394050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089983, 0.05536436296369449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394050_24-04-2025_19_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394086, '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 = 22394741 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': 2758727, 'mtr_portfolio_id': 22394741, 'created_at': datetime.datetime(2025, 4, 24, 19, 46, 59), 'result': '0.06821332546530194', 'result_long': None, 'result_double': None}] Qualite : 0.06821332546530194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22394741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394741_24-04-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22394741 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_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, 'pht': 3726}}" where mtr_portfolio_id = 22394741 and dashboard_run_id = 1755502 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`=22394741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089984, 0.06821332546530194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, '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 = 22395373 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': 2758767, 'mtr_portfolio_id': 22395373, 'created_at': datetime.datetime(2025, 4, 24, 20, 3), 'result': '0.06351724721165095', 'result_long': None, 'result_double': None}] Qualite : 0.06351724721165095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22395373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395373_24-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22395373 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_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, 'pht': 3726}}" where mtr_portfolio_id = 22395373 and dashboard_run_id = 1755502 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`=22395373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089985, 0.06351724721165095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, '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 = 22395952 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': 2758833, 'mtr_portfolio_id': 22395952, 'created_at': datetime.datetime(2025, 4, 24, 20, 18, 58), 'result': '0.04074928029968472', 'result_long': None, 'result_double': None}] Qualite : 0.04074928029968472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22395952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395952_24-04-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22395952 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_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, 'pht': 3726}}" where mtr_portfolio_id = 22395952 and dashboard_run_id = 1755502 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`=22395952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089986, 0.04074928029968472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, '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 = 22396625 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': 2758883, 'mtr_portfolio_id': 22396625, 'created_at': datetime.datetime(2025, 4, 24, 20, 37), 'result': '0.055513351958558534', 'result_long': None, 'result_double': None}] Qualite : 0.055513351958558534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22396625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22396625 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_P22396625_24-04-2025_20_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, 'pht': 3726}}" where mtr_portfolio_id = 22396625 and dashboard_run_id = 1755502 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`=22396625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089987, 0.055513351958558534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_37_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, '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 = 22397613 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': 2758978, 'mtr_portfolio_id': 22397613, 'created_at': datetime.datetime(2025, 4, 24, 21, 7), 'result': '0.06618295471791456', 'result_long': None, 'result_double': None}] Qualite : 0.06618295471791456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22397613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22397613_24-04-2025_21_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22397613 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_P22397613_24-04-2025_21_07_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22397617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22397618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22397619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22397620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22397621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22397622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22397623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22397624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22397625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22397626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22397627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22397628, 'pht': 3726}}" where mtr_portfolio_id = 22397613 and dashboard_run_id = 1755502 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`=22397613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089988, 0.06618295471791456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22397613_24-04-2025_21_07_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22397617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22397618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22397619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22397620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22397621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22397622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22397623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22397624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22397625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22397626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22397627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22397628, '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 = 22398306 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': 2759077, 'mtr_portfolio_id': 22398306, 'created_at': datetime.datetime(2025, 4, 24, 21, 18, 58), 'result': '0.050588397314892807', 'result_long': None, 'result_double': None}] Qualite : 0.050588397314892807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398306_24-04-2025_21_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398306 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_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, 'pht': 3726}}" where mtr_portfolio_id = 22398306 and dashboard_run_id = 1755502 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`=22398306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089989, 0.050588397314892807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, '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 = 22398412 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': 2759094, 'mtr_portfolio_id': 22398412, 'created_at': datetime.datetime(2025, 4, 24, 21, 32, 31), 'result': '0.07546698692383626', 'result_long': None, 'result_double': None}] Qualite : 0.07546698692383626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398412_24-04-2025_21_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398412 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_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, 'pht': 3726}}" where mtr_portfolio_id = 22398412 and dashboard_run_id = 1755502 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`=22398412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089990, 0.07546698692383626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, '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 = 22398957 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': 2759179, 'mtr_portfolio_id': 22398957, 'created_at': datetime.datetime(2025, 4, 24, 21, 49), 'result': '0.06235237324045487', 'result_long': None, 'result_double': None}] Qualite : 0.06235237324045487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398957 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_P22398957_24-04-2025_21_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, 'pht': 3726}}" where mtr_portfolio_id = 22398957 and dashboard_run_id = 1755502 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`=22398957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089991, 0.06235237324045487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, '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 = 22399545 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': 2759238, 'mtr_portfolio_id': 22399545, 'created_at': datetime.datetime(2025, 4, 24, 22, 5), 'result': '0.053417697106020255', 'result_long': None, 'result_double': None}] Qualite : 0.053417697106020255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22399545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22399545_24-04-2025_22_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22399545 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_P22399545_24-04-2025_22_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22399574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22399575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22399576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22399577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22399578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22399579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22399580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22399581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22399582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22399583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22399584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22399585, 'pht': 3726}}" where mtr_portfolio_id = 22399545 and dashboard_run_id = 1755502 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`=22399545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089992, 0.053417697106020255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22399545_24-04-2025_22_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22399574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22399575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22399576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22399577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22399578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22399579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22399580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22399581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22399582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22399583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22399584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22399585, '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 = 22400562 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': 2759339, 'mtr_portfolio_id': 22400562, 'created_at': datetime.datetime(2025, 4, 24, 22, 16, 58), 'result': '0.050408771815013194', 'result_long': None, 'result_double': None}] Qualite : 0.050408771815013194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22400562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22400562_24-04-2025_22_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22400562 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_P22400562_24-04-2025_22_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22400625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22400626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22400627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22400628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22400629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22400630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22400631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22400632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22400633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22400634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22400635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22400636, 'pht': 3726}}" where mtr_portfolio_id = 22400562 and dashboard_run_id = 1755502 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`=22400562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089993, 0.050408771815013194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22400562_24-04-2025_22_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22400625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22400626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22400627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22400628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22400629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22400630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22400631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22400632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22400633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22400634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22400635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22400636, '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 = 22401543 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': 2759397, 'mtr_portfolio_id': 22401543, 'created_at': datetime.datetime(2025, 4, 24, 22, 32, 58), 'result': '0.04146142728776247', 'result_long': None, 'result_double': None}] Qualite : 0.04146142728776247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22401543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22401543_24-04-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22401543 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_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, 'pht': 3726}}" where mtr_portfolio_id = 22401543 and dashboard_run_id = 1755502 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`=22401543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089994, 0.04146142728776247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22401543_24-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22401546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22401547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22401548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22401549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22401550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22401551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22401552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22401553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22401554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22401555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22401556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22401557, '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 = 22402470 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': 2759452, 'mtr_portfolio_id': 22402470, 'created_at': datetime.datetime(2025, 4, 24, 22, 50, 59), 'result': '0.049624119949482605', 'result_long': None, 'result_double': None}] Qualite : 0.049624119949482605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22402470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22402470_24-04-2025_22_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22402470 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_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, 'pht': 3726}}" where mtr_portfolio_id = 22402470 and dashboard_run_id = 1755502 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`=22402470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089995, 0.049624119949482605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22402470_24-04-2025_22_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22402516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22402517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22402518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22402519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22402520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22402521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22402522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22402523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22402524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22402525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22402526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22402527, '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 = 22403475 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': 2759507, 'mtr_portfolio_id': 22403475, 'created_at': datetime.datetime(2025, 4, 24, 23, 7, 59), 'result': '0.036305943530978185', 'result_long': None, 'result_double': None}] Qualite : 0.036305943530978185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22403475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22403475_24-04-2025_23_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22403475 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_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, 'pht': 3726}}" where mtr_portfolio_id = 22403475 and dashboard_run_id = 1755502 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`=22403475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089996, 0.036305943530978185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22403475_24-04-2025_23_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22403505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22403506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22403507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22403508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22403509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22403510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22403511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22403512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22403513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22403514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22403515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22403516, '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 = 22404342 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': 2759574, 'mtr_portfolio_id': 22404342, 'created_at': datetime.datetime(2025, 4, 24, 23, 18, 58), 'result': '0.04691658373223406', 'result_long': None, 'result_double': None}] Qualite : 0.04691658373223406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22404342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22404342 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_P22404342_24-04-2025_23_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, 'pht': 3726}}" where mtr_portfolio_id = 22404342 and dashboard_run_id = 1755502 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`=22404342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089997, 0.04691658373223406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22404342_24-04-2025_23_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22404371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22404372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22404373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22404374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22404375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22404376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22404377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22404378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22404379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22404380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22404381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22404382, '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 = 22405149 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': 2759607, 'mtr_portfolio_id': 22405149, 'created_at': datetime.datetime(2025, 4, 24, 23, 34, 57), 'result': '0.0527398467982905', 'result_long': None, 'result_double': None}] Qualite : 0.0527398467982905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22405149 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22405149_24-04-2025_23_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22405149 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_P22405149_24-04-2025_23_34_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22405174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22405175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22405176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22405177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22405178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22405179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22405180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22405181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22405182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22405183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22405184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22405185, 'pht': 3726}}" where mtr_portfolio_id = 22405149 and dashboard_run_id = 1755502 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`=22405149 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089998, 0.0527398467982905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22405149_24-04-2025_23_34_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22405174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22405175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22405176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22405177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22405178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22405179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22405180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22405181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22405182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22405183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22405184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22405185, '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 = 22405977 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': 2759650, 'mtr_portfolio_id': 22405977, 'created_at': datetime.datetime(2025, 4, 24, 23, 50, 59), 'result': '0.06051274635681899', 'result_long': None, 'result_double': None}] Qualite : 0.06051274635681899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22405977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22405977_24-04-2025_23_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22405977 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_P22405977_24-04-2025_23_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22406006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22406007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22406008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22406009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22406010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22406011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22406012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22406013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22406014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22406015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22406016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22406017, 'pht': 3726}}" where mtr_portfolio_id = 22405977 and dashboard_run_id = 1755502 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`=22405977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089999, 0.06051274635681899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22405977_24-04-2025_23_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22406006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22406007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22406008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22406009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22406010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22406011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22406012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22406013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22406014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22406015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22406016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22406017, '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 = 22413934 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': 2760374, 'mtr_portfolio_id': 22413934, 'created_at': datetime.datetime(2025, 4, 25, 3, 15, 57), 'result': '0.053490905115106284', 'result_long': None, 'result_double': None}] Qualite : 0.053490905115106284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22413934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22413934_25-04-2025_03_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22413934 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_P22413934_25-04-2025_03_16_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22413935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22413936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22413937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22413938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22413939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22413940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22413941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22413942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22413943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22413944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22413945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22413946, 'pht': 3726}}" where mtr_portfolio_id = 22413934 and dashboard_run_id = 1755502 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`=22413934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10090000, 0.053490905115106284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22413934_25-04-2025_03_16_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22413935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22413936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22413937, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22413938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22413939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22413940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22413941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22413942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22413943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22413944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22413945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22413946, '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 (22364845,22364940,22365435,22365436,22365571,22365928,22366604,22367709,22367997,22368394,22368844,22369326,22369768,22370237,22370495,22370825,22371527,22372069,22372881,22373509,22374509,22375127,22376038,22381488,22381997,22382953,22383692,22384585,22385919,22386105,22386532,22387089,22387635,22387956,22388968,22389487,22390166,22391365,22391982,22392453,22392883,22393323,22394050,22394741,22395373,22395952,22396625,22397613,22398306,22398412,22398957,22399545,22400562,22401543,22402470,22403475,22404342,22405149,22405977,22413934) result : ((1353237435,), (1353237563,), (1353237567,), (1353237587,), (1353237960,), (1353238014,), (1353238347,), (1353239057,), (1353239117,), (1353239139,), (1353239230,), (1353239234,), (1353239266,), (1353239358,), (1353239361,), (1353239391,), (1353239450,), (1353239452,), (1353239495,), (1353239500,), (1353239998,), (1353242932,), (1353242964,), (1353242965,), (1353242966,), (1353242993,), (1353243057,), (1353243116,), (1353243280,), (1353243195,), (1353243274,), (1353243344,), (1353243381,), (1353243513,), (1353243523,), (1353243525,), (1353243552,), (1353243553,), (1353243641,), (1353243675,), (1353243677,), (1353243714,), (1353243733,), (1353243765,), (1353243768,), (1353243827,), (1353243886,), (1353244242,), (1353245563,), (1353245542,), (1353246225,), (1353246255,), (1353246719,), (1353246741,), (1353246746,), (1353247228,), (1353247320,), (1353253839,), (1353253998,), (1353254456,), (1353254812,), (1353254890,), (1353254952,), (1353255157,), (1353255195,), (1353255262,), (1353255294,), (1353255641,), (1353270977,), (1353270969,), (1353271457,), (1353271935,), (1353271970,), (1353272005,), (1353272032,), (1353272346,), (1353272378,), (1353272406,), (1353272748,), (1353273130,), (1353273132,), (1353273133,), (1353273135,), (1353273158,), (1353273159,), (1353273202,), (1353273203,), (1353273205,), (1353273299,), (1353273301,), (1353273303,), (1353273304,), (1353273336,), (1353273338,), (1353273340,), (1353273363,), (1353273366,), (1353273367,), (1353273398,), (1353273402,), (1353273403,), (1353273404,), (1353273431,), (1353273444,), (1353273473,), (1353273502,), (1353273775,), (1353273777,), (1353273779,), (1353273783,), (1353274197,), (1353274379,), (1353274467,), (1353274469,), (1353274472,), (1353274480,), (1353274566,), (1353274533,), (1353274555,), (1353274559,), (1353274562,), (1353274575,), (1353274578,), (1353274580,), (1353274582,), (1353274584,), (1353274849,), (1353274875,), (1353274901,), (1353274937,), (1353274970,), (1353275258,), (1353275283,), (1353275323,), (1353275336,), (1353275350,), (1353275403,), (1353275410,), (1353275411,), (1353275415,), (1353275438,), (1353275440,), (1353275442,), (1353275444,), (1353275447,), (1353275451,), (1353275475,), (1353275478,), (1353275479,), (1353275505,), (1353275512,), (1353275515,), (1353275518,), (1353275523,), (1353275528,), (1353275581,), (1353275587,), (1353275591,), (1353275593,), (1353275594,), (1353275625,), (1353275627,), (1353275629,), (1353275632,), (1353275635,), (1353275696,), (1353275697,), (1353275718,), (1353275722,), (1353275735,), (1353275777,), (1353275780,), (1353275784,), (1353275786,), (1353275790,), (1353275894,), (1353275997,), (1353276007,), (1353276011,), (1353276014,), (1353276021,), (1353276046,), (1353276048,), (1353276050,), (1353276056,), (1353276088,), (1353276094,), (1353276102,), (1353276106,), (1353276111,), (1353276172,), (1353276153,), (1353276156,), (1353276159,), (1353276163,), (1353276167,), (1353276251,), (1353276286,), (1353276312,), (1353276327,), (1353276703,), (1353276754,), (1353276806,), (1353276857,), (1353276907,), (1353277425,), (1353277454,), (1353277487,), (1353277532,), (1353277563,), (1353277686,), (1353277688,), (1353277693,), (1353277696,), (1353277700,), (1353277724,), (1353277811,), (1353277836,), (1353277864,), (1353277909,), (1353277937,), (1353278136,), (1353278162,), (1353278199,), (1353278201,), (1353278297,), (1353278303,), (1353278313,), (1353278316,), (1353278318,), (1353278320,), (1353278351,), (1353278353,), (1353278355,), (1353278356,), (1353278393,), (1353278394,), (1353278396,), (1353278398,), (1353278400,), (1353278403,), (1353278447,), (1353278452,), (1353278455,), (1353278458,), (1353278516,), (1353278522,), (1353278526,), (1353278528,), (1353278533,), (1353278536,), (1353278559,), (1353278560,), (1353278561,), (1353278562,), (1353278565,), (1353278568,), (1353278599,), (1353278602,), (1353278607,), (1353278614,), (1353278624,), (1353278659,), (1353278660,), (1353278662,), (1353278663,), (1353278666,), (1353278718,), (1353278710,), (1353278714,), (1353278717,), (1353278750,), (1353278753,), (1353278756,), (1353278759,), (1353278763,), (1353278790,), (1353278792,), (1353278798,), (1353278801,), (1353278803,), (1353278833,), (1353278836,), (1353278840,), (1353278843,), (1353278846,), (1353278869,), (1353278871,), (1353278872,), (1353278874,), (1353278886,), (1353278890,), (1353278903,), (1353278906,), (1353278907,), (1353278908,), (1353278939,), (1353278940,), (1353278944,), (1353278951,), (1353278953,), (1353278955,), (1353278992,), (1353278993,), (1353278994,), (1353278995,), (1353279039,), (1353279048,), (1353279053,), (1353279054,), (1353279055,), (1353279058,), (1353279084,), (1353279087,), (1353279090,), (1353279094,), (1353279123,), (1353279126,), (1353279128,), (1353279130,), (1353279132,), (1353279133,), (1353279164,), (1353279166,), (1353279167,), (1353279168,), (1353279171,), (1353279396,), (1353279420,), (1353279427,), (1353279436,), (1353279441,), (1353279444,), (1353280057,), (1353280087,), (1353280144,), (1353280149,), (1353280288,), (1353280277,), (1353280282,), (1353280285,), (1353280287,), (1353280322,), (1353280325,), (1353280330,), (1353280335,), (1353280337,), (1353280376,), (1353280377,), (1353280380,), (1353280383,), (1353280386,), (1353280413,), (1353280416,), (1353280419,), (1353280420,), (1353280423,), (1353280427,), (1353280459,), (1353280461,), (1353280462,), (1353280464,), (1353280466,), (1353280505,), (1353280515,), (1353280516,), (1353280517,), (1353280520,), (1353280538,), (1353280541,), (1353280544,), (1353280547,), (1353280552,), (1353280556,), (1353280590,), (1353280597,), (1353280599,), (1353280601,), (1353280633,), (1353280636,), (1353280638,), (1353280640,), (1353280643,), (1353280647,), (1353280680,), (1353280684,), (1353280692,), (1353280698,), (1353280724,), (1353280727,), (1353280730,), (1353280733,), (1353280736,), (1353280739,), (1353280763,), (1353280766,), (1353280767,), (1353280768,), (1353280802,), (1353280806,), (1353280814,), (1353280817,), (1353280820,), (1353280823,), (1353280861,), (1353280864,), (1353280865,), (1353280866,), (1353280907,), (1353280909,), (1353280911,), (1353280913,), (1353280917,), (1353280921,), (1353280971,), (1353280959,), (1353280964,), (1353280970,), (1353281008,), (1353281012,), (1353281014,), (1353281015,), (1353281018,), (1353281020,), (1353281057,), (1353281063,), (1353281066,), (1353281071,), (1353281077,), (1353281096,), (1353281099,), (1353281101,), (1353281103,), (1353281105,), (1353281134,), (1353281137,), (1353281139,), (1353281141,), (1353281145,), (1353281148,), (1353281177,), (1353281180,), (1353281182,), (1353281214,), (1353281216,), (1353281222,), (1353281223,), (1353281228,), (1353281231,), (1353281304,), (1353281308,), (1353281314,), (1353281323,), (1353281326,), (1353281331,), (1353281342,), (1353281345,), (1353281349,), (1353281353,), (1353281370,), (1353281373,), (1353281375,), (1353281424,), (1353281427,), (1353281428,), (1353281429,), (1353281432,), (1353281435,), (1353281452,), (1353281455,), (1353281457,), (1353281459,), (1353281486,), (1353281490,), (1353281498,), (1353281503,), (1353281507,), (1353281511,), (1353281546,), (1353281549,), (1353281552,), (1353281554,), (1353281557,), (1353281601,), (1353281605,), (1353281607,), (1353281619,), (1353281622,), (1353281626,), (1353281664,), (1353281655,), (1353281659,), (1353281662,), (1353281698,), (1353281701,), (1353281703,), (1353281709,), (1353281717,), (1353281727,), (1353281755,), (1353281758,), (1353281768,), (1353281774,), (1353281781,), (1353281813,), (1353281819,), (1353281823,), (1353281826,), (1353281854,), (1353281858,), (1353281860,), (1353281862,), (1353281865,), (1353281869,), (1353281895,), (1353281903,), (1353281906,), (1353281909,), (1353281951,), (1353281953,), (1353281955,), (1353281956,), (1353282014,), (1353282017,), (1353282018,), (1353282022,), (1353282029,), (1353282033,), (1353282052,), (1353282054,), (1353282537,), (1353282527,), (1353282531,), (1353282534,), (1353282561,), (1353282563,), (1353282565,), (1353282567,), (1353282571,), (1353282574,), (1353282596,), (1353282599,), (1353282601,), (1353282635,), (1353282639,), (1353282642,), (1353282645,), (1353282648,), (1353282651,), (1353282674,), (1353282677,), (1353282678,), (1353282681,), (1353282857,), (1353282885,), (1353282914,), (1353282942,), (1353282974,), (1353283007,), (1353283575,), (1353283583,), (1353283591,), (1353283596,), (1353283603,), (1353283619,), (1353283621,), (1353283624,), (1353283923,), (1353283712,), (1353283745,), (1353283805,), (1353283852,), (1353283889,), (1353284166,), (1353284197,), (1353284233,), (1353284258,), (1353284311,), (1353284603,), (1353284628,), (1353284658,), (1353284673,), (1353284680,), (1353284724,), (1353284727,), (1353284730,), (1353284733,), (1353284757,), (1353285020,), (1353285022,), (1353285034,), (1353285065,), (1353285089,), (1353285205,), (1353285208,), (1353285212,), (1353285216,), (1353285221,), (1353285256,), (1353285259,), (1353285262,), (1353285266,), (1353285271,), (1353285275,), (1353285317,), (1353285327,), (1353285330,), (1353285334,), (1353285339,), (1353285345,), (1353285385,), (1353285389,), (1353285395,), (1353285403,), (1353285416,), (1353285434,), (1353285509,), (1353285515,), (1353286675,), (1353286698,), (1353286723,), (1353286728,), (1353287030,), (1353286942,), (1353286973,), (1353287000,), (1353287015,), (1353287129,), (1353287162,), (1353287190,), (1353287199,), (1353287201,), (1353287429,), (1353287432,), (1353287435,), (1353287437,), (1353287438,), (1353287441,), (1353287563,), (1353287576,), (1353287595,), (1353287614,), (1353287643,), (1353287812,), (1353287818,), (1353287869,), (1353287872,), (1353287874,), (1353287876,), (1353287953,), (1353287983,), (1353288000,), (1353288002,), (1353288230,), (1353288262,), (1353288274,), (1353288284,), (1353288290,), (1353288296,), (1353288331,), (1353288333,), (1353288337,), (1353288339,), (1353288343,), (1353288389,), (1353288396,), (1353288403,), (1353288407,), (1353288411,), (1353288416,), (1353288447,), (1353288451,), (1353288455,), (1353288473,), (1353288540,), (1353288544,), (1353288548,), (1353288551,), (1353288573,), (1353288576,), (1353288781,), (1353288893,), (1353288927,), (1353288967,), (1353289114,), (1353289124,), (1353289131,), (1353289142,), (1353289149,), (1353289152,), (1353289203,), (1353289211,), (1353289214,), (1353289216,), (1353289282,), (1353289287,), (1353289292,), (1353289293,), (1353289297,), (1353289301,), (1353289504,), (1353289497,), (1353289501,), (1353289503,), (1353289577,), (1353289578,), (1353289580,), (1353289583,), (1353289584,), (1353289715,), (1353289726,), (1353289739,), (1353289742,), (1353290034,), (1353290065,), (1353290100,), (1353290147,), (1353290159,), (1353290170,), (1353290361,), (1353290409,), (1353290415,), (1353290420,), (1353290427,), (1353290431,), (1353290486,), (1353290492,), (1353290496,), (1353290500,), (1353290522,), (1353290627,), (1353290640,), (1353290645,), (1353290649,), (1353290665,), (1353290713,), (1353290715,), (1353290717,), (1353290775,), (1353290801,), (1353290832,), (1353290860,), (1353290888,), (1353290892,), (1353290974,), (1353290976,), (1353290979,), (1353290981,), (1353290983,), (1353291158,), (1353291182,), (1353291232,), (1353291264,), (1353291295,), (1353291390,), (1353291392,), (1353291395,), (1353291418,), (1353291422,), (1353291473,), (1353291480,), (1353291504,), (1353291514,), (1353291896,), (1353291949,), (1353292002,), (1353292054,), (1353292098,), (1353292147,), (1353292447,), (1353292491,), (1353292502,), (1353292521,), (1353292534,), (1353292673,), (1353292604,), (1353292606,), (1353292610,), (1353292614,), (1353292633,), (1353292819,), (1353292829,), (1353292873,), (1353292877,), (1353292924,), (1353292926,), (1353292934,), (1353292960,), (1353292963,), (1353293076,), (1353293080,), (1353293085,), (1353293088,), (1353293160,), (1353293163,), (1353293171,), (1353293176,), (1353293199,), (1353293206,), (1353293263,), (1353293266,), (1353293269,), (1353293295,), (1353293552,), (1353293565,), (1353293569,), (1353293573,), (1353293579,), (1353293606,), (1353293732,), (1353293737,), (1353293797,), (1353293832,), (1353293930,), (1353294203,), (1353294207,), (1353294250,), (1353294309,), (1353294577,), (1353294595,), (1353294599,), (1353294605,), (1353294606,), (1353294609,), (1353294787,), (1353294790,), (1353294793,), (1353294796,), (1353294839,), (1353294850,), (1353294853,), (1353294855,), (1353294862,), (1353295001,), (1353295020,), (1353295036,), (1353295041,), (1353295071,), (1353295084,), (1353296184,), (1353296260,), (1353296338,), (1353296432,), (1353296518,), (1353297110,), (1353296864,), (1353297054,), (1353297485,), (1353297551,), (1353297572,), (1353297596,), (1353297617,), (1353297985,), (1353298012,), (1353298041,), (1353298103,), (1353298117,), (1353298149,), (1353298242,), (1353298248,), (1353298339,), (1353298343,), (1353298557,), (1353298563,), (1353298570,), (1353298579,), (1353298615,), (1353298653,), (1353298656,), (1353298674,), (1353298715,), (1353298750,), (1353298759,), (1353298892,), (1353298898,), (1353298927,), (1353298947,), (1353299103,), (1353299193,), (1353299243,), (1353299262,), (1353299271,), (1353299273,), (1353299415,), (1353299423,), (1353299466,), (1353299709,), (1353299714,), (1353299718,), (1353299721,), (1353299725,), (1353299761,), (1353299987,), (1353300015,), (1353300032,), (1353300035,), (1353300066,), (1353300075,), (1353300086,), (1353300100,), (1353300120,), (1353300132,), (1353300194,), (1353300218,), (1353300234,), (1353300237,), (1353300503,), (1353300506,), (1353300545,), (1353300552,), (1353300557,), (1353300568,), (1353300713,), (1353300721,), (1353300727,), (1353300730,), (1353301055,), (1353300953,), (1353300961,), (1353300966,), (1353300982,), (1353301017,), (1353301174,), (1353301196,), (1353301213,), (1353301249,), (1353301284,), (1353301365,), (1353301530,), (1353301575,), (1353301621,), (1353301642,), (1353301847,), (1353301850,), (1353301854,), (1353301858,), (1353301946,), (1353301958,), (1353301961,), (1353301968,), (1353301977,), (1353302080,), (1353302082,), (1353302085,), (1353302088,), (1353302154,), (1353302158,), (1353302162,), (1353302165,), (1353302170,), (1353302174,), (1353302296,), (1353302301,), (1353302317,), (1353302351,), (1353302388,), (1353302530,), (1353302547,), (1353302555,), (1353302559,), (1353302610,), (1353302615,), (1353302618,), (1353302622,), (1353302626,), (1353302630,), (1353302690,), (1353302731,), (1353302760,), (1353302778,), (1353302961,), (1353302972,), (1353302982,), (1353303001,), (1353303006,), (1353303012,), (1353303060,), (1353303063,), (1353303067,), (1353303272,), (1353303371,), (1353303443,), (1353303510,), (1353303517,), (1353303681,), (1353303685,), (1353303692,), (1353303722,), (1353303732,), (1353303743,), (1353303825,), (1353303810,), (1353303814,), (1353303818,), (1353303928,), (1353303932,), (1353303939,), (1353303943,), (1353303947,), (1353303950,), (1353303997,), (1353304004,), (1353304008,), (1353304035,), (1353304042,), (1353304047,), (1353304198,), (1353304204,), (1353304207,), (1353304275,), (1353304280,), (1353304284,), (1353304288,), (1353304294,), (1353304299,), (1353304336,), (1353304340,), (1353304343,), (1353304379,), (1353304390,), (1353304405,), (1353304411,), (1353304502,), (1353304504,), (1353304508,), (1353304514,), (1353304517,), (1353304523,), (1353304653,), (1353304765,), (1353304833,), (1353305123,), (1353305129,), (1353305154,), (1353305158,), (1353305173,), (1353305180,), (1353305207,), (1353305211,), (1353305215,), (1353305218,), (1353305257,), (1353305268,), (1353305283,), (1353305291,), (1353305295,), (1353305322,), (1353305411,), (1353305443,), (1353305458,), (1353305479,), (1353305488,), (1353305537,), (1353305747,), (1353305753,), (1353305757,), (1353305769,), (1353305795,), (1353306018,), (1353306023,), (1353306025,), (1353306027,), (1353306032,), (1353306036,), (1353306427,), (1353306361,), (1353306411,), (1353306413,), (1353306416,), (1353306794,), (1353306870,), (1353306935,), (1353306938,), (1353306942,), (1353307354,), (1353307368,), (1353307398,), (1353307411,), (1353307437,), (1353307507,), (1353307568,), (1353307573,), (1353307575,), (1353307577,), (1353307649,), (1353307652,), (1353307655,), (1353307658,), (1353307663,), (1353307669,), (1353307766,), (1353307770,), (1353307773,), (1353308269,), (1353308337,), (1353308395,), (1353308442,), (1353308471,), (1353308502,), (1353308703,), (1353308706,), (1353308722,), (1353308730,), (1353308833,), (1353308838,), (1353308841,), (1353308843,), (1353308846,), (1353308847,), (1353309014,), (1353309048,), (1353309050,), (1353309054,), (1353309059,), (1353309085,), (1353309101,), (1353309127,), (1353309178,), (1353309206,), (1353309230,), (1353309272,), (1353309277,), (1353309289,), (1353309293,), (1353309297,), (1353309310,), (1353309323,), (1353309391,), (1353309394,), (1353309401,), (1353309428,), (1353362235,), (1353362230,), (1353362268,), (1353362314,), (1353362318,), (1353362642,), (1353362725,), (1353362953,), (1353363117,), (1353364038,), (1353364071,), (1353364488,), (1353364544,), (1353364593,), (1353365320,), (1353365381,), (1353365959,), (1353365953,), (1353365956,), (1353366415,), (1353366427,), (1353366486,), (1353366822,), (1353366848,), (1353366888,), (1353366925,), (1353366965,), (1353367443,), (1353367474,), (1353367505,), (1353367539,), (1353367571,), (1353367856,), (1353367862,), (1353367894,), (1353368789,), (1353368816,), (1353368845,), (1353368871,), (1353368898,), (1353368975,), (1353369006,), (1353369041,), (1353369079,), (1353369114,), (1353369146,), (1353369558,), (1353369602,), (1353369638,), (1353369842,), (1353369846,), (1353369851,), (1353369855,), (1353369860,), (1353370046,), (1353370066,), (1353370100,), (1353370105,), (1353370122,), (1353370130,), (1353370260,), (1353370262,), (1353370265,), (1353370268,), (1353370963,), (1353371016,), (1353371079,), (1353371106,), (1353371125,), (1353371380,), (1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,), (1353377626,), (1353377305,), (1353377309,), (1353377314,), (1353377365,), (1353378189,), (1353378225,), (1353378255,), (1353378295,), (1353378313,), (1353378459,), (1353378467,), (1353378487,), (1353378514,), (1353378542,), (1353378893,), (1353378921,), (1353378948,), (1353378971,), (1353378975,), (1353378980,), (1353379106,), (1353379122,), (1353379150,), (1353379171,), (1353379457,), (1353379460,), (1353379491,), (1353379505,), (1353379510,), (1353379513,), (1353379659,), (1353379685,), (1353379694,), (1353379697,), (1353379699,), (1353379722,), (1353379726,), (1353379728,), (1353379731,), (1353379910,), (1353379915,), (1353379942,), (1353379949,), (1353380016,), (1353380020,), (1353380025,), (1353380030,), (1353380066,), (1353380070,), (1353380073,), (1353380341,), (1353380378,), (1353380407,), (1353380438,), (1353380442,), (1353380560,), (1353380573,), (1353380602,), (1353380623,), (1353380630,), (1353380633,), (1353380670,), (1353380673,), (1353380676,), (1353380680,), (1353380888,), (1353380905,), (1353380908,), (1353380929,), (1353380951,), (1353380957,), (1353381010,), (1353380993,), (1353380999,), (1353381003,), (1353381007,), (1353381371,), (1353381467,), (1353381473,), (1353381476,), (1353381747,), (1353381753,), (1353381771,), (1353381797,), (1353381802,), (1353381856,), (1353381860,), (1353382235,), (1353382239,), (1353382323,), (1353382327,), (1353382580,), (1353382592,), (1353382603,), (1353382631,), (1353382661,), (1353382822,), (1353382826,), (1353382845,), (1353383000,), (1353383020,), (1353383026,), (1353383062,), (1353383488,), (1353383541,), (1353383600,), (1353383679,), (1353384176,), (1353384214,), (1353384221,), (1353384225,), (1353384255,), (1353384261,), (1353384267,), (1353384334,), (1353390543,), (1353390811,), (1353390814,), (1353390961,), (1353390976,), (1353390979,), (1353390982,), (1353390985,), (1353390992,), (1353391178,), (1353391180,), (1353391192,), (1353391208,), (1353391211,), (1353391244,), (1353391247,), (1353391253,), (1353391317,), (1353391289,), (1353391296,), (1353391302,), (1353391307,), (1353391312,), (1353391347,), (1353391351,), (1353391370,), (1353391414,), (1353391427,), (1353391431,), (1353391441,), (1353391454,), (1353391463,), (1353391805,), (1353391833,), (1353391861,), (1353392014,), (1353392017,), (1353392021,), (1353392052,), (1353392079,), (1353392096,), (1353392132,), (1353392135,), (1353392138,), (1353392141,), (1353392184,), (1353392189,), (1353392202,), (1353392205,), (1353392211,), (1353392213,), (1353392262,), (1353392276,), (1353392280,), (1353392286,), (1353392290,), (1353392294,), (1353392356,), (1353392359,), (1353392363,), (1353392366,), (1353392396,), (1353392401,), (1353392406,), (1353392410,), (1353392415,), (1353392419,), (1353392450,), (1353392454,), (1353392458,), (1353392461,), (1353392466,), (1353392521,), (1353392524,), (1353392529,), (1353392533,), (1353392635,), (1353392637,), (1353392643,), (1353392662,), (1353392683,), (1353392715,), (1353392895,), (1353392898,), (1353392902,), (1353392906,), (1353392910,), (1353392919,), (1353393018,), (1353393022,), (1353393024,), (1353393084,), (1353393078,), (1353393080,), (1353393083,), (1353393131,), (1353393134,), (1353393136,), (1353393140,), (1353393143,), (1353393146,), (1353393186,), (1353393188,), (1353393191,), (1353393246,), (1353393249,), (1353393252,), (1353393254,), (1353393258,), (1353393261,), (1353393292,), (1353393302,), (1353393304,), (1353393307,), (1353393312,), (1353393321,), (1353393350,), (1353393353,), (1353393355,), (1353393358,), (1353393361,), (1353393405,), (1353393406,), (1353393408,), (1353393410,), (1353393411,), (1353393415,), (1353393463,), (1353393470,), (1353393474,), (1353393477,), (1353393482,), (1353393621,), (1353393627,), (1353393633,), (1353393658,), (1353393685,), (1353393806,), (1353393813,), (1353393826,), (1353393838,), (1353393962,), (1353393968,), (1353393971,), (1353393974,), (1353394008,), (1353394009,), (1353394012,), (1353394015,), (1353394018,), (1353394023,), (1353394055,), (1353394063,), (1353394065,), (1353394068,), (1353394180,), (1353394210,), (1353394250,), (1353394286,), (1353394320,), (1353394354,), (1353394436,), (1353394476,), (1353394526,), (1353394589,), (1353394667,), (1353395087,), (1353394895,), (1353395012,), (1353396042,), (1353396132,), (1353396210,), (1353396287,), (1353396364,), (1353396446,), (1353397228,), (1353397281,), (1353397338,), (1353397391,), (1353397446,), (1353397497,), (1353398076,), (1353398217,), (1353398287,), (1353398359,), (1353399061,), (1353399095,), (1353399131,), (1353399169,), (1353399226,), (1353399288,), (1353399640,), (1353399684,), (1353399744,), (1353399804,), (1353399856,), (1353399892,), (1353400027,), (1353400032,), (1353400043,), (1353400113,), (1353400115,), (1353400118,), (1353400120,), (1353400121,), (1353400124,), (1353400294,), (1353400321,), (1353400350,), (1353400440,), (1353400549,), (1353400947,), (1353401111,), (1353401273,), (1353401276,), (1353401329,), (1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,), (1353401871,), (1353401875,), (1353401885,), (1353401895,), (1353401899,), (1353401934,), (1353401939,), (1353401943,), (1353401972,), (1353401975,), (1353401979,), (1353401983,), (1353402006,), (1353402010,), (1353402099,), (1353402126,), (1353402130,), (1353402147,), (1353402154,), (1353402160,), (1353402290,), (1353402294,), (1353402420,), (1353402423,), (1353402425,), (1353402427,), (1353402431,), (1353402469,), (1353402471,), (1353402474,), (1353402477,), (1353402479,), (1353402483,), (1353402541,), (1353402524,), (1353402528,), (1353402532,), (1353402535,), (1353402569,), (1353402573,), (1353402576,), (1353402580,), (1353402821,), (1353402880,), (1353402902,), (1353402917,), (1353403067,), (1353403071,), (1353403075,), (1353403079,), (1353403084,), (1353403087,), (1353403125,), (1353403128,), (1353403131,), (1353403134,), (1353403138,), (1353403170,), (1353403173,), (1353403177,), (1353403181,), (1353403327,), (1353403330,), (1353403333,), (1353403356,), (1353403388,), (1353403607,), (1353403640,), (1353403669,), (1353403697,), (1353404169,), (1353404198,), (1353404216,), (1353404234,), (1353404490,), (1353404509,), (1353404513,), (1353404517,), (1353404523,), (1353404536,), (1353404651,), (1353404683,), (1353404720,), (1353404775,), (1353404814,), (1353405083,), (1353405086,), (1353405089,), (1353405760,), (1353405790,), (1353405815,), (1353405860,), (1353405895,), (1353405933,), (1353406380,), (1353406466,), (1353406493,), (1353406511,), (1353406527,), (1353406567,), (1353406731,), (1353406736,), (1353406740,), (1353406743,), (1353407182,), (1353406962,), (1353406992,), (1353407021,), (1353407073,), (1353407130,), (1353407401,), (1353407404,), (1353407408,), (1353407417,), (1353407710,), (1353407724,), (1353407729,), (1353407739,), (1353407760,), (1353407791,), (1353407854,), (1353407858,), (1353407860,), (1353407864,), (1353407911,), (1353407923,), (1353407933,), (1353407948,), (1353407956,), (1353407958,), (1353408035,), (1353408037,), (1353408043,), (1353408046,), (1353408050,), (1353408056,), (1353408094,), (1353408110,), (1353408117,), (1353408293,), (1353408297,), (1353408312,), (1353408320,), (1353408321,), (1353408324,), (1353408370,), (1353408382,), (1353408384,), (1353408388,), (1353408397,), (1353408499,), (1353408515,), (1353408525,), (1353408712,), (1353408745,), (1353408847,), (1353408850,), (1353408852,), (1353408854,), (1353408855,), (1353408925,), (1353408926,), (1353408928,), (1353408930,), (1353408932,), (1353408984,), (1353408991,), (1353409024,), (1353409051,), (1353409076,), (1353409105,), (1353409587,), (1353409619,), (1353409654,), (1353410244,), (1353410158,), (1353410187,), (1353410218,), (1353410580,), (1353410605,), (1353410632,), (1353410656,), (1353410686,), (1353411318,), (1353411366,), (1353411418,), (1353411453,), (1353411510,), (1353411578,), (1353412024,), (1353412099,), (1353412177,), (1353412253,), (1353412329,), (1353412899,), (1353412965,), (1353412995,), (1353413028,), (1353413478,), (1353413545,), (1353413598,), (1353413641,), (1353413685,), (1353413713,), (1353414057,), (1353414085,), (1353414111,), (1353414126,), (1353414162,), (1353414165,), (1353414168,), (1353414171,), (1353414174,), (1353414176,), (1353414215,), (1353414217,), (1353414218,), (1353414220,), (1353414539,), (1353414567,), (1353414596,), (1353414629,), (1353414664,), (1353414792,), (1353414794,), (1353414817,), (1353414842,), (1353414845,), (1353414916,), (1353414919,), (1353414921,), (1353414923,), (1353414926,), (1353414966,), (1353414968,), (1353414971,), (1353414974,), (1353414978,), (1353415017,), (1353415021,), (1353415025,), (1353415027,), (1353415208,), (1353415213,), (1353415218,), (1353415222,), (1353415314,), (1353415274,), (1353415291,), (1353415295,), (1353415305,), (1353415309,), (1353415351,), (1353415354,), (1353415358,), (1353415362,), (1353415397,), (1353415403,), (1353415405,), (1353415408,), (1353415413,), (1353415419,), (1353415444,), (1353415447,), (1353415450,), (1353415454,), (1353415491,), (1353415495,), (1353415500,), (1353415507,), (1353415520,), (1353415533,), (1353415566,), (1353415569,), (1353415574,), (1353415577,), (1353415581,), (1353415617,), (1353415621,), (1353415623,), (1353415687,), (1353415690,), (1353415694,), (1353415698,), (1353415701,), (1353415706,), (1353415736,), (1353415745,), (1353415748,), (1353415751,), (1353415782,), (1353415787,), (1353415790,), (1353415793,), (1353415843,), (1353415846,), (1353415850,), (1353415853,), (1353415856,), (1353415861,), (1353415901,), (1353415913,), (1353415917,), (1353415921,), (1353415924,), (1353415969,), (1353415973,), (1353415977,), (1353415980,), (1353415985,), (1353415988,), (1353416017,), (1353416020,), (1353416024,), (1353416028,), (1353416031,), (1353416035,), (1353416060,), (1353416063,), (1353416176,), (1353420383,), (1353421581,), (1353421665,), (1353421767,), (1353421879,), (1353421979,), (1353422914,), (1353422973,), (1353423025,), (1353423067,), (1353423137,), (1353423178,), (1353423708,), (1353423763,), (1353424677,), (1353424731,), (1353424742,), (1353424745,), (1353424751,), (1353424783,), (1353424885,), (1353424894,), (1353424921,), (1353424948,), (1353424976,), (1353425206,), (1353425210,), (1353425281,), (1353425427,), (1353425430,), (1353425433,), (1353425436,), (1353425440,), (1353425445,), (1353425472,), (1353425475,), (1353425479,), (1353425482,), (1353425486,), (1353425568,), (1353425571,), (1353425579,), (1353425658,), (1353425660,), (1353425663,), (1353425666,), (1353425764,), (1353425768,), (1353425772,), (1353425776,), (1353425785,), (1353425978,), (1353426012,), (1353426041,), (1353426068,), (1353426197,), (1353426200,), (1353426204,), (1353426208,), (1353426213,), (1353426217,), (1353426282,), (1353426311,), (1353426340,), (1353426409,), (1353426758,), (1353426710,), (1353426714,), (1353426748,), (1353426751,), (1353426753,), (1353426799,), (1353426804,), (1353426809,), (1353426814,), (1353426817,), (1353426871,), (1353426878,), (1353426886,), (1353426890,), (1353426994,), (1353426997,), (1353427001,), (1353427005,), (1353427010,), (1353427014,), (1353427052,), (1353427057,), (1353427060,), (1353427062,), (1353427065,), (1353427069,), (1353427095,), (1353427098,), (1353427102,), (1353427106,), (1353427143,), (1353427147,), (1353427149,), (1353427153,), (1353427157,), (1353427162,), (1353427202,), (1353427204,), (1353427207,), (1353427210,), (1353427244,), (1353427247,), (1353427251,), (1353427257,), (1353427267,), (1353427277,), (1353427306,), (1353427326,), (1353427329,), (1353427332,), (1353427381,), (1353427411,), (1353427413,), (1353427416,), (1353427420,), (1353427450,), (1353427454,), (1353427458,), (1353427462,), (1353427467,), (1353427472,), (1353427494,), (1353427498,), (1353427502,), (1353427505,), (1353427508,), (1353427545,), (1353427549,), (1353427552,), (1353427592,), (1353427596,), (1353427601,), (1353427610,), (1353427613,), (1353427664,), (1353427654,), (1353427658,), (1353427661,), (1353427710,), (1353427712,), (1353427715,), (1353427719,), (1353427763,), (1353427767,), (1353427770,), (1353427774,), (1353427824,), (1353427834,), (1353427842,), (1353427849,), (1353427853,), (1353427856,), (1353428015,), (1353428017,), (1353428022,), (1353428027,), (1353428059,), (1353428062,), (1353428066,), (1353428070,), (1353428100,), (1353428103,), (1353428106,), (1353428108,), (1353428111,), (1353428114,), (1353428157,), (1353428159,), (1353428162,), (1353428167,), (1353428178,), (1353428220,), (1353428223,), (1353428267,), (1353428367,), (1353428371,), (1353428419,), (1353428465,), (1353428612,), (1353428609,), (1353428659,), (1353428661,), (1353428663,), (1353428709,), (1353428713,), (1353428718,), (1353428722,), (1353428726,), (1353428761,), (1353428764,), (1353428805,), (1353428808,), (1353428811,), (1353428814,), (1353428816,), (1353428846,), (1353428847,), (1353428849,), (1353428851,), (1353428895,), (1353428902,), (1353428907,), (1353429023,), (1353429068,), (1353429072,), (1353429102,), (1353429104,), (1353429108,), (1353429111,), (1353429150,), (1353429152,), (1353429155,), (1353429158,), (1353429209,), (1353429214,), (1353429217,), (1353429221,), (1353429224,), (1353429228,), (1353429271,), (1353429277,), (1353429288,), (1353429301,), (1353429833,), (1353429839,), (1353429847,), (1353429855,), (1353429865,), (1353429872,), (1353429937,), (1353429962,), (1353429990,), (1353430153,), (1353430057,), (1353430073,), (1353430098,), (1353430126,), (1353430148,), (1353430228,), (1353430263,), (1353430294,), (1353430321,), (1353430346,), (1353430348,), (1353430497,), (1353430530,), (1353430557,), (1353430586,), (1353430915,), (1353430946,), (1353430974,), (1353431007,), (1353431036,), (1353431371,), (1353431397,), (1353431426,), (1353431455,), (1353431794,), (1353431825,), (1353431851,), (1353431886,), (1353431894,), (1353432392,), (1353432476,), (1353432555,), (1353432630,), (1353432712,), (1353432788,), (1353433683,), (1353433734,), (1353433775,), (1353433810,), (1353433838,), (1353434706,), (1353434746,), (1353434803,), (1353434821,), (1353434830,), (1353434846,), (1353435429,), (1353435445,), (1353435448,), (1353435493,), (1353435532,), (1353435817,), (1353435845,), (1353435878,), (1353435910,), (1353435966,), (1353436048,), (1353436190,), (1353436244,), (1353436297,), (1353436351,), (1353436407,), (1353436464,), (1353436680,), (1353436685,), (1353436688,), (1353436696,), (1353436814,), (1353436819,), (1353436824,), (1353436965,), (1353436968,), (1353436973,), (1353437007,), (1353437012,), (1353437017,), (1353437025,), (1353437031,), (1353437039,), (1353437080,), (1353437064,), (1353437068,), (1353437073,), (1353437155,), (1353437163,), (1353437192,), (1353437222,), (1353437250,), (1353437371,), (1353437373,), (1353437376,), (1353437379,), (1353437383,), (1353437509,), (1353437526,), (1353437530,), (1353437534,), (1353437538,), (1353437542,), (1353437677,), (1353437681,), (1353437684,), (1353437687,), (1353437720,), (1353437722,), (1353437725,), (1353437728,), (1353437731,), (1353437770,), (1353437776,), (1353437779,), (1353437782,), (1353437788,), (1353437793,), (1353437830,), (1353437835,), (1353437843,), (1353437848,), (1353437890,), (1353437905,), (1353437908,), (1353437912,), (1353437916,), (1353437920,), (1353437948,), (1353437953,), (1353437956,), (1353437959,), (1353437963,), (1353437998,), (1353438002,), (1353438003,), (1353438006,), (1353438011,), (1353438036,), (1353438038,), (1353438042,), (1353438045,), (1353438051,), (1353438055,), (1353438081,), (1353438083,), (1353438087,), (1353438091,), (1353438099,), (1353438136,), (1353438152,), (1353438181,), (1353438191,), (1353438196,), (1353438213,), (1353438301,), (1353438306,), (1353438338,), (1353438459,), (1353438447,), (1353438450,), (1353438453,), (1353438456,), (1353438584,), (1353438588,), (1353438591,), (1353438595,), (1353438598,), (1353438642,), (1353438648,), (1353438651,), (1353439053,), (1353439056,), (1353439060,), (1353439097,), (1353439129,), (1353439156,), (1353439284,), (1353439311,), (1353439327,), (1353439331,), (1353439333,), (1353439336,), (1353439361,), (1353439363,), (1353439370,), (1353439373,), (1353439533,), (1353439565,), (1353439595,), (1353439623,), (1353439665,), (1353439692,), (1353439814,), (1353439817,), (1353439821,), (1353439824,), (1353440019,), (1353440038,), (1353440040,), (1353440044,), (1353440075,), (1353440107,), (1353440245,), (1353440248,), (1353440251,), (1353440254,), (1353440257,), (1353440356,), (1353440366,), (1353440381,), (1353440385,), (1353440389,), (1353440458,), (1353440461,), (1353440478,), (1353440489,), (1353440543,), (1353440590,), (1353440616,), (1353440642,), (1353441723,), (1353441750,), (1353441782,), (1353441836,), (1353441885,), (1353442465,), (1353442347,), (1353442374,), (1353442422,), (1353442920,), (1353442949,), (1353442977,), (1353443006,), (1353443018,), (1353443131,), (1353443138,), (1353443142,), (1353443146,), (1353443150,), (1353443173,), (1353443253,), (1353443256,), (1353443261,), (1353443288,), (1353443901,), (1353443954,), (1353444005,), (1353444066,), (1353444129,), (1353444192,), (1353444499,), (1353444528,), (1353444558,), (1353444594,), (1353445104,), (1353445132,), (1353445159,), (1353445194,), (1353445205,), (1353445211,), (1353445420,), (1353445424,), (1353445431,), (1353445442,), (1353445447,), (1353445510,), (1353445514,), (1353445516,), (1353445565,), (1353445618,), (1353445675,), (1353446189,), (1353446218,), (1353446269,), (1353446357,), (1353446586,), (1353446599,), (1353446604,), (1353446608,), (1353446657,), (1353446881,), (1353446912,), (1353446939,), (1353447187,), (1353448347,), (1353448172,), (1353448224,), (1353448277,), (1353449468,), (1353449517,), (1353449571,), (1353449608,), (1353449671,), (1353449772,), (1353450120,), (1353450197,), (1353450266,), (1353450340,), (1353450407,), (1353450446,), (1353450599,), (1353450648,), (1353450699,), (1353450777,), (1353450976,), (1353451034,), (1353451040,), (1353451046,), (1353451050,), (1353451081,), (1353451092,), (1353451095,), (1353451103,), (1353451224,), (1353451226,), (1353451229,), (1353451233,), (1353451237,), (1353451241,), (1353451267,), (1353451271,), (1353451274,), (1353451277,), (1353451280,), (1353451284,), (1353451304,), (1353451308,), (1353451311,), (1353451314,), (1353451349,), (1353451352,), (1353451354,), (1353451369,), (1353451372,), (1353451392,), (1353451396,), (1353451400,), (1353451403,), (1353451407,), (1353451440,), (1353451447,), (1353451450,), (1353451454,), (1353451491,), (1353451497,), (1353451502,), (1353451504,), (1353451508,), (1353451546,), (1353451549,), (1353451554,), (1353451559,), (1353451564,), (1353451749,), (1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,), (1353452148,), (1353452177,), (1353452206,), (1353452236,), (1353452263,), (1353452301,), (1353452531,), (1353452534,), (1353452556,), (1353452618,), (1353452811,), (1353452820,), (1353452824,), (1353452834,), (1353452836,), (1353453038,), (1353453045,), (1353453049,), (1353453054,), (1353453059,), (1353453065,), (1353453098,), (1353453104,), (1353453109,), (1353453111,), (1353453149,), (1353453152,), (1353453159,), (1353453359,), (1353453361,), (1353453364,), (1353453414,), (1353453416,), (1353453421,), (1353453535,), (1353453612,), (1353453578,), (1353453582,), (1353453606,), (1353453610,), (1353454416,), (1353454483,), (1353454489,), (1353454493,), (1353454498,), (1353454519,), (1353454797,), (1353454802,), (1353454806,), (1353454809,), (1353454836,), (1353454839,), (1353454842,), (1353454847,), (1353454883,), (1353454891,), (1353454902,), (1353454917,), (1353454973,), (1353454979,), (1353454982,), (1353454985,), (1353454989,), (1353454992,), (1353455038,), (1353455041,), (1353455044,), (1353459179,), (1353459174,), (1353459211,), (1353459307,), (1353459419,), (1353459469,), (1353459472,), (1353459476,), (1353459480,), (1353459482,), (1353459516,), (1353459520,), (1353459523,), (1353459526,), (1353459556,), (1353459559,), (1353459596,), (1353459600,), (1353459611,), (1353459618,), (1353459625,), (1353459639,), (1353459676,), (1353459680,), (1353459683,), (1353459685,), (1353459689,), (1353459734,), (1353459720,), (1353459723,), (1353459728,), (1353459731,), (1353459776,), (1353459779,), (1353459782,), (1353459786,), (1353459820,), (1353459831,), (1353459834,), (1353459857,), (1353459862,), (1353459866,), (1353459871,), (1353459875,), (1353459879,), (1353459921,), (1353459924,), (1353459928,), (1353459932,), (1353459936,), (1353459940,), (1353459977,), (1353459981,), (1353459986,), (1353459990,), (1353460025,), (1353460028,), (1353460032,), (1353460038,), (1353460040,), (1353460089,), (1353460101,), (1353460213,), (1353460216,), (1353460220,), (1353460227,), (1353460237,), (1353460285,), (1353460290,), (1353460344,), (1353460346,), (1353460349,), (1353460352,), (1353460357,), (1353460360,), (1353460396,), (1353460399,), (1353460403,), (1353460408,), (1353460412,), (1353460418,), (1353460439,), (1353460444,), (1353460446,), (1353460496,), (1353460499,), (1353460507,), (1353460511,), (1353460547,), (1353460552,), (1353460556,), (1353460559,), (1353460618,), (1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,), (1353462030,), (1353462033,), (1353462037,), (1353462039,), (1353462042,), (1353462046,), (1353462109,), (1353462136,), (1353462163,), (1353462189,), (1353462226,), (1353462429,), (1353462432,), (1353462537,), (1353462542,), (1353462547,), (1353462552,), (1353462759,), (1353462787,), (1353462825,), (1353462876,), (1353463809,), (1353463633,), (1353463661,), (1353463688,), (1353463717,), (1353463754,), (1353464198,), (1353464430,), (1353464518,), (1353464832,), (1353464875,), (1353464917,), (1353464949,), (1353465927,), (1353466004,), (1353466080,), (1353466887,), (1353467090,), (1353467193,), (1353467241,), (1353467293,), (1353467998,), (1353468101,), (1353468225,), (1353469752,), (1353469831,), (1353469910,), (1353469992,), (1353470062,), (1353470781,), (1353470831,), (1353470881,), (1353470943,), (1353470997,), (1353471796,), (1353471871,), (1353471931,), (1353471984,), (1353473359,), (1353473416,), (1353473465,), (1353473519,), (1353474124,), (1353474293,), (1353474365,), (1353475009,), (1353475056,), (1353475105,), (1353475191,), (1353475244,), (1353475559,), (1353475590,), (1353475621,), (1353475647,), (1353475688,), (1353475714,), (1353476597,), (1353476630,), (1353477318,), (1353477160,), (1353477214,), (1353477263,), (1353477291,), (1353477620,), (1353477673,), (1353477689,), (1353477736,), (1353477739,), (1353477741,), (1353477744,), (1353477747,), (1353477751,), (1353477775,), (1353477790,), (1353477800,), (1353477802,), (1353477805,), (1353478067,), (1353478095,), (1353478491,), (1353478519,), (1353478548,), (1353478616,), (1353478655,), (1353478683,), (1353478797,), (1353478802,), (1353478807,), (1353478811,), (1353478817,), (1353478820,), (1353478897,), (1353478921,), (1353478948,), (1353478984,), (1353479015,), (1353480518,), (1353480754,), (1353480985,), (1353481942,), (1353482100,), (1353482216,), (1353482296,), (1353482431,), (1353483124,), (1353483267,), (1353483372,), (1353483439,), (1353483494,), (1353484544,), (1353484596,), (1353484646,), (1353484724,), (1353484876,), (1353485664,), (1353485742,), (1353485822,), (1353486905,), (1353488195,), (1353488249,), (1353488345,), (1353488521,), (1353488592,), (1353488696,), (1353490050,), (1353489620,), (1353489732,), (1353489846,), (1353489954,), (1353490787,), (1353490876,), (1353490958,), (1353491233,), (1353491250,), (1353491257,), (1353491290,), (1353491295,), (1353491299,), (1353491305,), (1353491340,), (1353492171,), (1353492201,), (1353492293,), (1353492365,), (1353492423,), (1353492652,), (1353492655,), (1353492682,), (1353492713,), (1353493101,), (1353493130,), (1353493159,), (1353493200,), (1353493231,), (1353493258,), (1353493530,), (1353493562,), (1353493569,), (1353493572,), (1353493575,), (1353493733,), (1353493739,), (1353493744,), (1353493777,), (1353493789,), (1353493795,), (1353493867,), (1353493872,), (1353493875,), (1353494217,), (1353494247,), (1353494277,), (1353494304,), (1353494336,), (1353494364,), (1353494435,), (1353494437,), (1353494440,), (1353494449,), (1353494478,), (1353494507,), (1353494803,), (1353494830,), (1353494853,), (1353494968,), (1353494972,), (1353494977,), (1353494980,), (1353494985,), (1353495012,), (1353495016,), (1353495024,), (1353495032,), (1353495039,), (1353495314,), (1353495229,), (1353495262,), (1353495285,), (1353495640,), (1353495669,), (1353495694,), (1353495719,), (1353496243,), (1353496324,), (1353496402,), (1353496500,), (1353496589,), (1353497415,), (1353497443,), (1353497474,), (1353498161,), (1353498226,), (1353498292,), (1353498362,), (1353498393,), (1353498663,), (1353498688,), (1353498703,), (1353498736,), (1353499181,), (1353499237,), (1353499330,), (1353499417,), (1353499447,), (1353499794,), (1353499832,), (1353499881,), (1353499934,), (1353499991,), (1353500011,), (1353500163,), (1353500174,), (1353500177,), (1353500181,), (1353500283,), (1353500288,), (1353500290,), (1353500293,), (1353500319,), (1353500636,), (1353500663,), (1353500701,), (1353500714,), (1353500737,), (1353500770,), (1353501012,), (1353501047,), (1353501054,), (1353501489,), (1353501528,), (1353501529,), (1353501531,), (1353501534,), (1353501674,), (1353501703,), (1353501741,), (1353501769,), (1353501798,), (1353502115,), (1353502147,), (1353502176,), (1353502206,), (1353502376,), (1353502373,), (1353502416,), (1353502420,), (1353502425,), (1353502429,), (1353502434,), (1353502475,), (1353502478,), (1353502481,), (1353502488,), (1353502497,), (1353502599,), (1353502637,), (1353502792,), (1353503043,), (1353503454,), (1353503479,), (1353503520,), (1353503827,), (1353503941,), (1353504127,), (1353504307,), (1353504495,), (1353504745,), (1353504960,), (1353504972,), (1353504978,), (1353504983,), (1353505220,), (1353506394,), (1353506443,), (1353506494,), (1353507244,), (1353507287,), (1353507314,), (1353507379,), (1353507985,), (1353508039,), (1353508224,), (1353508256,), (1353508284,), (1353508458,), (1353508405,), (1353508427,), (1353508705,), (1353508732,), (1353508782,), (1353508832,), (1353509738,), (1353509834,), (1353509931,), (1353510030,), (1353510268,), (1353510280,), (1353510310,), (1353510332,), (1353510352,), (1353510388,), (1353510440,), (1353510470,), (1353510519,), (1353510571,), (1353510622,), (1353512211,), (1353512494,), (1353512568,), (1353512668,), (1353513357,), (1353513432,), (1353513483,), (1353513537,), (1353514234,), (1353514286,), (1353514384,), (1353514489,), (1353514566,), (1353516704,), (1353516759,), (1353516798,), (1353517208,), (1353517237,), (1353517264,), (1353517319,), (1353517325,), (1353517342,), (1353517371,), (1353517397,), (1353517477,), (1353517612,), (1353517615,), (1353517634,), (1353517661,), (1353517778,), (1353517783,), (1353517786,), (1353517792,), (1353518630,), (1353518084,), (1353518170,), (1353518290,), (1353518517,), (1353519657,), (1353519706,), (1353519757,), (1353519810,), (1353519861,), (1353519960,), (1353520831,), (1353520929,), (1353521055,), (1353521189,), (1353521831,), (1353521882,), (1353521985,), (1353522096,), (1353522836,), (1353523081,), (1353523102,), (1353523107,), (1353523124,), (1353523632,), (1353523664,), (1353523700,), (1353523729,), (1353523743,), (1353524100,), (1353524105,), (1353524109,), (1353524259,), (1353524261,), (1353524293,), (1353524318,), (1353524344,), (1353524371,), (1353524844,), (1353524946,), (1353524997,), (1353525064,), (1353525120,), (1353525608,), (1353525659,), (1353525717,), (1353526437,), (1353526464,), (1353526490,), (1353526516,), (1353526541,), (1353526781,), (1353526785,), (1353526788,), (1353526790,), (1353526812,), (1353526817,), (1353526833,), (1353526859,), (1353526892,), (1353527244,), (1353527306,), (1353527370,), (1353527428,), (1353527822,), (1353527831,), (1353527842,), (1353527852,), (1353527864,), (1353527889,), (1353528165,), (1353528138,), (1353528163,), (1353528344,), (1353528346,), (1353528348,), (1353528349,), (1353528363,), (1353528364,), (1353528604,), (1353528658,), (1353528719,), (1353528782,), (1353528845,), (1353528895,), (1353529304,), (1353529332,), (1353529375,), (1353529410,), (1353529412,), (1353529414,), (1353529415,), (1353529417,), (1353529419,), (1353529443,), (1353529445,), (1353529447,), (1353529449,), (1353529476,), (1353529477,), (1353529478,), (1353529481,), (1353529483,), (1353529489,), (1353529521,), (1353529522,), (1353529524,), (1353529527,), (1353529528,), (1353529549,), (1353529550,), (1353529553,), (1353529555,), (1353529572,), (1353529578,), (1353529584,), (1353529585,), (1353529587,), (1353529605,), (1353529608,), (1353529610,), (1353529617,), (1353529621,), (1353529653,), (1353529658,), (1353529664,), (1353529669,), (1353529720,), (1353529761,), (1353529873,), (1353529781,), (1353529890,), (1353529892,), (1353529895,), (1353529918,), (1353529919,), (1353529921,), (1353529923,), (1353529924,), (1353529925,), (1353529939,), (1353529940,), (1353530087,), (1353530151,), (1353530153,), (1353530155,), (1353530157,), (1353530158,), (1353530159,), (1353530536,), (1353530825,), (1353530853,), (1353530904,), (1353530935,), (1353531191,), (1353531219,), (1353531240,), (1353531242,), (1353531244,), (1353531245,), (1353531383,), (1353531409,), (1353531435,), (1353531465,), (1353531676,), (1353531696,), (1353531700,), (1353531702,), (1353531705,), (1353531706,), (1353532319,), (1353532377,), (1353532430,), (1353533103,), (1353533123,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22376038]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353362235] map_info['map_portfolio_photo'] : {22376038: [1353362235, 1353309428, 1353309401, 1353309394, 1353309391, 1353309323, 1353309310, 1353309297, 1353309293, 1353309289, 1353309277, 1353309272, 1353309230, 1353309206, 1353309178, 1353309127, 1353309101, 1353309085, 1353309059, 1353309054, 1353309050, 1353309048, 1353309014, 1353308847, 1353308846, 1353308843, 1353308841, 1353308838, 1353308833, 1353308730, 1353308722, 1353308706, 1353308703, 1353308502, 1353308471, 1353308442, 1353308395, 1353308337, 1353308269, 1353307773, 1353307770, 1353307766, 1353307669, 1353307663, 1353307658, 1353307655, 1353307652, 1353307649, 1353307577, 1353307575, 1353307573, 1353307568, 1353307507, 1353307437, 1353307411, 1353307398, 1353307368, 1353307354, 1353306942, 1353306938, 1353306935, 1353306870, 1353306794, 1353306416, 1353306413, 1353306411, 1353306361]} final : True mtd_id 4302 list_pids : [1353362235] Looping around the photos to save general results len do output : 1 /22376038Didn'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, '2756507') ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507') 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, '22376038', 'None', None, None, None, None, '2756507'), ('4302', '22376038', '1353362235', None, None, None, None, None, '2756507')] time used for this insertion : 0.012267827987670898 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.512871503829956 time spend to save output : 0.012532949447631836 total time spend for step 5 : 3.525404453277588 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 (2756507) 2.42user 2.07system 0:18.85elapsed 23%CPU (0avgtext+0avgdata 155460maxresident)k 2536inputs+12200outputs (19major+74233minor)pagefaults 0swaps