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 : 683046 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 (2625859) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2625859) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936213 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2625859'] with mtr_portfolio_ids : ['20936213'] and first list_photo_ids : [] new path : /proc/683046/ Name: python3 Umask: 0002 State: R (running) Tgid: 683046 Ngid: 0 Pid: 683046 PPid: 683045 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 683046 NSpid: 683046 NSpgid: 648451 NSsid: 648451 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98548 kB VmRSS: 98548 kB RssAnon: 59756 kB RssFile: 38792 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 55 nonvoluntary_ctxt_switches: 133 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '683046', 'Ngid': '0', 'Pid': '683046', 'PPid': '683045', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '683046', 'NSpid': '683046', 'NSpgid': '648451', 'NSsid': '648451', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98548 kB', 'VmRSS': '98548 kB', 'RssAnon': '59756 kB', 'RssFile': '38792 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '55', 'nonvoluntary_ctxt_switches': '133'} ('datou_batch_current', '683046', '1106844', '0', '1106844', '865592', '98548', b'', 'marlene', '2625859') 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 (20936213) 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 (2625859 ) ) 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 (20936213) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340194620, 'portfolio_id': 20936213}, {'photo_id': 1340193420, 'portfolio_id': 20936213}, {'photo_id': 1340193309, 'portfolio_id': 20936213}, {'photo_id': 1340193303, 'portfolio_id': 20936213}, {'photo_id': 1340193299, 'portfolio_id': 20936213}, {'photo_id': 1340193295, 'portfolio_id': 20936213}, {'photo_id': 1340193241, 'portfolio_id': 20936213}, {'photo_id': 1340193236, 'portfolio_id': 20936213}, {'photo_id': 1340193233, 'portfolio_id': 20936213}, {'photo_id': 1340193230, 'portfolio_id': 20936213}, {'photo_id': 1340193081, 'portfolio_id': 20936213}, {'photo_id': 1340193073, 'portfolio_id': 20936213}, {'photo_id': 1340193049, 'portfolio_id': 20936213}, {'photo_id': 1340192819, 'portfolio_id': 20936213}, {'photo_id': 1340192816, 'portfolio_id': 20936213}, {'photo_id': 1340192472, 'portfolio_id': 20936213}, {'photo_id': 1340192354, 'portfolio_id': 20936213}, {'photo_id': 1340192251, 'portfolio_id': 20936213}, {'photo_id': 1340192145, 'portfolio_id': 20936213}, {'photo_id': 1340192005, 'portfolio_id': 20936213}, {'photo_id': 1340190836, 'portfolio_id': 20936213}] map_portfolio_id_photo_id: {20936213: [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836]} ##### 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.8819258213043213 #### 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 Sat Mar 1 06:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20936213) 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 : 20936213 get user id for portfolio 20936213 get sub ptf for main ptf 20936213, type 3726 and hashtags ['environnement', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'metal', 'kraft', 'mal_croppe', 'cartonnette', 'flou', 'plastique', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20936213 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','metal','kraft','mal_croppe','cartonnette','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20936213 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','metal','kraft','mal_croppe','cartonnette','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20936213, 'sub_port_id': 20936216, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561409, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'Carton_gris': {'main_port_id': 20936213, 'sub_port_id': 20936217, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561410, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'plastique': {'main_port_id': 20936213, 'sub_port_id': 20936218, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561411, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'environnement': {'main_port_id': 20936213, 'sub_port_id': 20936219, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561412, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'flou': {'main_port_id': 20936213, 'sub_port_id': 20936220, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561413, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20936213, 'sub_port_id': 20936221, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561414, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'papier': {'main_port_id': 20936213, 'sub_port_id': 20936222, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561415, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'autre_refus': {'main_port_id': 20936213, 'sub_port_id': 20936223, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561416, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'cartonnette': {'main_port_id': 20936213, 'sub_port_id': 20936224, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561417, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'kraft': {'main_port_id': 20936213, 'sub_port_id': 20936225, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561418, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'Carton_brun': {'main_port_id': 20936213, 'sub_port_id': 20936226, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561419, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}, 'mal_croppe': {'main_port_id': 20936213, 'sub_port_id': 20936227, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561420, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20936216 , 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=20936213 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 (20936216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936217 , 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=20936213 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 (20936217) result : ((1340193250,), (1340193251,), (1340193252,), (1340193279,), (1340193280,), (1340193281,), (1340193405,), (1340193406,), (1340193407,), (1340193475,), (1340193480,), (1340196143,), (1340196144,), (1340196145,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936218 , 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=20936213 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 (20936218) result : ((1340193256,), (1340193384,), (1340193483,), (1340193487,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936219 , 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=20936213 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 (20936219) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936220 , 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=20936213 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 (20936220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936221 , 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=20936213 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 (20936221) result : ((1340193248,), (1340193249,), (1340193268,), (1340193269,), (1340193270,), (1340193271,), (1340193272,), (1340193273,), (1340193274,), (1340193275,), (1340193374,), (1340193375,), (1340193376,), (1340193402,), (1340193403,), (1340193473,), (1340196135,), (1340196136,), (1340196137,), (1340196138,), (1340196139,), (1340196140,), (1340196141,), (1340196142,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936222 , 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=20936213 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 (20936222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936223 , 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=20936213 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 (20936223) result : ((1340193404,), (1340195192,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936224 , 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=20936213 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 (20936224) result : ((1340193282,), (1340193283,), (1340193409,), (1340193410,), (1340193482,), (1340196150,), (1340196151,), (1340196152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936225 , 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=20936213 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 (20936225) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936226 , 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=20936213 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 (20936226) result : ((1340193254,), (1340193287,), (1340193288,), (1340193289,), (1340193290,), (1340193291,), (1340193292,), (1340193293,), (1340193294,), (1340193379,), (1340193380,), (1340193381,), (1340193382,), (1340193383,), (1340193412,), (1340193413,), (1340193414,), (1340193415,), (1340193416,), (1340193417,), (1340193476,), (1340193479,), (1340193481,), (1340193484,), (1340193485,), (1340195193,), (1340196156,), (1340196157,), (1340196158,), (1340196159,), (1340196160,), (1340196161,), (1340196162,), (1340196163,), (1340196164,), (1340196165,), (1340196166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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 20936227 , 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=20936213 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 (20936227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20936213) result : ((1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,)) 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`=20936213 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','metal','kraft','mal_croppe','cartonnette','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20936213 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','papier','metal','kraft','mal_croppe','cartonnette','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20936213, 'sub_port_id': 20936228, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561421, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'Carton_gris': {'main_port_id': 20936213, 'sub_port_id': 20936229, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561422, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'plastique': {'main_port_id': 20936213, 'sub_port_id': 20936230, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561423, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'environnement': {'main_port_id': 20936213, 'sub_port_id': 20936231, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561424, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'flou': {'main_port_id': 20936213, 'sub_port_id': 20936232, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561425, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 20936213, 'sub_port_id': 20936233, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561426, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'papier': {'main_port_id': 20936213, 'sub_port_id': 20936234, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561427, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'autre_refus': {'main_port_id': 20936213, 'sub_port_id': 20936235, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561428, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'cartonnette': {'main_port_id': 20936213, 'sub_port_id': 20936236, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561429, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'kraft': {'main_port_id': 20936213, 'sub_port_id': 20936237, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561430, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'Carton_brun': {'main_port_id': 20936213, 'sub_port_id': 20936238, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561431, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}, 'mal_croppe': {'main_port_id': 20936213, 'sub_port_id': 20936239, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13561432, 'last_updated_at': datetime.datetime(2025, 2, 28, 18, 33, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 18, 33, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 18, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20936239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20936227 lien utilise dans velours : https://www.fotonower.com/velours/20936228,20936229,20936230,20936231,20936232,20936233,20936234,20936235,20936236,20936237,20936238,20936239?tags=metal,Carton_gris,plastique,environnement,flou,Teint_Dans_La_Masse,papier,autre_refus,cartonnette,kraft,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20936213]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] map_info['map_portfolio_photo'] : {20936213: [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836]} final : False mtd_id 4302 list_pids : [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] Looping around the photos to save general results len do output : 1 /20936213. 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, '2625859') ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20936213', "{'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227}", None, None, None, None, '2625859'), ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859')] time used for this insertion : 0.15524005889892578 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.35100769996643 time spend to save output : 0.15563631057739258 total time spend for step 1 : 8.506644010543823 step2:final Sat Mar 1 06:01:07 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 (20936213) 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 20936213 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340190836,1340192472,1340192354,1340192251,1340192145,1340192005,1340193081,1340193073,1340193049,1340192819,1340192816,1340193241,1340193236,1340193233,1340193230,1340193309,1340193303,1340193299,1340193295,1340194620,1340193420); 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([20936213]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} new output for save of step final : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] map_info['map_portfolio_photo'] : {20936213: [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836]} final : False mtd_id 4302 list_pids : [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] Looping around the photos to save general results len do output : 21 /1340194620.Didn't retrieve data . /1340193420.Didn't retrieve data . /1340193309.Didn't retrieve data . /1340193303.Didn't retrieve data . /1340193299.Didn't retrieve data . /1340193295.Didn't retrieve data . /1340193241.Didn't retrieve data . /1340193236.Didn't retrieve data . /1340193233.Didn't retrieve data . /1340193230.Didn't retrieve data . /1340193081.Didn't retrieve data . /1340193073.Didn't retrieve data . /1340193049.Didn't retrieve data . /1340192819.Didn't retrieve data . /1340192816.Didn't retrieve data . /1340192472.Didn't retrieve data . /1340192354.Didn't retrieve data . /1340192251.Didn't retrieve data . /1340192145.Didn't retrieve data . /1340192005.Didn't retrieve data . /1340190836.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, '2625859') ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '20936213', '1340194620', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193420', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193309', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193303', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193299', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193295', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193241', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193236', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193233', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193230', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193081', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193073', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340193049', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192819', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192816', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192472', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192354', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192251', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192145', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340192005', '0.11949172689175308', None, None, None, None, '2625859'), ('4302', '20936213', '1340190836', '0.11949172689175308', None, None, None, None, '2625859')] time used for this insertion : 0.015227556228637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5673613548278809 time spend to save output : 0.015954017639160156 total time spend for step 2 : 0.583315372467041 step3:velours_tree Sat Mar 1 06:01:08 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 : {20936213: [{'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227}]} input_args_next_step : {20936213: ()} output_args : {20936213: [{'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227}]} args : 20936213 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 : ({'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20936213) 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([20936213]) 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.31551146507263184 time spend to save output : 4.792213439941406e-05 total time spend for step 3 : 0.31555938720703125 step4:send_mail_cod Sat Mar 1 06:01:08 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 : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} input_args_next_step : {1340194620: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340194620 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193420 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193309 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193303 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193299 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193295 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193241 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193236 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193233 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193230 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193081 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193073 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340193049 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192819 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192816 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192472 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192354 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192251 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192145 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340192005 depend.output_id : 0 input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ()} output_args : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',)} args : 1340190836 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20936213: [{'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227}]} input_args_next_step : {1340194620: ('0.11949172689175308',), 1340193420: ('0.11949172689175308',), 1340193309: ('0.11949172689175308',), 1340193303: ('0.11949172689175308',), 1340193299: ('0.11949172689175308',), 1340193295: ('0.11949172689175308',), 1340193241: ('0.11949172689175308',), 1340193236: ('0.11949172689175308',), 1340193233: ('0.11949172689175308',), 1340193230: ('0.11949172689175308',), 1340193081: ('0.11949172689175308',), 1340193073: ('0.11949172689175308',), 1340193049: ('0.11949172689175308',), 1340192819: ('0.11949172689175308',), 1340192816: ('0.11949172689175308',), 1340192472: ('0.11949172689175308',), 1340192354: ('0.11949172689175308',), 1340192251: ('0.11949172689175308',), 1340192145: ('0.11949172689175308',), 1340192005: ('0.11949172689175308',), 1340190836: ('0.11949172689175308',), 20936213: ()} output_args : {20936213: [{'metal': 20936216, 'Carton_gris': 20936217, 'plastique': 20936218, 'environnement': 20936219, 'flou': 20936220, 'Teint_Dans_La_Masse': 20936221, 'papier': 20936222, 'autre_refus': 20936223, 'cartonnette': 20936224, 'kraft': 20936225, 'Carton_brun': 20936226, 'mal_croppe': 20936227}]} args : 20936213 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 :22, first value : ('0.11949172689175308',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20936213) 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 (1340194620,1340193420,1340193309,1340193303,1340193299,1340193295,1340193241,1340193236,1340193233,1340193230,1340193081,1340193073,1340193049,1340192819,1340192816,1340192472,1340192354,1340192251,1340192145,1340192005,1340190836) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340190836 begin to download photo : 1340192472 begin to download photo : 1340193081 begin to download photo : 1340193295 begin to download photo : 1340194620 download finish for photo 1340193295 begin to download photo : 1340193299 download finish for photo 1340190836 begin to download photo : 1340192005 download finish for photo 1340193081 begin to download photo : 1340193230 download finish for photo 1340194620 download finish for photo 1340193299 begin to download photo : 1340193303 download finish for photo 1340192005 begin to download photo : 1340192145 download finish for photo 1340192472 begin to download photo : 1340192816 download finish for photo 1340193230 begin to download photo : 1340193233 download finish for photo 1340193303 begin to download photo : 1340193309 download finish for photo 1340192145 begin to download photo : 1340192251 download finish for photo 1340192816 begin to download photo : 1340192819 download finish for photo 1340193233 begin to download photo : 1340193236 download finish for photo 1340193309 begin to download photo : 1340193420 download finish for photo 1340192251 begin to download photo : 1340192354 download finish for photo 1340192819 begin to download photo : 1340193049 download finish for photo 1340193236 begin to download photo : 1340193241 download finish for photo 1340193420 download finish for photo 1340193049 begin to download photo : 1340193073 download finish for photo 1340192354 download finish for photo 1340193241 download finish for photo 1340193073 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette209362161740805269/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P20936213_01-03-2025_06_01_09.pdf 20936216 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=20936216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209362161740805269 20936218 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=20936218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340193256: '1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352527_0.png', 1340193384: '1740762411_3682006_1340193233_c4d0fd3865caea3cba9327131073af2f_rle_crop_3690352917_0.png', 1340193483: '1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353322_0.png', 1340193487: '1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8795e5db5bb0abfdc0d69eadfbc869fc_3715020.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c6d7f1699e65972ae48ee391f891d8a4_26477599.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/37e4c804692873514986514282e59ab2_6343874.png change filename to text .imagette209362181740805269/ imagette209362181740805269/1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353299_0.png.png imagette209362181740805269/1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352527_0.png.png imagette209362181740805269/1740762411_3682006_1340193233_c4d0fd3865caea3cba9327131073af2f_rle_crop_3690352917_0.png.png imagette209362181740805269/1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353322_0.png.png imagette209362201740805270/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a48534785482391524750d08e9a9e906_78361655.png imagette209362181740805269 20936220 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=20936220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209362201740805270 20936223 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=20936223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340193404: '1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353181_0.png', 1340195192: '1740763982_3699162_1340194620_f14706bf4600027b2b2b5a4c240659f1_rle_crop_3690358931_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/73c30afcfd6ddcc76989f9109fbbb863_76147581.png change filename to text .imagette209362231740805270/ imagette209362231740805270/1740763982_3699162_1340194620_f14706bf4600027b2b2b5a4c240659f1_rle_crop_3690358931_0.png.png imagette209362231740805270/1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353181_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bbde15b3dbc572b7fdafb848156bd180_98132550.png imagette209362231740805270 20936224 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=20936224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340193282: '1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352732_0.png', 1340193283: '1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352760_0.png', 1340193409: '1740762432_3682243_1340193241_ea235195f1764a910ac5bd995e62e7c9_rle_crop_3690353118_0.png', 1340193410: '1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353167_0.png', 1340193482: '1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353297_0.png', 1340196150: '1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362191_0.png', 1340196151: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352732_0.png', 1340196152: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352760_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c0aa291126b3c47ed8b59f33d3849497_17801657.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f30cf9e7ac50b7d883bf94a987040734_65814920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8d938b7851f98fffdf80e9221b5d04f2_47336096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/95971a9b0d45819c1d8845204f48cfbd_97757725.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/71888443dd9a4f35457d8977ba9099e7_96057103.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8fa6b6064b416ee7ac7451721a4a33e6_87092592.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c0aa291126b3c47ed8b59f33d3849497_23051945.png change filename to text .imagette209362241740805270/ imagette209362241740805270/1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353167_0.png.png imagette209362241740805270/1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352732_0.png.png imagette209362241740805270/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352732_0.png.png imagette209362241740805270/1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352760_0.png.png imagette209362241740805270/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352760_0.png.png imagette209362241740805270/1740762432_3682243_1340193241_ea235195f1764a910ac5bd995e62e7c9_rle_crop_3690353118_0.png.png imagette209362241740805270/1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353297_0.png.png imagette209362241740805270/1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362191_0.png.png imagette209362251740805271/ imagette209362271740805271/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f30cf9e7ac50b7d883bf94a987040734_4246984.png imagette209362241740805270 20936225 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=20936225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209362251740805271 20936227 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=20936227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209362271740805271 20936217 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=20936217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340193250: '1740762292_3680173_1340192472_0ae2edd5f1a02f26a8ce1e5c5d267259_rle_crop_3690352520_0.png', 1340193251: '1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352525_0.png', 1340193252: '1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352532_0.png', 1340193279: '1740762312_3680551_1340192354_08f0a224c655faafd66f9d5164faf0aa_rle_crop_3690352698_0.png', 1340193280: '1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352737_0.png', 1340193281: '1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352757_0.png', 1340193405: '1740762432_3682243_1340193073_0332dac189aff92b5489aa79d8a73e72_rle_crop_3690353127_0.png', 1340193406: '1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353166_0.png', 1340193407: '1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353177_0.png', 1340193475: '1740762531_3683721_1340193299_29f07986d566d9ef22d7dc41ce7215d4_rle_crop_3690353311_0.png', 1340193480: '1740762531_3683721_1340193295_42829175785119e2d49a49656d7ebde4_rle_crop_3690353315_0.png', 1340196143: '1740764733_3708078_1340192354_08f0a224c655faafd66f9d5164faf0aa_rle_crop_3690352698_0.png', 1340196144: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352737_0.png', 1340196145: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352757_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fa9c9deaf3a7cda91947f2e2dbda0ddc_68271769.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/cc940fe1d5e81c971a75efbfee284721_89609807.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/812af199a66a3566521c7eac1374f63b_55787127.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4388c7442ce54b84c4a9c38afaa451d7_76397491.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8e8d239dde790188323f69a5aa5ba7bb_47291840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/365719c5b31ba49d6112fdc82f2b86d3_49604216.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/db4449f89358e81600a90a3a76649af2_34242029.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3a80c12e8836805d9768127cca44ef1c_94681513.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/dd571fa0915d16803729001c8115bb49_4692384.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6929cf8495c180560496dcc6b7e6ac31_66634667.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ed8f5984ec6713e0a3ac87d252d26c95_1905261.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4388c7442ce54b84c4a9c38afaa451d7_6579965.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8e8d239dde790188323f69a5aa5ba7bb_83716096.png change filename to text .imagette209362171740805271/ imagette209362171740805271/1740762531_3683721_1340193299_29f07986d566d9ef22d7dc41ce7215d4_rle_crop_3690353311_0.png.png imagette209362171740805271/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352757_0.png.png imagette209362171740805271/1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352532_0.png.png imagette209362171740805271/1740762292_3680173_1340192472_0ae2edd5f1a02f26a8ce1e5c5d267259_rle_crop_3690352520_0.png.png imagette209362171740805271/1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352525_0.png.png imagette209362171740805271/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352737_0.png.png imagette209362171740805271/1740764733_3708078_1340192354_08f0a224c655faafd66f9d5164faf0aa_rle_crop_3690352698_0.png.png imagette209362171740805271/1740762312_3680551_1340192354_08f0a224c655faafd66f9d5164faf0aa_rle_crop_3690352698_0.png.png imagette209362171740805271/1740762531_3683721_1340193295_42829175785119e2d49a49656d7ebde4_rle_crop_3690353315_0.png.png imagette209362171740805271/1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353166_0.png.png imagette209362171740805271/1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353177_0.png.png imagette209362171740805271/1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352737_0.png.png imagette209362171740805271/1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352757_0.png.png imagette209362171740805271/1740762432_3682243_1340193073_0332dac189aff92b5489aa79d8a73e72_rle_crop_3690353127_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/365719c5b31ba49d6112fdc82f2b86d3_9270234.png imagette209362171740805271 20936221 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=20936221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340193376: '1740762411_3682006_1340193230_d2428dfe7054692b8f4a021c36e2bc18_rle_crop_3690352936_0.png', 1340196142: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352773_0.png', 1340196141: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352770_0.png', 1340196140: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352735_0.png', 1340196139: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352749_0.png', 1340196138: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352748_0.png', 1340196137: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352715_0.png', 1340196136: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352712_0.png', 1340196135: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352714_0.png', 1340193473: '1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353338_0.png', 1340193403: '1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353165_0.png', 1340193402: '1740762432_3682243_1340193049_1c0e706fc47de581f3756e5bd2d9e8d3_rle_crop_3690353147_0.png', 1340193248: '1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352529_0.png', 1340193375: '1740762411_3682006_1340193233_c4d0fd3865caea3cba9327131073af2f_rle_crop_3690352925_0.png', 1340193374: '1740762411_3682006_1340193236_df899471a4e5e13ca5f6fbda31ced058_rle_crop_3690352902_0.png', 1340193275: '1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352773_0.png', 1340193274: '1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352770_0.png', 1340193273: '1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352735_0.png', 1340193272: '1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352749_0.png', 1340193271: '1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352748_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/feb04b7658536f31271ac56fa09e4f99_83139948.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/241faddd15fae01f075557f5ab642ea6_65162418.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b52378bfdd7056385af7f5890b733d0e_94279930.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e56900cf44c9a81492811bc5055ab9d8_87204496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/72f6791f3262bcb527b3875995866a4f_76624592.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fa3ee2caa87c74b5f7d18c4716ca5940_28436373.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7656f6a9ab8d767fc37e41f4e1dd6ed7_48882088.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8c10b8ee406ef9fee7f2d74b2c69bd0a_86308846.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d6b3087605a7bded3e48f7db47ae7646_8200201.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7fcad03f1a3ae5fef6700a9ddcba3e75_38022907.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0c4a2618a0ab4d8bc170cfa3c99d28d7_79398350.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/46a207e6cd7f04f246173d40c2924920_6356629.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/582ee2fe3220d953abb7ac4704978d5e_93561161.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/36440b9ca56e12a500fedf7acd1aa795_90737999.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1ce3203c721776b6b59f94b3b4e7e024_42235249.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/241faddd15fae01f075557f5ab642ea6_23153662.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b52378bfdd7056385af7f5890b733d0e_38427738.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e56900cf44c9a81492811bc5055ab9d8_50974112.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/72f6791f3262bcb527b3875995866a4f_17813919.png change filename to text .imagette209362211740805274/ imagette209362211740805274/1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353338_0.png.png imagette209362211740805274/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352714_0.png.png imagette209362211740805274/1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352749_0.png.png imagette209362211740805274/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352773_0.png.png imagette209362211740805274/1740762411_3682006_1340193233_c4d0fd3865caea3cba9327131073af2f_rle_crop_3690352925_0.png.png imagette209362211740805274/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352748_0.png.png imagette209362211740805274/1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352773_0.png.png imagette209362211740805274/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352715_0.png.png imagette209362211740805274/1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352735_0.png.png imagette209362211740805274/1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353165_0.png.png imagette209362211740805274/1740762312_3680551_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352748_0.png.png imagette209362211740805274/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352712_0.png.png imagette209362211740805274/1740762292_3680173_1340190836_c0e7768b662a38b61048d88d4f707890_rle_crop_3690352529_0.png.png imagette209362211740805274/1740762432_3682243_1340193049_1c0e706fc47de581f3756e5bd2d9e8d3_rle_crop_3690353147_0.png.png imagette209362211740805274/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352735_0.png.png imagette209362211740805274/1740762411_3682006_1340193230_d2428dfe7054692b8f4a021c36e2bc18_rle_crop_3690352936_0.png.png imagette209362211740805274/1740762411_3682006_1340193236_df899471a4e5e13ca5f6fbda31ced058_rle_crop_3690352902_0.png.png imagette209362211740805274/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352749_0.png.png imagette209362211740805274/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352770_0.png.png imagette209362211740805274/1740762312_3680551_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352770_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fa3ee2caa87c74b5f7d18c4716ca5940_56864913.png imagette209362211740805274 20936226 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=20936226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340196158: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352711_0.png', 1340193417: '1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353182_0.png', 1340193476: '1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353334_0.png', 1340193479: '1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353335_0.png', 1340193481: '1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353330_0.png', 1340193484: '1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353302_0.png', 1340193485: '1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353296_0.png', 1340195193: '1740763982_3699162_1340194620_f14706bf4600027b2b2b5a4c240659f1_rle_crop_3690358932_0.png', 1340196156: '1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362193_0.png', 1340196157: '1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362194_0.png', 1340193416: '1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353164_0.png', 1340196159: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352710_0.png', 1340196160: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690362211_0.png', 1340196161: '1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_bib_crop_3690352708_0.jpg', 1340196162: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352739_0.png', 1340196163: '1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352736_0.png', 1340196164: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352763_0.png', 1340196165: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352762_0.png', 1340196166: '1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352767_0.png', 1340193379: '1740762411_3682006_1340193236_df899471a4e5e13ca5f6fbda31ced058_rle_crop_3690352903_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/aa304df167e47417340c4b3ae02a8764_6873769.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/cb0e6022095b47312117e95c7b44ba47_98426893.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/821630a0c5045e4bf24d0eba1164e3d2_50378631.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f573be2b5951e1e1850f09b0eca3ecaa_17780609.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0773662639a315b4972d6202ee3a96a3_5501746.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/18779ddfc88c98ccd44f0c369c5af758_9500001.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c29152c8340573b1daf87de50a37155d_50246796.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8086169654fb696bff89272015d2b3d5_26092768.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8474553be9ccd0dce2e692740c5ee4b3_62782203.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7b4b2c8ba8b09c29f69fe24e91d04a02_39342138.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d7f696a73996076cd4fee88ea7a176da_98922251.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/35c01fd591b4ca471c96e4ff93877dea_78855917.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/691b69728c315a8e1f11ea8e05ab69e2_45380275.png change filename to text .wget -O 14.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3df7f4e6143e826e0c51e442d89ab8e2_73051149.jpg change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bdba14b00f756135fab9fa74960928d1_63069949.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d4916d0b836c5c841046f8e7a07b5343_65902531.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ca50204ec68606ed58a4965e1d47aca7_4587649.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8d0696256621aea15836e7ff16e80b91_30195171.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/48bdea070b508bb969383493356133c7_48231920.png change filename to text .imagette209362261740805277/ imagette209362261740805277/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352736_0.png.png imagette209362261740805277/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352763_0.png.png imagette209362261740805277/1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362194_0.png.png imagette209362261740805277/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352710_0.png.png imagette209362261740805277/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352762_0.png.png imagette209362261740805277/1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353302_0.png.png imagette209362261740805277/1740762432_3682243_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5_rle_crop_3690353164_0.png.png imagette209362261740805277/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_bib_crop_3690352708_0.jpg.jpg imagette209362261740805277/1740762411_3682006_1340193236_df899471a4e5e13ca5f6fbda31ced058_rle_crop_3690352903_0.png.png imagette209362261740805277/1740763982_3699162_1340194620_f14706bf4600027b2b2b5a4c240659f1_rle_crop_3690358932_0.png.png imagette209362261740805277/1740762531_3683721_1340193303_c38e0a1649dea39e15bea42319fc7c3e_rle_crop_3690353296_0.png.png imagette209362261740805277/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690362211_0.png.png imagette209362261740805277/1740762432_3682243_1340192816_03fee97a218103355be8fde7a6c1d538_rle_crop_3690353182_0.png.png imagette209362261740805277/1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353330_0.png.png imagette209362261740805277/1740764733_3708078_1340193081_68bb5400fc0bdde269d550152cc60af0_rle_crop_3690362193_0.png.png imagette209362261740805277/1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353334_0.png.png imagette209362261740805277/1740764733_3708078_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b_rle_crop_3690352739_0.png.png imagette209362261740805277/1740764733_3708078_1340192005_4f0f81fe187595c587f2335804bc3bae_rle_crop_3690352767_0.png.png imagette209362261740805277/1740764733_3708078_1340192251_5283793326781bf908433f29145b22ce_rle_crop_3690352711_0.png.png imagette209362261740805277/1740762541_3683848_1340193309_fe80df39283dea40909bc1d671ebb575_rle_crop_3690353335_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b51e54d1b07b051cdcc052e89e3d34c2_24486197.png imagette209362261740805277 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20936213 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20936228,20936229,20936230,20936231,20936232,20936233,20936234,20936235,20936236,20936237,20936238,20936239?tags=metal,Carton_gris,plastique,environnement,flou,Teint_Dans_La_Masse,papier,autre_refus,cartonnette,kraft,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1340194620] : ('0.11949172689175308',) no score found for photo 1340194620 We are sending mail with results at report@fotonower.com args[1340193420] : ('0.11949172689175308',) no score found for photo 1340193420 We are sending mail with results at report@fotonower.com args[1340193309] : ('0.11949172689175308',) no score found for photo 1340193309 We are sending mail with results at report@fotonower.com args[1340193303] : ('0.11949172689175308',) no score found for photo 1340193303 We are sending mail with results at report@fotonower.com args[1340193299] : ('0.11949172689175308',) no score found for photo 1340193299 We are sending mail with results at report@fotonower.com args[1340193295] : ('0.11949172689175308',) no score found for photo 1340193295 We are sending mail with results at report@fotonower.com args[1340193241] : ('0.11949172689175308',) no score found for photo 1340193241 We are sending mail with results at report@fotonower.com args[1340193236] : ('0.11949172689175308',) no score found for photo 1340193236 We are sending mail with results at report@fotonower.com args[1340193233] : ('0.11949172689175308',) no score found for photo 1340193233 We are sending mail with results at report@fotonower.com args[1340193230] : ('0.11949172689175308',) no score found for photo 1340193230 We are sending mail with results at report@fotonower.com args[1340193081] : ('0.11949172689175308',) no score found for photo 1340193081 We are sending mail with results at report@fotonower.com args[1340193073] : ('0.11949172689175308',) no score found for photo 1340193073 We are sending mail with results at report@fotonower.com args[1340193049] : ('0.11949172689175308',) no score found for photo 1340193049 We are sending mail with results at report@fotonower.com args[1340192819] : ('0.11949172689175308',) no score found for photo 1340192819 We are sending mail with results at report@fotonower.com args[1340192816] : ('0.11949172689175308',) no score found for photo 1340192816 We are sending mail with results at report@fotonower.com args[1340192472] : ('0.11949172689175308',) no score found for photo 1340192472 We are sending mail with results at report@fotonower.com args[1340192354] : ('0.11949172689175308',) no score found for photo 1340192354 We are sending mail with results at report@fotonower.com args[1340192251] : ('0.11949172689175308',) no score found for photo 1340192251 We are sending mail with results at report@fotonower.com args[1340192145] : ('0.11949172689175308',) no score found for photo 1340192145 We are sending mail with results at report@fotonower.com args[1340192005] : ('0.11949172689175308',) no score found for photo 1340192005 We are sending mail with results at report@fotonower.com args[1340190836] : ('0.11949172689175308',) no score found for photo 1340190836 We are sending mail with results at report@fotonower.com refus_total : 0.11949172689175308 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=20936213 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_P20936213_01-03-2025_06_01_09.pdf results_Auto_P20936213_01-03-2025_06_01_09.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_01-03-2025_06_01_09.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','20936213','results_Auto_P20936213_01-03-2025_06_01_09.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_01-03-2025_06_01_09.pdf','pdf','','0.37','0.11949172689175308') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20936213]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] map_info['map_portfolio_photo'] : {20936213: [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836]} final : False mtd_id 4302 list_pids : [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] 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, '2625859') ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20936213', '1340194620', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859')] time used for this insertion : 0.01624894142150879 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.190467357635498 time spend to save output : 0.016584396362304688 total time spend for step 4 : 13.207051753997803 step5:split_time_score Sat Mar 1 06:01:22 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 : ['20936213'] 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 : [('20936213',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20936213) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340194620: {'path': 'temp/1740805268_683046_1340194620_f14706bf4600027b2b2b5a4c240659f1.jpg', 'extension': 'jpg'}, 1340193295: {'path': 'temp/1740805268_683046_1340193295_42829175785119e2d49a49656d7ebde4.jpg', 'extension': 'jpg'}, 1340193299: {'path': 'temp/1740805268_683046_1340193299_29f07986d566d9ef22d7dc41ce7215d4.jpg', 'extension': 'jpg'}, 1340193303: {'path': 'temp/1740805268_683046_1340193303_c38e0a1649dea39e15bea42319fc7c3e.jpg', 'extension': 'jpg'}, 1340193309: {'path': 'temp/1740805268_683046_1340193309_fe80df39283dea40909bc1d671ebb575.jpg', 'extension': 'jpg'}, 1340193420: {'path': 'temp/1740805268_683046_1340193420_32aa7a1279558e5cecb8ed2d887252eb.jpg', 'extension': 'jpg'}, 1340190836: {'path': 'temp/1740805268_683046_1340190836_c0e7768b662a38b61048d88d4f707890.jpg', 'extension': 'jpg'}, 1340192005: {'path': 'temp/1740805268_683046_1340192005_4f0f81fe187595c587f2335804bc3bae.jpg', 'extension': 'jpg'}, 1340192145: {'path': 'temp/1740805268_683046_1340192145_3b49e2d02d6f5dd90a1b311cf51d2a8b.jpg', 'extension': 'jpg'}, 1340192251: {'path': 'temp/1740805268_683046_1340192251_5283793326781bf908433f29145b22ce.jpg', 'extension': 'jpg'}, 1340192354: {'path': 'temp/1740805268_683046_1340192354_08f0a224c655faafd66f9d5164faf0aa.jpg', 'extension': 'jpg'}, 1340193081: {'path': 'temp/1740805268_683046_1340193081_68bb5400fc0bdde269d550152cc60af0.jpg', 'extension': 'jpg'}, 1340193230: {'path': 'temp/1740805268_683046_1340193230_d2428dfe7054692b8f4a021c36e2bc18.jpg', 'extension': 'jpg'}, 1340193233: {'path': 'temp/1740805268_683046_1340193233_c4d0fd3865caea3cba9327131073af2f.jpg', 'extension': 'jpg'}, 1340193236: {'path': 'temp/1740805268_683046_1340193236_df899471a4e5e13ca5f6fbda31ced058.jpg', 'extension': 'jpg'}, 1340193241: {'path': 'temp/1740805268_683046_1340193241_ea235195f1764a910ac5bd995e62e7c9.jpg', 'extension': 'jpg'}, 1340192472: {'path': 'temp/1740805268_683046_1340192472_0ae2edd5f1a02f26a8ce1e5c5d267259.jpg', 'extension': 'jpg'}, 1340192816: {'path': 'temp/1740805268_683046_1340192816_03fee97a218103355be8fde7a6c1d538.jpg', 'extension': 'jpg'}, 1340192819: {'path': 'temp/1740805268_683046_1340192819_4fd5207f6c3fb3abbea040ffb5ca35d5.jpg', 'extension': 'jpg'}, 1340193049: {'path': 'temp/1740805268_683046_1340193049_1c0e706fc47de581f3756e5bd2d9e8d3.jpg', 'extension': 'jpg'}, 1340193073: {'path': 'temp/1740805268_683046_1340193073_0332dac189aff92b5489aa79d8a73e72.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 = 20936213; (('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 = 20936213 group by h (('18', 21),) 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=20936213 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 (20936213) 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 (20936213) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20936213 Nombre de photos uploadées : 21 / 23040 (0%) 28022025 20936213 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 28022025 20936213 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1340190836, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c0e7768b662a38b61048d88d4f707890.jpg', 'username': None, 'uploaded_at': 1740762133, 'text': 'image_28022025_18_01_34_010144m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340192472, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0ae2edd5f1a02f26a8ce1e5c5d267259.jpg', 'username': None, 'uploaded_at': 1740762198, 'text': 'image_28022025_18_01_43_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340192354, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/08f0a224c655faafd66f9d5164faf0aa.jpg', 'username': None, 'uploaded_at': 1740762198, 'text': 'image_28022025_18_02_14_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340192251, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5283793326781bf908433f29145b22ce.jpg', 'username': None, 'uploaded_at': 1740762198, 'text': 'image_28022025_18_02_24_010136m0.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.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012745857238769531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20936213, '2025-02-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1629471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.12778711318969727 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= 1629471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20900111, 'dashboard_result_id': 9150624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900111_01-03-2025_05_34_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900126, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20900621, 'dashboard_result_id': 9150625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900621_01-03-2025_05_35_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900658, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20901042, 'dashboard_result_id': 9150626, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901042_01-03-2025_05_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901056, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20901979, 'dashboard_result_id': 9150627, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901979_01-03-2025_05_36_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901992, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20902324, 'dashboard_result_id': 9150628, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902324_01-03-2025_05_36_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20902377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902382, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20902813, 'dashboard_result_id': 9150629, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902813_01-03-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20902816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902827, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20903214, 'dashboard_result_id': 9150630, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20903214_01-03-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20903236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20903237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20903238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20903239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20903240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20903241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20903242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20903243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20903244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20903245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20903246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20903247, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20904104, 'dashboard_result_id': 9150631, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904104_01-03-2025_05_38_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904145, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20904676, 'dashboard_result_id': 9150632, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_01-03-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20905347, 'dashboard_result_id': 9150633, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_01-03-2025_05_39_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20906134, 'dashboard_result_id': 9150634, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_01-03-2025_05_39_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20907055, 'dashboard_result_id': 9150635, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_01-03-2025_05_40_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20907421, 'dashboard_result_id': 9150636, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_01-03-2025_05_40_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20908156, 'dashboard_result_id': 9150637, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20908156_01-03-2025_05_41_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20908197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20908198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20908199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20908200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20908201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20908202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20908203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20908204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20908205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20908206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20908207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20908208, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20909166, 'dashboard_result_id': 9150638, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909166_01-03-2025_05_41_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20909210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909216, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20909596, 'dashboard_result_id': 9150639, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909596_01-03-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20909597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909608, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20910125, 'dashboard_result_id': 9150640, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910125_01-03-2025_05_42_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910139, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20910508, 'dashboard_result_id': 9150641, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910508_01-03-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910521, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20911007, 'dashboard_result_id': 9150642, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911007_01-03-2025_05_43_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20911012, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911023, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20911538, 'dashboard_result_id': 9150643, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911538_01-03-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20911573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911578, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20912133, 'dashboard_result_id': 9150644, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912133_01-03-2025_05_44_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912171, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20912498, 'dashboard_result_id': 9150645, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912498_01-03-2025_05_44_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912560, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20913007, 'dashboard_result_id': 9150646, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913007_01-03-2025_05_45_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913050, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20913442, 'dashboard_result_id': 9150647, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913442_01-03-2025_05_45_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913459, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20914178, 'dashboard_result_id': 9150648, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914178_01-03-2025_05_46_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20914234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914245, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20914902, 'dashboard_result_id': 9150649, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914902_01-03-2025_05_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20914981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914991, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20915703, 'dashboard_result_id': 9150650, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20915703_01-03-2025_05_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20915754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20915755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20915756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20915757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20915758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20915759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20915760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20915761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20915762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20915763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20915764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20915765, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20916353, 'dashboard_result_id': 9150651, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20916353_01-03-2025_05_47_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20916358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20916359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20916360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20916361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20916362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20916363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20916364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20916365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20916366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20916367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20916368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20916369, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20917018, 'dashboard_result_id': 9150652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917018_01-03-2025_05_48_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917096, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20917662, 'dashboard_result_id': 9150653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917662_01-03-2025_05_48_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917698, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20919487, 'dashboard_result_id': 9150654, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919487_01-03-2025_05_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919501, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20919908, 'dashboard_result_id': 9150655, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919908_01-03-2025_05_49_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919969, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20920542, 'dashboard_result_id': 9150656, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_01-03-2025_05_49_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20921078, 'dashboard_result_id': 9150657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_01-03-2025_05_50_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20921670, 'dashboard_result_id': 9150658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_01-03-2025_05_50_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20922382, 'dashboard_result_id': 9150659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_01-03-2025_05_51_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20923040, 'dashboard_result_id': 9150660, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923040_01-03-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20923074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923083, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20923792, 'dashboard_result_id': 9150661, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923792_01-03-2025_05_52_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20923869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923880, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20924336, 'dashboard_result_id': 9150662, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924336_01-03-2025_05_52_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924350, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20924961, 'dashboard_result_id': 9150663, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924961_01-03-2025_05_53_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924998, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20925405, 'dashboard_result_id': 9150664, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20925405_01-03-2025_05_53_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20925413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20925414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20925416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20925417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20925418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20925419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20925420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20925421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20925422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20925423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20925424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20925425, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20927098, 'dashboard_result_id': 9150665, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927098_01-03-2025_05_54_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927135, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20927337, 'dashboard_result_id': 9150666, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927337_01-03-2025_05_54_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927352, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20927747, 'dashboard_result_id': 9150667, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927747_01-03-2025_05_55_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20927762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927766, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927773, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20928214, 'dashboard_result_id': 9150668, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928214_01-03-2025_05_55_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20928250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928252, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20928612, 'dashboard_result_id': 9150669, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928612_01-03-2025_05_56_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20928645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928656, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20930178, 'dashboard_result_id': 9150670, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930178_01-03-2025_05_56_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20930180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20930188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930191, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20930579, 'dashboard_result_id': 9150671, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930579_01-03-2025_05_57_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20930583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20930584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930594, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20931074, 'dashboard_result_id': 9150672, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931074_01-03-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931087, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20931482, 'dashboard_result_id': 9150673, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931482_01-03-2025_05_58_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931503, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20932209, 'dashboard_result_id': 9150674, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20932209_01-03-2025_05_58_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20932259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20932260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20932261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20932262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20932263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20932264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20932265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20932266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20932267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20932268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20932270, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20933114, 'dashboard_result_id': 9150675, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933114_01-03-2025_05_59_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933128, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20933804, 'dashboard_result_id': 9150676, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933804_01-03-2025_05_59_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933855, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20934243, 'dashboard_result_id': 9150677, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934243_01-03-2025_06_00_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934258, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20934816, 'dashboard_result_id': 9150678, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934816_01-03-2025_06_00_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934907, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20936213, 'dashboard_result_id': 9150679, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_28-02-2025_18_33_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936227, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20936553, 'dashboard_result_id': 9150680, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936553_28-02-2025_18_49_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936566, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20937007, 'dashboard_result_id': 9150681, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937007_28-02-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937020, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20937500, 'dashboard_result_id': 9150682, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20937873, 'dashboard_result_id': 9150683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20938430, 'dashboard_result_id': 9150684, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20939195, 'dashboard_result_id': 9150685, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939195_28-02-2025_20_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20939197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20939202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939208, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20939475, 'dashboard_result_id': 9150686, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939475_28-02-2025_20_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20939527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20939536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939538, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20940145, 'dashboard_result_id': 9150687, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940145_28-02-2025_20_32_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940159, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1640364, 'mtr_portfolio_id': 20940802, 'dashboard_result_id': 9150688, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940802_28-02-2025_21_08_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940817, '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 = 20900111 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': 2625804, 'mtr_portfolio_id': 20900111, 'created_at': datetime.datetime(2025, 3, 1, 5, 34, 31), 'result': '0.09747543990115765', 'result_long': None, 'result_double': None}] Qualite : 0.09747543990115765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20900111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900111_01-03-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20900111 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900111_01-03-2025_05_34_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900126, 'pht': 3726}}" where mtr_portfolio_id = 20900111 and dashboard_run_id = 1640364 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`=20900111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150624, 0.09747543990115765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900111_01-03-2025_05_34_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900126, '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 = 20900621 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': 2625805, 'mtr_portfolio_id': 20900621, 'created_at': datetime.datetime(2025, 3, 1, 5, 34, 59), 'result': '0.10516163642848303', 'result_long': None, 'result_double': None}] Qualite : 0.10516163642848303 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20900621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900621_01-03-2025_05_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20900621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900621_01-03-2025_05_35_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900658, 'pht': 3726}}" where mtr_portfolio_id = 20900621 and dashboard_run_id = 1640364 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`=20900621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150625, 0.10516163642848303, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20900621_01-03-2025_05_35_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20900648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20900649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20900650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20900651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20900652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20900654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20900655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20900656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20900657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20900658, '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 = 20901042 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': 2625806, 'mtr_portfolio_id': 20901042, 'created_at': datetime.datetime(2025, 3, 1, 5, 35, 29), 'result': '0.1051329707504246', 'result_long': None, 'result_double': None}] Qualite : 0.1051329707504246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20901042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901042_01-03-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20901042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901042_01-03-2025_05_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901056, 'pht': 3726}}" where mtr_portfolio_id = 20901042 and dashboard_run_id = 1640364 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`=20901042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150626, 0.1051329707504246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901042_01-03-2025_05_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901056, '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 = 20901979 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': 2625807, 'mtr_portfolio_id': 20901979, 'created_at': datetime.datetime(2025, 3, 1, 5, 36, 4), 'result': '0.09726493885083097', 'result_long': None, 'result_double': None}] Qualite : 0.09726493885083097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20901979 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901979_01-03-2025_05_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20901979 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901979_01-03-2025_05_36_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901992, 'pht': 3726}}" where mtr_portfolio_id = 20901979 and dashboard_run_id = 1640364 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`=20901979 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150627, 0.09726493885083097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20901979_01-03-2025_05_36_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20901981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20901982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20901983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20901984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20901985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20901986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20901987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20901988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20901989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20901990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20901991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20901992, '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 = 20902324 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': 2625808, 'mtr_portfolio_id': 20902324, 'created_at': datetime.datetime(2025, 3, 1, 5, 36, 30), 'result': '0.1106956512868298', 'result_long': None, 'result_double': None}] Qualite : 0.1106956512868298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20902324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902324_01-03-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20902324 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902324_01-03-2025_05_36_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20902377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902382, 'pht': 3726}}" where mtr_portfolio_id = 20902324 and dashboard_run_id = 1640364 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`=20902324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150628, 0.1106956512868298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902324_01-03-2025_05_36_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20902377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902382, '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 = 20902813 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': 2625809, 'mtr_portfolio_id': 20902813, 'created_at': datetime.datetime(2025, 3, 1, 5, 36, 59), 'result': '0.11020931110705216', 'result_long': None, 'result_double': None}] Qualite : 0.11020931110705216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20902813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902813_01-03-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20902813 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902813_01-03-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20902816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902827, 'pht': 3726}}" where mtr_portfolio_id = 20902813 and dashboard_run_id = 1640364 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`=20902813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150629, 0.11020931110705216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20902813_01-03-2025_05_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20902816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20902817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20902818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20902819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20902820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20902821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20902822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20902823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20902824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20902825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20902826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20902827, '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 = 20903214 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': 2625810, 'mtr_portfolio_id': 20903214, 'created_at': datetime.datetime(2025, 3, 1, 5, 37, 28), 'result': '0.10433878974311993', 'result_long': None, 'result_double': None}] Qualite : 0.10433878974311993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20903214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20903214_01-03-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20903214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20903214_01-03-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20903236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20903237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20903238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20903239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20903240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20903241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20903242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20903243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20903244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20903245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20903246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20903247, 'pht': 3726}}" where mtr_portfolio_id = 20903214 and dashboard_run_id = 1640364 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`=20903214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150630, 0.10433878974311993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20903214_01-03-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20903236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20903237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20903238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20903239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20903240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20903241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20903242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20903243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20903244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20903245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20903246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20903247, '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 = 20904104 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': 2625811, 'mtr_portfolio_id': 20904104, 'created_at': datetime.datetime(2025, 3, 1, 5, 38), 'result': '0.10257874093064737', 'result_long': None, 'result_double': None}] Qualite : 0.10257874093064737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20904104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904104_01-03-2025_05_38_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20904104 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904104_01-03-2025_05_38_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904145, 'pht': 3726}}" where mtr_portfolio_id = 20904104 and dashboard_run_id = 1640364 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`=20904104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150631, 0.10257874093064737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904104_01-03-2025_05_38_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904145, '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 = 20904676 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': 2625812, 'mtr_portfolio_id': 20904676, 'created_at': datetime.datetime(2025, 3, 1, 5, 38, 28), 'result': '0.09473653943982133', 'result_long': None, 'result_double': None}] Qualite : 0.09473653943982133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20904676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_01-03-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20904676 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_01-03-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, 'pht': 3726}}" where mtr_portfolio_id = 20904676 and dashboard_run_id = 1640364 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`=20904676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150632, 0.09473653943982133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_01-03-2025_05_38_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, '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 = 20905347 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': 2625813, 'mtr_portfolio_id': 20905347, 'created_at': datetime.datetime(2025, 3, 1, 5, 39, 4), 'result': '0.1166354402274141', 'result_long': None, 'result_double': None}] Qualite : 0.1166354402274141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20905347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_01-03-2025_05_39_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20905347 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_01-03-2025_05_39_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}" where mtr_portfolio_id = 20905347 and dashboard_run_id = 1640364 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`=20905347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150633, 0.1166354402274141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_01-03-2025_05_39_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, '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 = 20906134 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': 2625814, 'mtr_portfolio_id': 20906134, 'created_at': datetime.datetime(2025, 3, 1, 5, 39, 35), 'result': '0.10432963610499524', 'result_long': None, 'result_double': None}] Qualite : 0.10432963610499524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20906134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_01-03-2025_05_39_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20906134 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_01-03-2025_05_39_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}" where mtr_portfolio_id = 20906134 and dashboard_run_id = 1640364 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`=20906134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150634, 0.10432963610499524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_01-03-2025_05_39_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, '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 = 20907055 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': 2625815, 'mtr_portfolio_id': 20907055, 'created_at': datetime.datetime(2025, 3, 1, 5, 40, 3), 'result': '0.11092225984209479', 'result_long': None, 'result_double': None}] Qualite : 0.11092225984209479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20907055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_01-03-2025_05_40_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20907055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_01-03-2025_05_40_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, 'pht': 3726}}" where mtr_portfolio_id = 20907055 and dashboard_run_id = 1640364 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`=20907055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150635, 0.11092225984209479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_01-03-2025_05_40_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, '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 = 20907421 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': 2625816, 'mtr_portfolio_id': 20907421, 'created_at': datetime.datetime(2025, 3, 1, 5, 40, 34), 'result': '0.1130576946185818', 'result_long': None, 'result_double': None}] Qualite : 0.1130576946185818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20907421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_01-03-2025_05_40_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20907421 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_01-03-2025_05_40_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, 'pht': 3726}}" where mtr_portfolio_id = 20907421 and dashboard_run_id = 1640364 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`=20907421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150636, 0.1130576946185818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907421_01-03-2025_05_40_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20907429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907435, '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 = 20908156 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': 2625817, 'mtr_portfolio_id': 20908156, 'created_at': datetime.datetime(2025, 3, 1, 5, 41), 'result': '0.0944037372676116', 'result_long': None, 'result_double': None}] Qualite : 0.0944037372676116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20908156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20908156_01-03-2025_05_41_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20908156 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20908156_01-03-2025_05_41_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20908197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20908198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20908199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20908200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20908201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20908202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20908203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20908204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20908205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20908206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20908207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20908208, 'pht': 3726}}" where mtr_portfolio_id = 20908156 and dashboard_run_id = 1640364 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`=20908156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150637, 0.0944037372676116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20908156_01-03-2025_05_41_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20908197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20908198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20908199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20908200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20908201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20908202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20908203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20908204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20908205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20908206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20908207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20908208, '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 = 20909166 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': 2625818, 'mtr_portfolio_id': 20909166, 'created_at': datetime.datetime(2025, 3, 1, 5, 41, 5), 'result': '0.10670218234472828', 'result_long': None, 'result_double': None}] Qualite : 0.10670218234472828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20909166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909166_01-03-2025_05_41_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20909166 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909166_01-03-2025_05_41_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20909210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909216, 'pht': 3726}}" where mtr_portfolio_id = 20909166 and dashboard_run_id = 1640364 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`=20909166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150638, 0.10670218234472828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909166_01-03-2025_05_41_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20909210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909216, '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 = 20909596 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': 2625819, 'mtr_portfolio_id': 20909596, 'created_at': datetime.datetime(2025, 3, 1, 5, 41, 28), 'result': '0.09884933082917376', 'result_long': None, 'result_double': None}] Qualite : 0.09884933082917376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20909596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909596_01-03-2025_05_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20909596 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909596_01-03-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20909597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909608, 'pht': 3726}}" where mtr_portfolio_id = 20909596 and dashboard_run_id = 1640364 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`=20909596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150639, 0.09884933082917376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20909596_01-03-2025_05_41_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20909597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20909598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20909599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20909600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20909601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20909602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20909603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20909604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20909605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20909606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20909607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20909608, '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 = 20910125 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': 2625820, 'mtr_portfolio_id': 20910125, 'created_at': datetime.datetime(2025, 3, 1, 5, 41, 57), 'result': '0.0977144952595443', 'result_long': None, 'result_double': None}] Qualite : 0.0977144952595443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20910125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910125_01-03-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20910125 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910125_01-03-2025_05_42_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910139, 'pht': 3726}}" where mtr_portfolio_id = 20910125 and dashboard_run_id = 1640364 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`=20910125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150640, 0.0977144952595443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910125_01-03-2025_05_42_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910139, '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 = 20910508 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': 2625821, 'mtr_portfolio_id': 20910508, 'created_at': datetime.datetime(2025, 3, 1, 5, 42, 31), 'result': '0.10894214555197745', 'result_long': None, 'result_double': None}] Qualite : 0.10894214555197745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20910508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910508_01-03-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20910508 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910508_01-03-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910521, 'pht': 3726}}" where mtr_portfolio_id = 20910508 and dashboard_run_id = 1640364 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`=20910508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150641, 0.10894214555197745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20910508_01-03-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20910510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20910511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20910512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20910513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20910514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20910515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20910516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20910517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20910518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20910519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20910520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20910521, '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 = 20911007 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': 2625822, 'mtr_portfolio_id': 20911007, 'created_at': datetime.datetime(2025, 3, 1, 5, 43), 'result': '0.11047653188596454', 'result_long': None, 'result_double': None}] Qualite : 0.11047653188596454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20911007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911007_01-03-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20911007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911007_01-03-2025_05_43_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20911012, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911023, 'pht': 3726}}" where mtr_portfolio_id = 20911007 and dashboard_run_id = 1640364 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`=20911007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150642, 0.11047653188596454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911007_01-03-2025_05_43_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20911012, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911023, '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 = 20911538 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': 2625823, 'mtr_portfolio_id': 20911538, 'created_at': datetime.datetime(2025, 3, 1, 5, 43, 31), 'result': '0.09666844913473871', 'result_long': None, 'result_double': None}] Qualite : 0.09666844913473871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20911538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911538_01-03-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20911538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911538_01-03-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20911573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911578, 'pht': 3726}}" where mtr_portfolio_id = 20911538 and dashboard_run_id = 1640364 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`=20911538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150643, 0.09666844913473871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20911538_01-03-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20911567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20911568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20911569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20911570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20911571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20911572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20911573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20911574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20911575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20911576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20911577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20911578, '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 = 20912133 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': 2625824, 'mtr_portfolio_id': 20912133, 'created_at': datetime.datetime(2025, 3, 1, 5, 44, 1), 'result': '0.10903912850555066', 'result_long': None, 'result_double': None}] Qualite : 0.10903912850555066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20912133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912133_01-03-2025_05_44_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20912133 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912133_01-03-2025_05_44_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912171, 'pht': 3726}}" where mtr_portfolio_id = 20912133 and dashboard_run_id = 1640364 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`=20912133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150644, 0.10903912850555066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912133_01-03-2025_05_44_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912171, '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 = 20912498 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': 2625825, 'mtr_portfolio_id': 20912498, 'created_at': datetime.datetime(2025, 3, 1, 5, 44, 36), 'result': '0.104570729627168', 'result_long': None, 'result_double': None}] Qualite : 0.104570729627168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20912498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912498_01-03-2025_05_44_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20912498 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912498_01-03-2025_05_44_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912560, 'pht': 3726}}" where mtr_portfolio_id = 20912498 and dashboard_run_id = 1640364 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`=20912498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150645, 0.104570729627168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20912498_01-03-2025_05_44_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20912549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20912550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20912551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20912552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20912553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20912554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20912555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20912556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20912557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20912558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20912559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20912560, '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 = 20913007 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': 2625826, 'mtr_portfolio_id': 20913007, 'created_at': datetime.datetime(2025, 3, 1, 5, 45, 1), 'result': '0.10321891615618183', 'result_long': None, 'result_double': None}] Qualite : 0.10321891615618183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20913007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913007_01-03-2025_05_45_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20913007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913007_01-03-2025_05_45_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913050, 'pht': 3726}}" where mtr_portfolio_id = 20913007 and dashboard_run_id = 1640364 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`=20913007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150646, 0.10321891615618183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913007_01-03-2025_05_45_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913050, '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 = 20913442 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': 2625827, 'mtr_portfolio_id': 20913442, 'created_at': datetime.datetime(2025, 3, 1, 5, 45, 33), 'result': '0.09986614936325719', 'result_long': None, 'result_double': None}] Qualite : 0.09986614936325719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20913442 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913442_01-03-2025_05_45_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20913442 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913442_01-03-2025_05_45_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913459, 'pht': 3726}}" where mtr_portfolio_id = 20913442 and dashboard_run_id = 1640364 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`=20913442 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150647, 0.09986614936325719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20913442_01-03-2025_05_45_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20913448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20913449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20913450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20913451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20913452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20913453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20913454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20913455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20913456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20913457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20913458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20913459, '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 = 20914178 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': 2625828, 'mtr_portfolio_id': 20914178, 'created_at': datetime.datetime(2025, 3, 1, 5, 45, 58), 'result': '0.10715409670139263', 'result_long': None, 'result_double': None}] Qualite : 0.10715409670139263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20914178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914178_01-03-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20914178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914178_01-03-2025_05_46_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20914234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914245, 'pht': 3726}}" where mtr_portfolio_id = 20914178 and dashboard_run_id = 1640364 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`=20914178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150648, 0.10715409670139263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914178_01-03-2025_05_46_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20914234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914245, '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 = 20914902 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': 2625829, 'mtr_portfolio_id': 20914902, 'created_at': datetime.datetime(2025, 3, 1, 5, 46, 28), 'result': '0.0976130687373132', 'result_long': None, 'result_double': None}] Qualite : 0.0976130687373132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20914902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914902_01-03-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20914902 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914902_01-03-2025_05_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20914981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914991, 'pht': 3726}}" where mtr_portfolio_id = 20914902 and dashboard_run_id = 1640364 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`=20914902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150649, 0.0976130687373132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914902_01-03-2025_05_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20914980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20914981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20914982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20914983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20914984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20914985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20914986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20914987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20914988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20914989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20914990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20914991, '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 = 20915703 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': 2625830, 'mtr_portfolio_id': 20915703, 'created_at': datetime.datetime(2025, 3, 1, 5, 47), 'result': '0.09042460465916163', 'result_long': None, 'result_double': None}] Qualite : 0.09042460465916163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20915703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20915703_01-03-2025_05_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20915703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20915703_01-03-2025_05_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20915754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20915755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20915756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20915757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20915758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20915759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20915760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20915761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20915762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20915763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20915764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20915765, 'pht': 3726}}" where mtr_portfolio_id = 20915703 and dashboard_run_id = 1640364 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`=20915703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150650, 0.09042460465916163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20915703_01-03-2025_05_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20915754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20915755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20915756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20915757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20915758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20915759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20915760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20915761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20915762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20915763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20915764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20915765, '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 = 20916353 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': 2625831, 'mtr_portfolio_id': 20916353, 'created_at': datetime.datetime(2025, 3, 1, 5, 47, 34), 'result': '0.08017860043671397', 'result_long': None, 'result_double': None}] Qualite : 0.08017860043671397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20916353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20916353_01-03-2025_05_47_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20916353 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20916353_01-03-2025_05_47_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20916358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20916359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20916360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20916361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20916362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20916363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20916364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20916365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20916366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20916367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20916368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20916369, 'pht': 3726}}" where mtr_portfolio_id = 20916353 and dashboard_run_id = 1640364 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`=20916353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150651, 0.08017860043671397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20916353_01-03-2025_05_47_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20916358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20916359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20916360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20916361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20916362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20916363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20916364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20916365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20916366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20916367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20916368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20916369, '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 = 20917018 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': 2625832, 'mtr_portfolio_id': 20917018, 'created_at': datetime.datetime(2025, 3, 1, 5, 48, 3), 'result': '0.08489292125564545', 'result_long': None, 'result_double': None}] Qualite : 0.08489292125564545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20917018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917018_01-03-2025_05_48_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20917018 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917018_01-03-2025_05_48_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917096, 'pht': 3726}}" where mtr_portfolio_id = 20917018 and dashboard_run_id = 1640364 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`=20917018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150652, 0.08489292125564545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917018_01-03-2025_05_48_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917096, '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 = 20917662 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': 2625833, 'mtr_portfolio_id': 20917662, 'created_at': datetime.datetime(2025, 3, 1, 5, 48, 32), 'result': '0.07580751430809354', 'result_long': None, 'result_double': None}] Qualite : 0.07580751430809354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20917662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917662_01-03-2025_05_48_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20917662 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917662_01-03-2025_05_48_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917698, 'pht': 3726}}" where mtr_portfolio_id = 20917662 and dashboard_run_id = 1640364 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`=20917662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150653, 0.07580751430809354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20917662_01-03-2025_05_48_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20917687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20917688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20917689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20917690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20917691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20917692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20917693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20917694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20917695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20917696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20917697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20917698, '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 = 20919487 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': 2625834, 'mtr_portfolio_id': 20919487, 'created_at': datetime.datetime(2025, 3, 1, 5, 48, 59), 'result': '0.08223565964301224', 'result_long': None, 'result_double': None}] Qualite : 0.08223565964301224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20919487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919487_01-03-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20919487 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919487_01-03-2025_05_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919501, 'pht': 3726}}" where mtr_portfolio_id = 20919487 and dashboard_run_id = 1640364 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`=20919487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150654, 0.08223565964301224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919487_01-03-2025_05_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919501, '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 = 20919908 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': 2625835, 'mtr_portfolio_id': 20919908, 'created_at': datetime.datetime(2025, 3, 1, 5, 49, 12), 'result': '0.08462907558011067', 'result_long': None, 'result_double': None}] Qualite : 0.08462907558011067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20919908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919908_01-03-2025_05_49_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20919908 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919908_01-03-2025_05_49_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919969, 'pht': 3726}}" where mtr_portfolio_id = 20919908 and dashboard_run_id = 1640364 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`=20919908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150655, 0.08462907558011067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20919908_01-03-2025_05_49_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20919958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20919959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20919960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20919961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20919962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20919963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20919964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20919965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20919966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20919967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20919968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20919969, '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 = 20920542 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': 2625836, 'mtr_portfolio_id': 20920542, 'created_at': datetime.datetime(2025, 3, 1, 5, 49, 32), 'result': '0.08592433438531', 'result_long': None, 'result_double': None}] Qualite : 0.08592433438531 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20920542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_01-03-2025_05_49_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20920542 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_01-03-2025_05_49_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, 'pht': 3726}}" where mtr_portfolio_id = 20920542 and dashboard_run_id = 1640364 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`=20920542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150656, 0.08592433438531, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_01-03-2025_05_49_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, '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 = 20921078 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': 2625837, 'mtr_portfolio_id': 20921078, 'created_at': datetime.datetime(2025, 3, 1, 5, 50, 4), 'result': '0.0671245045393419', 'result_long': None, 'result_double': None}] Qualite : 0.0671245045393419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20921078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_01-03-2025_05_50_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20921078 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_01-03-2025_05_50_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, 'pht': 3726}}" where mtr_portfolio_id = 20921078 and dashboard_run_id = 1640364 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`=20921078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150657, 0.0671245045393419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_01-03-2025_05_50_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, '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 = 20921670 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': 2625838, 'mtr_portfolio_id': 20921670, 'created_at': datetime.datetime(2025, 3, 1, 5, 50, 34), 'result': '0.0753316746317092', 'result_long': None, 'result_double': None}] Qualite : 0.0753316746317092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20921670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_01-03-2025_05_50_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20921670 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_01-03-2025_05_50_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, 'pht': 3726}}" where mtr_portfolio_id = 20921670 and dashboard_run_id = 1640364 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`=20921670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150658, 0.0753316746317092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_01-03-2025_05_50_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, '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 = 20922382 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': 2625839, 'mtr_portfolio_id': 20922382, 'created_at': datetime.datetime(2025, 3, 1, 5, 50, 58), 'result': '0.08625669195160149', 'result_long': None, 'result_double': None}] Qualite : 0.08625669195160149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20922382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_01-03-2025_05_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20922382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_01-03-2025_05_51_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, 'pht': 3726}}" where mtr_portfolio_id = 20922382 and dashboard_run_id = 1640364 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`=20922382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150659, 0.08625669195160149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_01-03-2025_05_51_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, '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 = 20923040 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': 2625840, 'mtr_portfolio_id': 20923040, 'created_at': datetime.datetime(2025, 3, 1, 5, 51, 33), 'result': '0.07168274288339166', 'result_long': None, 'result_double': None}] Qualite : 0.07168274288339166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20923040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923040_01-03-2025_05_51_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20923040 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923040_01-03-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20923074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923083, 'pht': 3726}}" where mtr_portfolio_id = 20923040 and dashboard_run_id = 1640364 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`=20923040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150660, 0.07168274288339166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923040_01-03-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20923074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923083, '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 = 20923792 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': 2625841, 'mtr_portfolio_id': 20923792, 'created_at': datetime.datetime(2025, 3, 1, 5, 52, 2), 'result': '0.08539166407889447', 'result_long': None, 'result_double': None}] Qualite : 0.08539166407889447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20923792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923792_01-03-2025_05_52_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20923792 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923792_01-03-2025_05_52_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20923869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923880, 'pht': 3726}}" where mtr_portfolio_id = 20923792 and dashboard_run_id = 1640364 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`=20923792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150661, 0.08539166407889447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20923792_01-03-2025_05_52_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20923869, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20923870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20923871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20923872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20923873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20923874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20923875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20923876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20923877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20923878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20923879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20923880, '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 = 20924336 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': 2625842, 'mtr_portfolio_id': 20924336, 'created_at': datetime.datetime(2025, 3, 1, 5, 52, 36), 'result': '0.08412958401352444', 'result_long': None, 'result_double': None}] Qualite : 0.08412958401352444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20924336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924336_01-03-2025_05_52_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20924336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924336_01-03-2025_05_52_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924350, 'pht': 3726}}" where mtr_portfolio_id = 20924336 and dashboard_run_id = 1640364 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`=20924336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150662, 0.08412958401352444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924336_01-03-2025_05_52_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924350, '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 = 20924961 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': 2625843, 'mtr_portfolio_id': 20924961, 'created_at': datetime.datetime(2025, 3, 1, 5, 53, 13), 'result': '0.09813598228048111', 'result_long': None, 'result_double': None}] Qualite : 0.09813598228048111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20924961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924961_01-03-2025_05_53_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20924961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924961_01-03-2025_05_53_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924998, 'pht': 3726}}" where mtr_portfolio_id = 20924961 and dashboard_run_id = 1640364 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`=20924961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150663, 0.09813598228048111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20924961_01-03-2025_05_53_15.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20924987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20924988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20924989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20924990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20924991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20924992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20924993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20924994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20924995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20924996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20924997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20924998, '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 = 20925405 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': 2625844, 'mtr_portfolio_id': 20925405, 'created_at': datetime.datetime(2025, 3, 1, 5, 53, 33), 'result': '0.10163177566543884', 'result_long': None, 'result_double': None}] Qualite : 0.10163177566543884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20925405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20925405_01-03-2025_05_53_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20925405 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20925405_01-03-2025_05_53_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20925413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20925414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20925416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20925417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20925418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20925419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20925420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20925421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20925422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20925423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20925424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20925425, 'pht': 3726}}" where mtr_portfolio_id = 20925405 and dashboard_run_id = 1640364 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`=20925405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150664, 0.10163177566543884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20925405_01-03-2025_05_53_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20925413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20925414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20925416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20925417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20925418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20925419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20925420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20925421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20925422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20925423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20925424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20925425, '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 = 20927098 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': 2625845, 'mtr_portfolio_id': 20927098, 'created_at': datetime.datetime(2025, 3, 1, 5, 54, 2), 'result': '0.07074172868015148', 'result_long': None, 'result_double': None}] Qualite : 0.07074172868015148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20927098 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927098_01-03-2025_05_54_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20927098 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927098_01-03-2025_05_54_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927135, 'pht': 3726}}" where mtr_portfolio_id = 20927098 and dashboard_run_id = 1640364 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`=20927098 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150665, 0.07074172868015148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927098_01-03-2025_05_54_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927135, '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 = 20927337 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': 2625846, 'mtr_portfolio_id': 20927337, 'created_at': datetime.datetime(2025, 3, 1, 5, 54, 32), 'result': '0.08846237452132062', 'result_long': None, 'result_double': None}] Qualite : 0.08846237452132062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20927337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927337_01-03-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20927337 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927337_01-03-2025_05_54_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927352, 'pht': 3726}}" where mtr_portfolio_id = 20927337 and dashboard_run_id = 1640364 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`=20927337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150666, 0.08846237452132062, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927337_01-03-2025_05_54_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20927343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927352, '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 = 20927747 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': 2625847, 'mtr_portfolio_id': 20927747, 'created_at': datetime.datetime(2025, 3, 1, 5, 55, 1), 'result': '0.09506035928397637', 'result_long': None, 'result_double': None}] Qualite : 0.09506035928397637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20927747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927747_01-03-2025_05_55_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20927747 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927747_01-03-2025_05_55_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20927762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927766, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927773, 'pht': 3726}}" where mtr_portfolio_id = 20927747 and dashboard_run_id = 1640364 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`=20927747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150667, 0.09506035928397637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20927747_01-03-2025_05_55_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20927762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20927763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20927764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20927765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20927766, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20927767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20927768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20927769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20927770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20927771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20927772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20927773, '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 = 20928214 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': 2625848, 'mtr_portfolio_id': 20928214, 'created_at': datetime.datetime(2025, 3, 1, 5, 55, 30), 'result': '0.09608496959935235', 'result_long': None, 'result_double': None}] Qualite : 0.09608496959935235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20928214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928214_01-03-2025_05_55_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20928214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928214_01-03-2025_05_55_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20928250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928252, 'pht': 3726}}" where mtr_portfolio_id = 20928214 and dashboard_run_id = 1640364 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`=20928214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150668, 0.09608496959935235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928214_01-03-2025_05_55_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20928250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928252, '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 = 20928612 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': 2625849, 'mtr_portfolio_id': 20928612, 'created_at': datetime.datetime(2025, 3, 1, 5, 56, 3), 'result': '0.09401778079973279', 'result_long': None, 'result_double': None}] Qualite : 0.09401778079973279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20928612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928612_01-03-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20928612 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928612_01-03-2025_05_56_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20928645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928656, 'pht': 3726}}" where mtr_portfolio_id = 20928612 and dashboard_run_id = 1640364 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`=20928612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150669, 0.09401778079973279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20928612_01-03-2025_05_56_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20928645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20928646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20928647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20928648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20928649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20928650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20928651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20928652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20928653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20928654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20928655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20928656, '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 = 20930178 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': 2625850, 'mtr_portfolio_id': 20930178, 'created_at': datetime.datetime(2025, 3, 1, 5, 56, 36), 'result': '0.10139213051942109', 'result_long': None, 'result_double': None}] Qualite : 0.10139213051942109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20930178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930178_01-03-2025_05_56_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20930178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930178_01-03-2025_05_56_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20930180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20930188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930191, 'pht': 3726}}" where mtr_portfolio_id = 20930178 and dashboard_run_id = 1640364 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`=20930178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150670, 0.10139213051942109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930178_01-03-2025_05_56_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20930180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20930188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930191, '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 = 20930579 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': 2625851, 'mtr_portfolio_id': 20930579, 'created_at': datetime.datetime(2025, 3, 1, 5, 57, 3), 'result': '0.10766746148760428', 'result_long': None, 'result_double': None}] Qualite : 0.10766746148760428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20930579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930579_01-03-2025_05_57_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20930579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930579_01-03-2025_05_57_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20930583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20930584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930594, 'pht': 3726}}" where mtr_portfolio_id = 20930579 and dashboard_run_id = 1640364 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`=20930579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150671, 0.10766746148760428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20930579_01-03-2025_05_57_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20930583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20930584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20930585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20930586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20930587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20930588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20930589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20930590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20930591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20930592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20930593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20930594, '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 = 20931074 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': 2625852, 'mtr_portfolio_id': 20931074, 'created_at': datetime.datetime(2025, 3, 1, 5, 57, 32), 'result': '0.11379681648508425', 'result_long': None, 'result_double': None}] Qualite : 0.11379681648508425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20931074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931074_01-03-2025_05_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20931074 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931074_01-03-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931087, 'pht': 3726}}" where mtr_portfolio_id = 20931074 and dashboard_run_id = 1640364 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`=20931074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150672, 0.11379681648508425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931074_01-03-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931087, '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 = 20931482 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': 2625853, 'mtr_portfolio_id': 20931482, 'created_at': datetime.datetime(2025, 3, 1, 5, 58, 2), 'result': '0.12431975650664284', 'result_long': None, 'result_double': None}] Qualite : 0.12431975650664284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20931482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931482_01-03-2025_05_58_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20931482 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931482_01-03-2025_05_58_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931503, 'pht': 3726}}" where mtr_portfolio_id = 20931482 and dashboard_run_id = 1640364 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`=20931482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150673, 0.12431975650664284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20931482_01-03-2025_05_58_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20931492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20931493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20931494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20931495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20931496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20931497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20931498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20931499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20931500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20931501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20931502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20931503, '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 = 20932209 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': 2625854, 'mtr_portfolio_id': 20932209, 'created_at': datetime.datetime(2025, 3, 1, 5, 58, 34), 'result': '0.10704569837659192', 'result_long': None, 'result_double': None}] Qualite : 0.10704569837659192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20932209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20932209_01-03-2025_05_58_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20932209 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20932209_01-03-2025_05_58_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20932259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20932260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20932261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20932262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20932263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20932264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20932265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20932266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20932267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20932268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20932270, 'pht': 3726}}" where mtr_portfolio_id = 20932209 and dashboard_run_id = 1640364 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`=20932209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150674, 0.10704569837659192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20932209_01-03-2025_05_58_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20932259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20932260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20932261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20932262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20932263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20932264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20932265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20932266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20932267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20932268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20932269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20932270, '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 = 20933114 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': 2625855, 'mtr_portfolio_id': 20933114, 'created_at': datetime.datetime(2025, 3, 1, 5, 59, 3), 'result': '0.1147998387207112', 'result_long': None, 'result_double': None}] Qualite : 0.1147998387207112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20933114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933114_01-03-2025_05_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20933114 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933114_01-03-2025_05_59_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933128, 'pht': 3726}}" where mtr_portfolio_id = 20933114 and dashboard_run_id = 1640364 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`=20933114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150675, 0.1147998387207112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933114_01-03-2025_05_59_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933128, '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 = 20933804 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': 2625856, 'mtr_portfolio_id': 20933804, 'created_at': datetime.datetime(2025, 3, 1, 5, 59, 33), 'result': '0.10447427121643571', 'result_long': None, 'result_double': None}] Qualite : 0.10447427121643571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20933804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933804_01-03-2025_05_59_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20933804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933804_01-03-2025_05_59_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933855, 'pht': 3726}}" where mtr_portfolio_id = 20933804 and dashboard_run_id = 1640364 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`=20933804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150676, 0.10447427121643571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20933804_01-03-2025_05_59_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20933844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20933845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20933846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20933847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20933848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20933849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20933850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20933851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20933852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20933853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20933854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20933855, '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 = 20934243 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': 2625857, 'mtr_portfolio_id': 20934243, 'created_at': datetime.datetime(2025, 3, 1, 6, 0, 2), 'result': '0.11959182147555965', 'result_long': None, 'result_double': None}] Qualite : 0.11959182147555965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20934243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934243_01-03-2025_06_00_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20934243 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934243_01-03-2025_06_00_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934258, 'pht': 3726}}" where mtr_portfolio_id = 20934243 and dashboard_run_id = 1640364 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`=20934243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150677, 0.11959182147555965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934243_01-03-2025_06_00_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934258, '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 = 20934816 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': 2625858, 'mtr_portfolio_id': 20934816, 'created_at': datetime.datetime(2025, 3, 1, 6, 0, 44), 'result': '0.12375041140540041', 'result_long': None, 'result_double': None}] Qualite : 0.12375041140540041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20934816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934816_01-03-2025_06_00_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20934816 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934816_01-03-2025_06_00_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934907, 'pht': 3726}}" where mtr_portfolio_id = 20934816 and dashboard_run_id = 1640364 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`=20934816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150678, 0.12375041140540041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20934816_01-03-2025_06_00_47.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20934896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20934897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20934898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20934899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20934900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20934901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20934902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20934903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20934904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20934905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20934906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20934907, '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 = 20936213 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': 2625859, 'mtr_portfolio_id': 20936213, 'created_at': datetime.datetime(2025, 3, 1, 6, 1, 8), 'result': '0.11949172689175308', 'result_long': None, 'result_double': None}] Qualite : 0.11949172689175308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20936213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_01-03-2025_06_01_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20936213 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_01-03-2025_06_01_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936227, 'pht': 3726}}" where mtr_portfolio_id = 20936213 and dashboard_run_id = 1640364 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`=20936213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150679, 0.11949172689175308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936213_01-03-2025_06_01_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936227, '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 = 20936553 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': 2624748, 'mtr_portfolio_id': 20936553, 'created_at': datetime.datetime(2025, 2, 28, 18, 49, 15), 'result': '0.10894659946099487', 'result_long': None, 'result_double': None}] Qualite : 0.10894659946099487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20936553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936553_28-02-2025_18_49_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20936553 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936553_28-02-2025_18_49_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936566, 'pht': 3726}}" where mtr_portfolio_id = 20936553 and dashboard_run_id = 1640364 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`=20936553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150680, 0.10894659946099487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20936553_28-02-2025_18_49_15.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20936555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20936556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20936557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20936558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20936559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20936560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20936561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20936562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20936563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20936564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20936565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20936566, '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 = 20937007 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': 2624778, 'mtr_portfolio_id': 20937007, 'created_at': datetime.datetime(2025, 2, 28, 19, 2, 58), 'result': '0.12139212672551182', 'result_long': None, 'result_double': None}] Qualite : 0.12139212672551182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20937007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937007_28-02-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20937007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937007_28-02-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937020, 'pht': 3726}}" where mtr_portfolio_id = 20937007 and dashboard_run_id = 1640364 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`=20937007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150681, 0.12139212672551182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937007_28-02-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937020, '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 = 20937500 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': 2624824, 'mtr_portfolio_id': 20937500, 'created_at': datetime.datetime(2025, 2, 28, 19, 16, 58), 'result': '0.1178325574289863', 'result_long': None, 'result_double': None}] Qualite : 0.1178325574289863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20937500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20937500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, 'pht': 3726}}" where mtr_portfolio_id = 20937500 and dashboard_run_id = 1640364 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`=20937500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150682, 0.1178325574289863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, '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 = 20937873 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': 2624855, 'mtr_portfolio_id': 20937873, 'created_at': datetime.datetime(2025, 2, 28, 19, 32, 59), 'result': '0.11793626118023766', 'result_long': None, 'result_double': None}] Qualite : 0.11793626118023766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20937873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20937873 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, 'pht': 3726}}" where mtr_portfolio_id = 20937873 and dashboard_run_id = 1640364 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`=20937873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150683, 0.11793626118023766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, '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 = 20938430 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': 2624893, 'mtr_portfolio_id': 20938430, 'created_at': datetime.datetime(2025, 2, 28, 19, 52, 30), 'result': '0.11342680958395596', 'result_long': None, 'result_double': None}] Qualite : 0.11342680958395596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20938430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20938430 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, 'pht': 3726}}" where mtr_portfolio_id = 20938430 and dashboard_run_id = 1640364 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`=20938430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150684, 0.11342680958395596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, '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 = 20939195 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': 2624946, 'mtr_portfolio_id': 20939195, 'created_at': datetime.datetime(2025, 2, 28, 20, 2, 57), 'result': '0.10675708385257064', 'result_long': None, 'result_double': None}] Qualite : 0.10675708385257064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20939195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939195_28-02-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20939195 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939195_28-02-2025_20_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20939197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20939202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939208, 'pht': 3726}}" where mtr_portfolio_id = 20939195 and dashboard_run_id = 1640364 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`=20939195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150685, 0.10675708385257064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939195_28-02-2025_20_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20939197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20939202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939208, '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 = 20939475 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': 2624971, 'mtr_portfolio_id': 20939475, 'created_at': datetime.datetime(2025, 2, 28, 20, 19), 'result': '0.10366553235344286', 'result_long': None, 'result_double': None}] Qualite : 0.10366553235344286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20939475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939475_28-02-2025_20_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20939475 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939475_28-02-2025_20_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20939527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20939536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939538, 'pht': 3726}}" where mtr_portfolio_id = 20939475 and dashboard_run_id = 1640364 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`=20939475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150686, 0.10366553235344286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20939475_28-02-2025_20_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20939527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20939528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20939529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20939530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20939531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20939532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20939533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20939534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20939535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20939536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20939537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20939538, '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 = 20940145 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': 2625010, 'mtr_portfolio_id': 20940145, 'created_at': datetime.datetime(2025, 2, 28, 20, 32, 31), 'result': '0.113962730214793', 'result_long': None, 'result_double': None}] Qualite : 0.113962730214793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20940145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940145_28-02-2025_20_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20940145 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940145_28-02-2025_20_32_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940159, 'pht': 3726}}" where mtr_portfolio_id = 20940145 and dashboard_run_id = 1640364 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`=20940145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150687, 0.113962730214793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940145_28-02-2025_20_32_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940159, '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 = 20940802 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': 2625052, 'mtr_portfolio_id': 20940802, 'created_at': datetime.datetime(2025, 2, 28, 21, 8, 57), 'result': '0.11654102216862333', 'result_long': None, 'result_double': None}] Qualite : 0.11654102216862333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20940802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940802_28-02-2025_21_08_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20940802 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940802_28-02-2025_21_08_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940817, 'pht': 3726}}" where mtr_portfolio_id = 20940802 and dashboard_run_id = 1640364 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`=20940802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9150688, 0.11654102216862333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20940802_28-02-2025_21_08_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20940806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20940807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20940808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20940809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20940810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20940811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20940812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20940813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20940814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20940815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20940816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20940817, '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 (20900111,20900621,20901042,20901979,20902324,20902813,20903214,20904104,20904676,20905347,20906134,20907055,20907421,20908156,20909166,20909596,20910125,20910508,20911007,20911538,20912133,20912498,20913007,20913442,20914178,20914902,20915703,20916353,20917018,20917662,20919487,20919908,20920542,20921078,20921670,20922382,20923040,20923792,20924336,20924961,20925405,20927098,20927337,20927747,20928214,20928612,20930178,20930579,20931074,20931482,20932209,20933114,20933804,20934243,20934816,20936213,20936553,20937007,20937500,20937873,20938430,20939195,20939475,20940145,20940802) result : ((1340013836,), (1340013838,), (1340013840,), (1340014045,), (1340014049,), (1340014053,), (1340014058,), (1340014063,), (1340014110,), (1340014114,), (1340014116,), (1340014122,), (1340014126,), (1340014135,), (1340014180,), (1340014184,), (1340014188,), (1340014191,), (1340014227,), (1340014232,), (1340014237,), (1340014243,), (1340014251,), (1340015073,), (1340015079,), (1340015082,), (1340015086,), (1340015090,), (1340015358,), (1340015369,), (1340015401,), (1340015421,), (1340015426,), (1340015456,), (1340015466,), (1340015476,), (1340015481,), (1340015486,), (1340015492,), (1340015537,), (1340015543,), (1340015549,), (1340015593,), (1340015606,), (1340015611,), (1340015615,), (1340015659,), (1340015737,), (1340015742,), (1340015748,), (1340015755,), (1340015759,), (1340015808,), (1340015813,), (1340015818,), (1340015858,), (1340015862,), (1340015866,), (1340015870,), (1340015874,), (1340015882,), (1340015924,), (1340015934,), (1340015939,), (1340015945,), (1340015950,), (1340015975,), (1340015981,), (1340015986,), (1340015989,), (1340016136,), (1340016046,), (1340016050,), (1340016054,), (1340016112,), (1340016130,), (1340016481,), (1340016497,), (1340016502,), (1340016507,), (1340016517,), (1340016558,), (1340016562,), (1340016600,), (1340016604,), (1340016608,), (1340016613,), (1340016619,), (1340016665,), (1340016667,), (1340016670,), (1340016674,), (1340016677,), (1340016790,), (1340016794,), (1340016798,), (1340016803,), (1340016846,), (1340016850,), (1340016853,), (1340016856,), (1340016859,), (1340016896,), (1340016903,), (1340016918,), (1340016959,), (1340016963,), (1340016967,), (1340016971,), (1340016975,), (1340017011,), (1340017012,), (1340017014,), (1340017017,), (1340017021,), (1340017030,), (1340017094,), (1340017107,), (1340017111,), (1340017115,), (1340017119,), (1340017147,), (1340017149,), (1340017153,), (1340017157,), (1340017222,), (1340017232,), (1340017243,), (1340017248,), (1340017251,), (1340017282,), (1340017283,), (1340017285,), (1340017287,), (1340017290,), (1340017294,), (1340017336,), (1340017339,), (1340017399,), (1340017384,), (1340017386,), (1340017388,), (1340017391,), (1340017394,), (1340017456,), (1340017457,), (1340017460,), (1340017462,), (1340017464,), (1340017750,), (1340017938,), (1340018020,), (1340018025,), (1340018225,), (1340018230,), (1340018233,), (1340018238,), (1340018242,), (1340018247,), (1340018271,), (1340018275,), (1340018280,), (1340018320,), (1340018323,), (1340018325,), (1340018329,), (1340018332,), (1340018335,), (1340018357,), (1340018360,), (1340018363,), (1340018367,), (1340018371,), (1340018374,), (1340018400,), (1340018403,), (1340018407,), (1340018460,), (1340026025,), (1340026115,), (1340026236,), (1340026453,), (1340026457,), (1340026474,), (1340026514,), (1340026593,), (1340026597,), (1340026600,), (1340027129,), (1340027134,), (1340027138,), (1340027143,), (1340027274,), (1340027516,), (1340028043,), (1340028046,), (1340028049,), (1340028056,), (1340028391,), (1340028402,), (1340028407,), (1340028410,), (1340028453,), (1340028619,), (1340028769,), (1340028784,), (1340028827,), (1340028831,), (1340028848,), (1340028854,), (1340028858,), (1340028877,), (1340028881,), (1340028884,), (1340028888,), (1340029073,), (1340029076,), (1340029079,), (1340029083,), (1340029088,), (1340029189,), (1340029184,), (1340029187,), (1340029432,), (1340029434,), (1340029471,), (1340029474,), (1340029477,), (1340029480,), (1340029484,), (1340029523,), (1340029597,), (1340029689,), (1340029765,), (1340029844,), (1340029857,), (1340030118,), (1340030122,), (1340030127,), (1340030131,), (1340030231,), (1340030242,), (1340030246,), (1340030250,), (1340030273,), (1340030276,), (1340030279,), (1340030283,), (1340030315,), (1340030323,), (1340030333,), (1340030337,), (1340030387,), (1340030390,), (1340030393,), (1340030397,), (1340030497,), (1340030890,), (1340030891,), (1340030897,), (1340030917,), (1340030927,), (1340030982,), (1340031055,), (1340031058,), (1340031521,), (1340032111,), (1340032104,), (1340032108,), (1340032137,), (1340032140,), (1340032143,), (1340032147,), (1340032150,), (1340032474,), (1340032477,), (1340032480,), (1340032484,), (1340032825,), (1340032835,), (1340032850,), (1340032855,), (1340032860,), (1340032863,), (1340032890,), (1340032892,), (1340032895,), (1340032897,), (1340032920,), (1340032922,), (1340032923,), (1340032966,), (1340032967,), (1340032979,), (1340033016,), (1340033017,), (1340033018,), (1340033058,), (1340033061,), (1340033151,), (1340033163,), (1340033170,), (1340033178,), (1340033182,), (1340033185,), (1340033550,), (1340033616,), (1340033697,), (1340033759,), (1340034079,), (1340034083,), (1340034087,), (1340034092,), (1340034096,), (1340034100,), (1340034362,), (1340034415,), (1340034429,), (1340034580,), (1340034586,), (1340034590,), (1340034596,), (1340034600,), (1340034891,), (1340034885,), (1340034886,), (1340034887,), (1340034889,), (1340034906,), (1340034907,), (1340034911,), (1340034926,), (1340035232,), (1340035236,), (1340035241,), (1340035243,), (1340035245,), (1340035444,), (1340035457,), (1340035670,), (1340035771,), (1340035777,), (1340035883,), (1340035887,), (1340036026,), (1340036529,), (1340036530,), (1340036540,), (1340036546,), (1340036552,), (1340036590,), (1340036830,), (1340036847,), (1340036860,), (1340036934,), (1340037033,), (1340037039,), (1340037199,), (1340037200,), (1340037201,), (1340037253,), (1340037254,), (1340037259,), (1340037266,), (1340037269,), (1340037283,), (1340037301,), (1340037303,), (1340037348,), (1340037486,), (1340037504,), (1340037543,), (1340037545,), (1340037584,), (1340038101,), (1340038198,), (1340038369,), (1340038460,), (1340038566,), (1340038644,), (1340039271,), (1340039273,), (1340039284,), (1340039301,), (1340039313,), (1340039522,), (1340039538,), (1340039579,), (1340039595,), (1340039656,), (1340039658,), (1340039660,), (1340039668,), (1340039679,), (1340039687,), (1340039804,), (1340039758,), (1340039794,), (1340039862,), (1340039864,), (1340039907,), (1340039921,), (1340039925,), (1340039952,), (1340039957,), (1340039959,), (1340039962,), (1340039964,), (1340039987,), (1340039992,), (1340039997,), (1340040056,), (1340040059,), (1340040060,), (1340040064,), (1340040066,), (1340040068,), (1340040078,), (1340040089,), (1340040118,), (1340040303,), (1340040511,), (1340041003,), (1340041006,), (1340041012,), (1340041356,), (1340041359,), (1340041421,), (1340041428,), (1340041431,), (1340041491,), (1340041493,), (1340041495,), (1340041498,), (1340041501,), (1340041597,), (1340041775,), (1340041787,), (1340041888,), (1340041923,), (1340041926,), (1340041927,), (1340041931,), (1340041958,), (1340041962,), (1340041965,), (1340041968,), (1340041971,), (1340042054,), (1340042055,), (1340042057,), (1340042061,), (1340042064,), (1340042069,), (1340042077,), (1340042075,), (1340042100,), (1340042102,), (1340042104,), (1340042134,), (1340042136,), (1340042138,), (1340042179,), (1340042181,), (1340042183,), (1340042195,), (1340042200,), (1340042202,), (1340042205,), (1340042206,), (1340042220,), (1340042222,), (1340042224,), (1340042226,), (1340042228,), (1340042999,), (1340043003,), (1340043005,), (1340043008,), (1340043015,), (1340043431,), (1340043436,), (1340043438,), (1340043441,), (1340043444,), (1340043504,), (1340043578,), (1340043580,), (1340043582,), (1340043584,), (1340043587,), (1340043598,), (1340043650,), (1340043653,), (1340043664,), (1340043670,), (1340044341,), (1340044424,), (1340044498,), (1340044783,), (1340044797,), (1340044799,), (1340044844,), (1340044929,), (1340045010,), (1340045119,), (1340045126,), (1340045128,), (1340045140,), (1340045155,), (1340045162,), (1340045381,), (1340045387,), (1340045389,), (1340045393,), (1340045564,), (1340045567,), (1340045571,), (1340045574,), (1340045579,), (1340045583,), (1340045596,), (1340045600,), (1340045602,), (1340045603,), (1340045662,), (1340045642,), (1340045648,), (1340045657,), (1340045660,), (1340045822,), (1340045824,), (1340045826,), (1340045828,), (1340045831,), (1340045833,), (1340045847,), (1340045851,), (1340045856,), (1340045861,), (1340045865,), (1340045873,), (1340045875,), (1340045877,), (1340045880,), (1340045883,), (1340045885,), (1340045964,), (1340046009,), (1340046139,), (1340046210,), (1340046338,), (1340046421,), (1340046603,), (1340046605,), (1340046607,), (1340046617,), (1340046646,), (1340046679,), (1340046681,), (1340046727,), (1340046796,), (1340046863,), (1340046893,), (1340047031,), (1340047088,), (1340047091,), (1340047093,), (1340047120,), (1340047122,), (1340047134,), (1340047140,), (1340047151,), (1340047156,), (1340047178,), (1340047180,), (1340047182,), (1340047190,), (1340047207,), (1340047210,), (1340047214,), (1340047218,), (1340047222,), (1340047238,), (1340047240,), (1340047242,), (1340047245,), (1340047248,), (1340047260,), (1340047310,), (1340047312,), (1340047314,), (1340047316,), (1340047718,), (1340047720,), (1340047728,), (1340047737,), (1340047740,), (1340047741,), (1340047958,), (1340047960,), (1340047974,), (1340048044,), (1340048113,), (1340048240,), (1340048133,), (1340048135,), (1340048137,), (1340048142,), (1340048224,), (1340048515,), (1340048529,), (1340048537,), (1340048540,), (1340048581,), (1340049011,), (1340049028,), (1340049032,), (1340049035,), (1340049054,), (1340049186,), (1340049187,), (1340049199,), (1340049220,), (1340049225,), (1340049239,), (1340049287,), (1340049288,), (1340049299,), (1340049311,), (1340049325,), (1340049353,), (1340049355,), (1340049358,), (1340049360,), (1340049392,), (1340049393,), (1340049394,), (1340049396,), (1340049402,), (1340049465,), (1340049486,), (1340049499,), (1340049510,), (1340049515,), (1340049520,), (1340049566,), (1340049568,), (1340049570,), (1340049572,), (1340049653,), (1340049701,), (1340049758,), (1340049796,), (1340049861,), (1340049942,), (1340050133,), (1340050141,), (1340050152,), (1340050155,), (1340050593,), (1340050599,), (1340050639,), (1340050653,), (1340050656,), (1340050712,), (1340050714,), (1340050716,), (1340050719,), (1340050722,), (1340050774,), (1340050778,), (1340050784,), (1340050868,), (1340050895,), (1340050903,), (1340051537,), (1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,), (1340052628,), (1340052630,), (1340052632,), (1340052635,), (1340052641,), (1340052650,), (1340052652,), (1340052655,), (1340052658,), (1340052660,), (1340052664,), (1340052670,), (1340052680,), (1340052694,), (1340052703,), (1340052715,), (1340052718,), (1340052749,), (1340052838,), (1340053184,), (1340053176,), (1340053178,), (1340053237,), (1340053239,), (1340053241,), (1340053244,), (1340053246,), (1340053249,), (1340053266,), (1340053273,), (1340053275,), (1340053278,), (1340053284,), (1340054130,), (1340054213,), (1340054217,), (1340054220,), (1340054280,), (1340054312,), (1340054503,), (1340054536,), (1340054601,), (1340054609,), (1340054613,), (1340054636,), (1340054637,), (1340054639,), (1340054640,), (1340054661,), (1340054663,), (1340054672,), (1340054723,), (1340054726,), (1340054739,), (1340054757,), (1340054759,), (1340054765,), (1340054774,), (1340055001,), (1340055002,), (1340055003,), (1340055005,), (1340055067,), (1340055121,), (1340055122,), (1340055123,), (1340055125,), (1340055127,), (1340055132,), (1340055226,), (1340055370,), (1340055386,), (1340055388,), (1340055621,), (1340055634,), (1340055635,), (1340055644,), (1340055649,), (1340055656,), (1340055691,), (1340055699,), (1340055818,), (1340055871,), (1340055879,), (1340055883,), (1340055901,), (1340055912,), (1340056395,), (1340056397,), (1340056401,), (1340056406,), (1340056409,), (1340056600,), (1340056548,), (1340056598,), (1340056833,), (1340056835,), (1340056837,), (1340056841,), (1340056846,), (1340056883,), (1340056885,), (1340056887,), (1340056892,), (1340056943,), (1340056960,), (1340056990,), (1340056992,), (1340056994,), (1340056998,), (1340057001,), (1340057021,), (1340057023,), (1340057025,), (1340057029,), (1340057049,), (1340057233,), (1340057326,), (1340057462,), (1340057626,), (1340057717,), (1340058177,), (1340058179,), (1340058181,), (1340058526,), (1340058579,), (1340058588,), (1340058605,), (1340058661,), (1340058674,), (1340058708,), (1340060872,), (1340065828,), (1340066031,), (1340066066,), (1340066067,), (1340066897,), (1340066898,), (1340067209,), (1340067210,), (1340067378,), (1340067379,), (1340067380,), (1340067383,), (1340067386,), (1340067407,), (1340067408,), (1340067409,), (1340067412,), (1340067521,), (1340067531,), (1340067555,), (1340067556,), (1340067831,), (1340067850,), (1340067851,), (1340067906,), (1340067907,), (1340067908,), (1340067944,), (1340067947,), (1340067948,), (1340067950,), (1340068015,), (1340068013,), (1340068014,), (1340068040,), (1340068041,), (1340068042,), (1340068044,), (1340068047,), (1340068054,), (1340068085,), (1340068086,), (1340068087,), (1340068090,), (1340068092,), (1340068353,), (1340068417,), (1340068527,), (1340068723,), (1340068798,), (1340068967,), (1340068969,), (1340069012,), (1340069035,), (1340069040,), (1340069081,), (1340069084,), (1340069086,), (1340069090,), (1340069099,), (1340069123,), (1340069125,), (1340069202,), (1340069279,), (1340069303,), (1340069446,), (1340069449,), (1340069452,), (1340069458,), (1340069467,), (1340069495,), (1340069498,), (1340069499,), (1340069503,), (1340069506,), (1340069524,), (1340069526,), (1340069528,), (1340069567,), (1340069569,), (1340069571,), (1340069575,), (1340069577,), (1340069603,), (1340069605,), (1340069610,), (1340069632,), (1340069639,), (1340069646,), (1340069649,), (1340069653,), (1340069658,), (1340069710,), (1340069715,), (1340069721,), (1340069726,), (1340069729,), (1340069768,), (1340069769,), (1340069772,), (1340069776,), (1340069778,), (1340069785,), (1340069948,), (1340069918,), (1340069921,), (1340069990,), (1340069992,), (1340069994,), (1340070033,), (1340070114,), (1340070178,), (1340070192,), (1340070196,), (1340070199,), (1340070203,), (1340070421,), (1340070423,), (1340070425,), (1340070429,), (1340070431,), (1340070436,), (1340070453,), (1340070457,), (1340070461,), (1340070463,), (1340070483,), (1340070490,), (1340070506,), (1340070510,), (1340070513,), (1340070517,), (1340070534,), (1340070538,), (1340070540,), (1340070544,), (1340070583,), (1340070585,), (1340070587,), (1340070592,), (1340070595,), (1340070599,), (1340070618,), (1340070620,), (1340070622,), (1340070626,), (1340070630,), (1340070664,), (1340070666,), (1340070667,), (1340070672,), (1340070675,), (1340070693,), (1340070696,), (1340070700,), (1340070704,), (1340070707,), (1340070712,), (1340070749,), (1340070751,), (1340070753,), (1340070757,), (1340070760,), (1340070778,), (1340070780,), (1340070782,), (1340070794,), (1340070806,), (1340070815,), (1340070840,), (1340070845,), (1340070847,), (1340070849,), (1340070853,), (1340070874,), (1340070876,), (1340070878,), (1340070882,), (1340070893,), (1340070923,), (1340070983,), (1340070963,), (1340070970,), (1340070977,), (1340070995,), (1340071004,), (1340071008,), (1340071014,), (1340071020,), (1340071023,), (1340071505,), (1340071507,), (1340071509,), (1340071512,), (1340071515,), (1340071520,), (1340071770,), (1340071772,), (1340071777,), (1340071814,), (1340072232,), (1340072234,), (1340072236,), (1340072239,), (1340072243,), (1340072247,), (1340072263,), (1340072265,), (1340072267,), (1340072271,), (1340072300,), (1340072303,), (1340072307,), (1340072314,), (1340072321,), (1340072326,), (1340072354,), (1340072356,), (1340072358,), (1340072361,), (1340072364,), (1340072392,), (1340072394,), (1340072396,), (1340072399,), (1340072411,), (1340072417,), (1340072479,), (1340072481,), (1340072483,), (1340072486,), (1340072552,), (1340072554,), (1340072557,), (1340072559,), (1340072566,), (1340072570,), (1340072582,), (1340072584,), (1340072586,), (1340072589,), (1340072626,), (1340072628,), (1340072630,), (1340072632,), (1340072636,), (1340072641,), (1340072672,), (1340072678,), (1340072684,), (1340072698,), (1340072886,), (1340072970,), (1340073050,), (1340073118,), (1340073141,), (1340073128,), (1340073131,), (1340073134,), (1340073138,), (1340073184,), (1340073187,), (1340073189,), (1340073192,), (1340073277,), (1340073280,), (1340073285,), (1340073288,), (1340073309,), (1340073312,), (1340073317,), (1340073320,), (1340073326,), (1340073331,), (1340074110,), (1340074112,), (1340074114,), (1340074119,), (1340075015,), (1340075039,), (1340075052,), (1340075063,), (1340075075,), (1340075080,), (1340075280,), (1340075293,), (1340075313,), (1340075315,), (1340075320,), (1340075345,), (1340075347,), (1340075349,), (1340075354,), (1340075357,), (1340075395,), (1340075425,), (1340075427,), (1340075429,), (1340075442,), (1340075453,), (1340075471,), (1340075474,), (1340075476,), (1340075480,), (1340075482,), (1340075487,), (1340075502,), (1340075504,), (1340075509,), (1340075545,), (1340075548,), (1340075554,), (1340075557,), (1340075564,), (1340075572,), (1340075582,), (1340075590,), (1340075600,), (1340075603,), (1340075632,), (1340075635,), (1340075637,), (1340075641,), (1340075644,), (1340075648,), (1340075682,), (1340075675,), (1340075677,), (1340075679,), (1340075731,), (1340075733,), (1340075739,), (1340075746,), (1340075749,), (1340075755,), (1340076245,), (1340076267,), (1340076286,), (1340076290,), (1340076317,), (1340076319,), (1340076321,), (1340076327,), (1340076337,), (1340076349,), (1340076382,), (1340076384,), (1340076393,), (1340076396,), (1340076441,), (1340076443,), (1340076446,), (1340076449,), (1340076452,), (1340076458,), (1340076480,), (1340076482,), (1340076490,), (1340076496,), (1340076499,), (1340076516,), (1340076518,), (1340076520,), (1340076523,), (1340076527,), (1340076560,), (1340076562,), (1340076565,), (1340076569,), (1340076572,), (1340076577,), (1340076590,), (1340076592,), (1340076594,), (1340076598,), (1340076603,), (1340076640,), (1340076642,), (1340076644,), (1340076649,), (1340076669,), (1340076671,), (1340076673,), (1340076675,), (1340076678,), (1340076682,), (1340076709,), (1340076711,), (1340076713,), (1340076715,), (1340076719,), (1340076755,), (1340076757,), (1340076826,), (1340076824,), (1340076859,), (1340076861,), (1340076863,), (1340076873,), (1340076880,), (1340076885,), (1340076908,), (1340076909,), (1340076911,), (1340076918,), (1340076925,), (1340076964,), (1340076981,), (1340076995,), (1340077001,), (1340077006,), (1340077010,), (1340077021,), (1340077024,), (1340077026,), (1340077029,), (1340077032,), (1340077056,), (1340077058,), (1340077059,), (1340077063,), (1340077562,), (1340077595,), (1340077880,), (1340077882,), (1340077884,), (1340077895,), (1340077964,), (1340078220,), (1340078222,), (1340078224,), (1340078226,), (1340078561,), (1340078563,), (1340078565,), (1340078569,), (1340078592,), (1340078594,), (1340078596,), (1340078601,), (1340078603,), (1340078635,), (1340078642,), (1340078645,), (1340078648,), (1340078652,), (1340078676,), (1340078678,), (1340078680,), (1340078683,), (1340078686,), (1340078689,), (1340078712,), (1340078721,), (1340078723,), (1340078726,), (1340078728,), (1340078744,), (1340078746,), (1340078748,), (1340078753,), (1340078757,), (1340078810,), (1340078786,), (1340078789,), (1340078793,), (1340078802,), (1340078804,), (1340078836,), (1340078838,), (1340078840,), (1340078844,), (1340078846,), (1340079270,), (1340079272,), (1340079274,), (1340079403,), (1340079574,), (1340079576,), (1340079578,), (1340079582,), (1340079585,), (1340079610,), (1340079612,), (1340079614,), (1340079617,), (1340079621,), (1340079634,), (1340079639,), (1340079701,), (1340079713,), (1340079720,), (1340079725,), (1340079728,), (1340079755,), (1340079757,), (1340079759,), (1340079762,), (1340079766,), (1340079802,), (1340079804,), (1340079806,), (1340079808,), (1340079812,), (1340079835,), (1340079839,), (1340079841,), (1340079844,), (1340079848,), (1340079868,), (1340079870,), (1340079873,), (1340079877,), (1340079880,), (1340079904,), (1340079906,), (1340079910,), (1340079920,), (1340079922,), (1340079928,), (1340079954,), (1340079959,), (1340079963,), (1340079970,), (1340079986,), (1340079991,), (1340080000,), (1340080004,), (1340080007,), (1340080038,), (1340080018,), (1340080021,), (1340080024,), (1340080028,), (1340080031,), (1340080064,), (1340080068,), (1340080072,), (1340080077,), (1340081057,), (1340081060,), (1340081192,), (1340081351,), (1340081429,), (1340081588,), (1340081600,), (1340081608,), (1340081660,), (1340081805,), (1340081975,), (1340082127,), (1340082143,), (1340082158,), (1340082162,), (1340082169,), (1340082215,), (1340082218,), (1340082222,), (1340082227,), (1340082231,), (1340082276,), (1340082278,), (1340082282,), (1340082285,), (1340082291,), (1340082294,), (1340082337,), (1340082340,), (1340082347,), (1340082352,), (1340082357,), (1340082393,), (1340082396,), (1340082399,), (1340082403,), (1340082405,), (1340082698,), (1340082700,), (1340082702,), (1340082708,), (1340082712,), (1340082718,), (1340082759,), (1340082772,), (1340082780,), (1340082800,), (1340082806,), (1340082810,), (1340082833,), (1340082836,), (1340082840,), (1340082849,), (1340082860,), (1340082872,), (1340082908,), (1340082911,), (1340082917,), (1340082921,), (1340082925,), (1340082928,), (1340082931,), (1340082935,), (1340083430,), (1340083436,), (1340083653,), (1340083655,), (1340083656,), (1340083658,), (1340083663,), (1340083668,), (1340082445,), (1340082452,), (1340082455,), (1340082463,), (1340082470,), (1340082478,), (1340082494,), (1340082499,), (1340082503,), (1340082508,), (1340082513,), (1340082517,), (1340082536,), (1340082540,), (1340082546,), (1340082560,), (1340082571,), (1340082574,), (1340082594,), (1340082607,), (1340082616,), (1340082621,), (1340082632,), (1340082634,), (1340082655,), (1340082667,), (1340082675,), (1340082678,), (1340082682,), (1340082685,), (1340082738,), (1340082741,), (1340082753,), (1340082790,), (1340082793,), (1340082797,), (1340082877,), (1340082888,), (1340082903,), (1340082905,), (1340083147,), (1340083229,), (1340083313,), (1340083403,), (1340083445,), (1340083447,), (1340083475,), (1340083554,), (1340083588,), (1340083596,), (1340083682,), (1340083687,), (1340083691,), (1340083695,), (1340083735,), (1340083739,), (1340083748,), (1340083754,), (1340083757,), (1340083764,), (1340083792,), (1340083796,), (1340083810,), (1340083822,), (1340083833,), (1340083863,), (1340083867,), (1340083869,), (1340083874,), (1340083919,), (1340083928,), (1340083941,), (1340083954,), (1340083961,), (1340083964,), (1340084013,), (1340083996,), (1340084000,), (1340084002,), (1340084009,), (1340084057,), (1340084062,), (1340084074,), (1340084079,), (1340084083,), (1340084121,), (1340084125,), (1340084127,), (1340084662,), (1340084665,), (1340084667,), (1340084955,), (1340084961,), (1340084968,), (1340084975,), (1340084985,), (1340084997,), (1340085049,), (1340085058,), (1340085071,), (1340085079,), (1340085085,), (1340085137,), (1340085141,), (1340085146,), (1340085151,), (1340085154,), (1340085197,), (1340085207,), (1340085234,), (1340085307,), (1340085518,), (1340085522,), (1340085532,), (1340085592,), (1340085595,), (1340085757,), (1340085760,), (1340085763,), (1340085769,), (1340085774,), (1340085780,), (1340085812,), (1340085816,), (1340085818,), (1340085851,), (1340085855,), (1340085859,), (1340085864,), (1340085898,), (1340085901,), (1340085907,), (1340085910,), (1340085916,), (1340085928,), (1340086000,), (1340085973,), (1340085978,), (1340085985,), (1340085997,), (1340086049,), (1340086052,), (1340086056,), (1340086060,), (1340086065,), (1340086077,), (1340086122,), (1340086126,), (1340086129,), (1340086138,), (1340086145,), (1340086327,), (1340086380,), (1340086386,), (1340087141,), (1340087146,), (1340087154,), (1340087502,), (1340087512,), (1340087515,), (1340087520,), (1340087525,), (1340087531,), (1340087769,), (1340087775,), (1340087780,), (1340087784,), (1340087788,), (1340087859,), (1340087868,), (1340087872,), (1340087877,), (1340087880,), (1340087900,), (1340087916,), (1340087922,), (1340087926,), (1340087931,), (1340087981,), (1340087985,), (1340087987,), (1340087993,), (1340087997,), (1340088004,), (1340088036,), (1340088040,), (1340088046,), (1340088051,), (1340088105,), (1340088112,), (1340088119,), (1340088122,), (1340088127,), (1340088135,), (1340088192,), (1340088201,), (1340088209,), (1340088216,), (1340088223,), (1340088253,), (1340088254,), (1340088257,), (1340088258,), (1340088263,), (1340088265,), (1340088357,), (1340088283,), (1340088287,), (1340088290,), (1340088308,), (1340088313,), (1340088515,), (1340088520,), (1340088531,), (1340088554,), (1340088561,), (1340089285,), (1340089402,), (1340089493,), (1340089589,), (1340090109,), (1340090337,), (1340090349,), (1340090355,), (1340090359,), (1340090366,), (1340090718,), (1340090778,), (1340090837,), (1340090891,), (1340091223,), (1340091227,), (1340091229,), (1340091234,), (1340091238,), (1340091245,), (1340091274,), (1340091276,), (1340091278,), (1340091281,), (1340091291,), (1340091725,), (1340091733,), (1340091736,), (1340091740,), (1340091744,), (1340091779,), (1340091782,), (1340091785,), (1340091787,), (1340091849,), (1340091857,), (1340091874,), (1340091882,), (1340091888,), (1340091897,), (1340091967,), (1340091970,), (1340091995,), (1340092001,), (1340092004,), (1340092084,), (1340092087,), (1340092089,), (1340092097,), (1340092106,), (1340092298,), (1340092304,), (1340092309,), (1340092317,), (1340092330,), (1340092345,), (1340092391,), (1340092398,), (1340092408,), (1340092418,), (1340092423,), (1340092430,), (1340092456,), (1340092462,), (1340092467,), (1340092473,), (1340092572,), (1340092544,), (1340092549,), (1340092551,), (1340092559,), (1340092566,), (1340092638,), (1340092641,), (1340092644,), (1340092647,), (1340092651,), (1340092687,), (1340092690,), (1340092693,), (1340092699,), (1340092711,), (1340092724,), (1340092744,), (1340092748,), (1340092768,), (1340092846,), (1340093416,), (1340093418,), (1340093419,), (1340093426,), (1340093715,), (1340093717,), (1340093750,), (1340093754,), (1340093768,), (1340093777,), (1340093831,), (1340093833,), (1340093840,), (1340093843,), (1340093846,), (1340093888,), (1340093898,), (1340093963,), (1340094059,), (1340094131,), (1340094226,), (1340094505,), (1340094513,), (1340094515,), (1340094519,), (1340094634,), (1340094635,), (1340094645,), (1340094649,), (1340094652,), (1340094666,), (1340094706,), (1340094708,), (1340094711,), (1340094714,), (1340094928,), (1340094963,), (1340094967,), (1340094970,), (1340095035,), (1340095134,), (1340095136,), (1340095138,), (1340095173,), (1340095286,), (1340095355,), (1340095376,), (1340095378,), (1340095380,), (1340095383,), (1340095434,), (1340095437,), (1340095439,), (1340095441,), (1340095442,), (1340095649,), (1340095474,), (1340095476,), (1340095586,), (1340095589,), (1340095591,), (1340095750,), (1340095751,), (1340095753,), (1340095756,), (1340095823,), (1340095826,), (1340095873,), (1340095956,), (1340096058,), (1340096154,), (1340096309,), (1340096384,), (1340096393,), (1340096401,), (1340096694,), (1340096696,), (1340096698,), (1340096701,), (1340096773,), (1340096780,), (1340096787,), (1340096792,), (1340096808,), (1340096839,), (1340096841,), (1340096842,), (1340096844,), (1340096847,), (1340096851,), (1340097111,), (1340097115,), (1340097164,), (1340097182,), (1340097323,), (1340097325,), (1340097327,), (1340097330,), (1340097333,), (1340097339,), (1340097362,), (1340097366,), (1340097368,), (1340097407,), (1340097409,), (1340097412,), (1340097416,), (1340097442,), (1340097448,), (1340097456,), (1340097461,), (1340097464,), (1340097471,), (1340097550,), (1340097556,), (1340097559,), (1340097563,), (1340097594,), (1340097599,), (1340097601,), (1340097605,), (1340097608,), (1340097637,), (1340097639,), (1340097641,), (1340097645,), (1340097649,), (1340097687,), (1340097675,), (1340097677,), (1340097679,), (1340097682,), (1340097739,), (1340097743,), (1340097744,), (1340097753,), (1340097760,), (1340097766,), (1340097789,), (1340097791,), (1340097794,), (1340097801,), (1340097804,), (1340097917,), (1340097926,), (1340097929,), (1340097938,), (1340097949,), (1340097952,), (1340097978,), (1340097986,), (1340097988,), (1340097997,), (1340098001,), (1340098033,), (1340098036,), (1340098039,), (1340098042,), (1340098205,), (1340098207,), (1340098209,), (1340098256,), (1340098354,), (1340098497,), (1340099113,), (1340099139,), (1340099184,), (1340099187,), (1340099190,), (1340099399,), (1340099408,), (1340099410,), (1340099455,), (1340099457,), (1340099488,), (1340099523,), (1340099530,), (1340099537,), (1340099548,), (1340099594,), (1340099605,), (1340099607,), (1340099613,), (1340099618,), (1340099665,), (1340099667,), (1340099669,), (1340099705,), (1340099707,), (1340099718,), (1340099753,), (1340099755,), (1340099757,), (1340099758,), (1340099950,), (1340099958,), (1340099964,), (1340099972,), (1340099977,), (1340099982,), (1340100021,), (1340104457,), (1340104467,), (1340104784,), (1340104786,), (1340104797,), (1340104800,), (1340104803,), (1340104829,), (1340104831,), (1340104992,), (1340104995,), (1340104997,), (1340105090,), (1340105097,), (1340105099,), (1340105713,), (1340105998,), (1340106194,), (1340106198,), (1340106224,), (1340106226,), (1340106228,), (1340106230,), (1340106234,), (1340106238,), (1340106719,), (1340106724,), (1340106764,), (1340106771,), (1340106787,), (1340106826,), (1340106828,), (1340106832,), (1340106836,), (1340106839,), (1340106842,), (1340106887,), (1340106889,), (1340106891,), (1340106894,), (1340106942,), (1340106945,), (1340106947,), (1340106950,), (1340106952,), (1340107030,), (1340107032,), (1340107034,), (1340107037,), (1340107039,), (1340107075,), (1340107077,), (1340107079,), (1340107082,), (1340107086,), (1340107126,), (1340107131,), (1340107138,), (1340107142,), (1340107145,), (1340107181,), (1340107183,), (1340107198,), (1340107204,), (1340107211,), (1340107283,), (1340107262,), (1340107270,), (1340107274,), (1340107277,), (1340107281,), (1340107306,), (1340107309,), (1340107311,), (1340107314,), (1340107356,), (1340107363,), (1340107364,), (1340107373,), (1340107423,), (1340107431,), (1340107453,), (1340107456,), (1340107459,), (1340107470,), (1340108078,), (1340108080,), (1340108082,), (1340108084,), (1340108087,), (1340108338,), (1340108370,), (1340108382,), (1340108387,), (1340108391,), (1340108427,), (1340108429,), (1340108432,), (1340108486,), (1340108488,), (1340108490,), (1340108494,), (1340108496,), (1340108503,), (1340108566,), (1340108573,), (1340108592,), (1340108606,), (1340108681,), (1340108684,), (1340108686,), (1340108723,), (1340108726,), (1340108730,), (1340108796,), (1340108802,), (1340108810,), (1340108813,), (1340108816,), (1340109069,), (1340109071,), (1340109073,), (1340109074,), (1340109077,), (1340109081,), (1340109140,), (1340109142,), (1340109148,), (1340109154,), (1340109530,), (1340109537,), (1340109543,), (1340109549,), (1340109556,), (1340109565,), (1340109629,), (1340109595,), (1340109604,), (1340109616,), (1340109619,), (1340109654,), (1340109659,), (1340109663,), (1340109665,), (1340109670,), (1340109695,), (1340109700,), (1340109704,), (1340109709,), (1340109735,), (1340109739,), (1340109743,), (1340109756,), (1340109760,), (1340109867,), (1340109884,), (1340109891,), (1340109903,), (1340109912,), (1340109948,), (1340109969,), (1340110050,), (1340110157,), (1340110161,), (1340110880,), (1340110885,), (1340110891,), (1340110895,), (1340111134,), (1340111147,), (1340111150,), (1340111157,), (1340111163,), (1340111239,), (1340111317,), (1340111320,), (1340111323,), (1340111326,), (1340111373,), (1340111376,), (1340111379,), (1340111382,), (1340111391,), (1340111396,), (1340111435,), (1340111439,), (1340111443,), (1340111493,), (1340111497,), (1340111500,), (1340111527,), (1340111624,), (1340111695,), (1340112455,), (1340112522,), (1340112550,), (1340112719,), (1340112727,), (1340112732,), (1340112770,), (1340112872,), (1340112878,), (1340112902,), (1340112906,), (1340112914,), (1340112921,), (1340112926,), (1340113054,), (1340112962,), (1340112965,), (1340113040,), (1340113045,), (1340113049,), (1340113086,), (1340113088,), (1340113091,), (1340113095,), (1340113156,), (1340113159,), (1340113162,), (1340113165,), (1340113169,), (1340113177,), (1340113503,), (1340113591,), (1340113598,), (1340113608,), (1340113800,), (1340113805,), (1340113814,), (1340113820,), (1340113825,), (1340113833,), (1340113895,), (1340113949,), (1340113961,), (1340113968,), (1340113975,), (1340114046,), (1340114060,), (1340114064,), (1340114067,), (1340114075,), (1340114080,), (1340114092,), (1340114098,), (1340114104,), (1340114110,), (1340114113,), (1340114146,), (1340114149,), (1340114152,), (1340114156,), (1340114159,), (1340114201,), (1340114209,), (1340114223,), (1340114229,), (1340114235,), (1340114280,), (1340114284,), (1340114288,), (1340114293,), (1340114297,), (1340114327,), (1340114331,), (1340114334,), (1340114339,), (1340114366,), (1340114372,), (1340114390,), (1340114396,), (1340114400,), (1340114420,), (1340114505,), (1340114508,), (1340114512,), (1340114571,), (1340114658,), (1340114665,), (1340114669,), (1340114674,), (1340114680,), (1340114687,), (1340114740,), (1340114707,), (1340114713,), (1340114723,), (1340114728,), (1340114733,), (1340114770,), (1340114774,), (1340114778,), (1340114782,), (1340114785,), (1340114789,), (1340115446,), (1340115528,), (1340115616,), (1340115706,), (1340116021,), (1340116025,), (1340116029,), (1340116071,), (1340116155,), (1340116243,), (1340116361,), (1340116400,), (1340116441,), (1340116640,), (1340116643,), (1340116646,), (1340116651,), (1340116659,), (1340116665,), (1340116682,), (1340116683,), (1340116686,), (1340116692,), (1340116697,), (1340116752,), (1340116760,), (1340116767,), (1340116778,), (1340116786,), (1340116933,), (1340117480,), (1340117485,), (1340117488,), (1340117710,), (1340117713,), (1340117717,), (1340117721,), (1340117723,), (1340117727,), (1340117758,), (1340117767,), (1340117771,), (1340117773,), (1340117781,), (1340117856,), (1340117859,), (1340117861,), (1340117866,), (1340117870,), (1340117895,), (1340117898,), (1340117901,), (1340117905,), (1340117913,), (1340117926,), (1340117961,), (1340117967,), (1340117978,), (1340117982,), (1340118024,), (1340118028,), (1340118031,), (1340118035,), (1340118037,), (1340118041,), (1340118101,), (1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,), (1340119092,), (1340119105,), (1340119111,), (1340119126,), (1340119167,), (1340119288,), (1340119305,), (1340119339,), (1340119348,), (1340119376,), (1340119381,), (1340119458,), (1340119471,), (1340119475,), (1340119575,), (1340119517,), (1340119525,), (1340119533,), (1340119561,), (1340119636,), (1340119640,), (1340119690,), (1340119764,), (1340119768,), (1340119775,), (1340119904,), (1340120022,), (1340120068,), (1340120104,), (1340120107,), (1340120109,), (1340120203,), (1340120307,), (1340120404,), (1340120425,), (1340120450,), (1340120478,), (1340121258,), (1340121265,), (1340121274,), (1340121610,), (1340121669,), (1340121671,), (1340121720,), (1340121727,), (1340121731,), (1340121736,), (1340121743,), (1340121807,), (1340121810,), (1340121817,), (1340121826,), (1340121874,), (1340121877,), (1340121880,), (1340121883,), (1340121957,), (1340121967,), (1340121969,), (1340121975,), (1340121980,), (1340121986,), (1340122013,), (1340122016,), (1340122021,), (1340122027,), (1340122234,), (1340122238,), (1340122241,), (1340122246,), (1340122248,), (1340122253,), (1340122297,), (1340122281,), (1340122285,), (1340122291,), (1340122330,), (1340122335,), (1340122337,), (1340122341,), (1340122345,), (1340122351,), (1340122388,), (1340122392,), (1340122395,), (1340122400,), (1340123009,), (1340123034,), (1340123043,), (1340123049,), (1340123056,), (1340123062,), (1340123260,), (1340123301,), (1340123305,), (1340123310,), (1340123317,), (1340123358,), (1340123362,), (1340123366,), (1340123372,), (1340123377,), (1340123412,), (1340123415,), (1340123418,), (1340123423,), (1340123427,), (1340123434,), (1340123470,), (1340123476,), (1340123480,), (1340123497,), (1340123502,), (1340123673,), (1340123687,), (1340123691,), (1340123695,), (1340123832,), (1340123837,), (1340123839,), (1340123845,), (1340123848,), (1340123855,), (1340123878,), (1340123880,), (1340123883,), (1340123887,), (1340123925,), (1340123928,), (1340123931,), (1340123934,), (1340123936,), (1340123969,), (1340123972,), (1340123974,), (1340123979,), (1340123987,), (1340124032,), (1340124034,), (1340124035,), (1340124042,), (1340124049,), (1340124076,), (1340124078,), (1340124192,), (1340124301,), (1340124304,), (1340124311,), (1340124380,), (1340124363,), (1340124365,), (1340124367,), (1340124477,), (1340124496,), (1340124501,), (1340124519,), (1340124528,), (1340124552,), (1340124867,), (1340124872,), (1340124879,), (1340124898,), (1340125075,), (1340125077,), (1340125149,), (1340125152,), (1340125155,), (1340125164,), (1340125214,), (1340125217,), (1340125219,), (1340125231,), (1340125274,), (1340125277,), (1340125278,), (1340125281,), (1340125285,), (1340125324,), (1340125326,), (1340125331,), (1340125345,), (1340125363,), (1340125480,), (1340125482,), (1340125484,), (1340125487,), (1340125493,), (1340125520,), (1340125526,), (1340125532,), (1340125539,), (1340125542,), (1340125547,), (1340125604,), (1340125606,), (1340125610,), (1340125616,), (1340125619,), (1340125653,), (1340125657,), (1340125659,), (1340125663,), (1340125665,), (1340125669,), (1340125714,), (1340125718,), (1340125721,), (1340125726,), (1340125763,), (1340125766,), (1340125774,), (1340125783,), (1340125786,), (1340125799,), (1340125824,), (1340125869,), (1340125874,), (1340125877,), (1340125912,), (1340125916,), (1340125924,), (1340125935,), (1340125943,), (1340126119,), (1340126117,), (1340126153,), (1340126154,), (1340126163,), (1340126171,), (1340126207,), (1340126257,), (1340126269,), (1340126279,), (1340126323,), (1340126325,), (1340126328,), (1340126333,), (1340126340,), (1340126478,), (1340126481,), (1340126484,), (1340126487,), (1340126490,), (1340127154,), (1340127163,), (1340127166,), (1340127169,), (1340127172,), (1340127427,), (1340127496,), (1340127497,), (1340127502,), (1340127505,), (1340127796,), (1340127799,), (1340127818,), (1340127829,), (1340127843,), (1340127848,), (1340127905,), (1340127911,), (1340127917,), (1340127925,), (1340128009,), (1340128012,), (1340128021,), (1340128025,), (1340128030,), (1340128037,), (1340128083,), (1340128086,), (1340128089,), (1340128093,), (1340128132,), (1340128134,), (1340128142,), (1340128151,), (1340128161,), (1340128170,), (1340128198,), (1340128207,), (1340128214,), (1340128221,), (1340128229,), (1340128294,), (1340128276,), (1340128281,), (1340128286,), (1340128589,), (1340128594,), (1340128602,), (1340128607,), (1340128612,), (1340128629,), (1340128667,), (1340128671,), (1340128717,), (1340128725,), (1340128733,), (1340128771,), (1340128774,), (1340128776,), (1340128782,), (1340128787,), (1340128813,), (1340128818,), (1340128821,), (1340128825,), (1340128829,), (1340128836,), (1340128886,), (1340128888,), (1340128894,), (1340128933,), (1340128947,), (1340128990,), (1340128995,), (1340128999,), (1340129003,), (1340129008,), (1340129016,), (1340129054,), (1340129056,), (1340129059,), (1340129131,), (1340129134,), (1340129138,), (1340129144,), (1340129147,), (1340129154,), (1340129173,), (1340129177,), (1340129221,), (1340129295,), (1340129395,), (1340129404,), (1340129414,), (1340129419,), (1340130703,), (1340142012,), (1340142016,), (1340142017,), (1340142022,), (1340142052,), (1340142123,), (1340143010,), (1340143069,), (1340143071,), (1340143073,), (1340143147,), (1340143149,), (1340143153,), (1340143157,), (1340143161,), (1340143167,), (1340143209,), (1340143210,), (1340143211,), (1340143215,), (1340143346,), (1340143344,), (1340143345,), (1340143471,), (1340143474,), (1340143476,), (1340143480,), (1340143487,), (1340143529,), (1340143534,), (1340143535,), (1340143539,), (1340143542,), (1340143755,), (1340143756,), (1340143757,), (1340143813,), (1340143815,), (1340143819,), (1340143824,), (1340143828,), (1340143836,), (1340143862,), (1340143864,), (1340143866,), (1340143870,), (1340143873,), (1340143884,), (1340143917,), (1340143924,), (1340143939,), (1340143943,), (1340143950,), (1340144014,), (1340144035,), (1340144038,), (1340144099,), (1340144137,), (1340144140,), (1340144144,), (1340144152,), (1340144165,), (1340144210,), (1340144213,), (1340144336,), (1340144409,), (1340144425,), (1340144434,), (1340144440,), (1340144446,), (1340144500,), (1340144507,), (1340144508,), (1340144512,), (1340144517,), (1340144577,), (1340144579,), (1340144581,), (1340144656,), (1340144664,), (1340144677,), (1340144750,), (1340144739,), (1340144744,), (1340144785,), (1340144789,), (1340144792,), (1340144800,), (1340144827,), (1340144853,), (1340144856,), (1340144859,), (1340144866,), (1340144871,), (1340144879,), (1340144898,), (1340144902,), (1340145111,), (1340145114,), (1340145117,), (1340145123,), (1340145129,), (1340145136,), (1340145177,), (1340145189,), (1340145197,), (1340145208,), (1340145212,), (1340145220,), (1340145237,), (1340145239,), (1340145244,), (1340145535,), (1340145673,), (1340145917,), (1340146160,), (1340146243,), (1340146250,), (1340146297,), (1340146300,), (1340146304,), (1340146481,), (1340146715,), (1340146721,), (1340146724,), (1340146792,), (1340146801,), (1340146810,), (1340146879,), (1340146941,), (1340146944,), (1340146945,), (1340146950,), (1340146955,), (1340147015,), (1340147028,), (1340147031,), (1340147096,), (1340147098,), (1340147101,), (1340147105,), (1340147108,), (1340147153,), (1340147155,), (1340147157,), (1340147162,), (1340147165,), (1340147216,), (1340147208,), (1340147210,), (1340147211,), (1340147214,), (1340147406,), (1340147409,), (1340147410,), (1340147414,), (1340147423,), (1340147456,), (1340147460,), (1340147463,), (1340147469,), (1340147497,), (1340147604,), (1340147618,), (1340147621,), (1340147625,), (1340147627,), (1340147633,), (1340147798,), (1340147833,), (1340147838,), (1340147843,), (1340147867,), (1340147870,), (1340147873,), (1340147877,), (1340147884,), (1340147890,), (1340148570,), (1340148753,), (1340148832,), (1340148849,), (1340148863,), (1340149078,), (1340149084,), (1340149087,), (1340149091,), (1340149139,), (1340149147,), (1340149212,), (1340149216,), (1340149219,), (1340149283,), (1340149287,), (1340149293,), (1340149301,), (1340149306,), (1340149310,), (1340149323,), (1340149329,), (1340149347,), (1340149352,), (1340149361,), (1340149364,), (1340149434,), (1340149519,), (1340149527,), (1340149534,), (1340149539,), (1340149560,), (1340149564,), (1340149567,), (1340149572,), (1340149577,), (1340149584,), (1340149604,), (1340149608,), (1340149612,), (1340149618,), (1340149796,), (1340149799,), (1340149803,), (1340149809,), (1340149812,), (1340149871,), (1340149839,), (1340149844,), (1340149856,), (1340149860,), (1340149866,), (1340149917,), (1340149920,), (1340149925,), (1340149929,), (1340149934,), (1340150169,), (1340150172,), (1340150176,), (1340150308,), (1340150322,), (1340150465,), (1340150468,), (1340150470,), (1340150480,), (1340150488,), (1340150520,), (1340150527,), (1340150542,), (1340150590,), (1340150621,), (1340150687,), (1340150729,), (1340150789,), (1340150832,), (1340151198,), (1340151245,), (1340151354,), (1340151967,), (1340151987,), (1340152051,), (1340152147,), (1340152224,), (1340152252,), (1340152503,), (1340152507,), (1340152512,), (1340159187,), (1340159049,), (1340159051,), (1340159053,), (1340159122,), (1340159394,), (1340159399,), (1340159404,), (1340159436,), (1340159440,), (1340159444,), (1340160181,), (1340160275,), (1340160302,), (1340160384,), (1340160521,), (1340160528,), (1340160587,), (1340160592,), (1340160669,), (1340160707,), (1340160971,), (1340160988,), (1340161001,), (1340161066,), (1340161074,), (1340161077,), (1340161099,), (1340161103,), (1340161108,), (1340161114,), (1340161153,), (1340161156,), (1340161165,), (1340161198,), (1340161229,), (1340161371,), (1340161374,), (1340161378,), (1340161391,), (1340161404,), (1340161419,), (1340161458,), (1340161460,), (1340161464,), (1340161521,), (1340161524,), (1340161526,), (1340161530,), (1340161533,), (1340161550,), (1340161615,), (1340161637,), (1340161726,), (1340161775,), (1340161869,), (1340162115,), (1340162095,), (1340162098,), (1340162101,), (1340162104,), (1340162147,), (1340162149,), (1340162152,), (1340162165,), (1340162174,), (1340162181,), (1340162209,), (1340162210,), (1340162211,), (1340162215,), (1340162405,), (1340162407,), (1340162408,), (1340162411,), (1340162419,), (1340162427,), (1340162508,), (1340162518,), (1340162519,), (1340162530,), (1340162538,), (1340162546,), (1340162616,), (1340162618,), (1340162620,), (1340162821,), (1340163084,), (1340163335,), (1340163550,), (1340163779,), (1340163875,), (1340164729,), (1340164730,), (1340164732,), (1340165508,), (1340165574,), (1340165614,), (1340165619,), (1340165672,), (1340165675,), (1340165679,), (1340166067,), (1340166072,), (1340166075,), (1340166078,), (1340166085,), (1340166122,), (1340166126,), (1340166129,), (1340166136,), (1340166161,), (1340166170,), (1340166226,), (1340166248,), (1340166255,), (1340166304,), (1340166305,), (1340166306,), (1340166311,), (1340166313,), (1340166319,), (1340166460,), (1340166401,), (1340166404,), (1340166407,), (1340166411,), (1340166450,), (1340166588,), (1340166594,), (1340166597,), (1340166601,), (1340166673,), (1340166682,), (1340166685,), (1340166689,), (1340166717,), (1340166720,), (1340166735,), (1340166741,), (1340166751,), (1340166756,), (1340167234,), (1340167332,), (1340167351,), (1340167358,), (1340167525,), (1340168249,), (1340168251,), (1340168280,), (1340168283,), (1340168285,), (1340168289,), (1340168320,), (1340168334,), (1340168339,), (1340168344,), (1340168354,), (1340168360,), (1340168399,), (1340168402,), (1340168406,), (1340168456,), (1340168460,), (1340168468,), (1340168472,), (1340168476,), (1340168483,), (1340168516,), (1340168525,), (1340168531,), (1340168538,), (1340168544,), (1340168581,), (1340168582,), (1340168586,), (1340168588,), (1340168591,), (1340168592,), (1340168664,), (1340168630,), (1340168634,), (1340168638,), (1340168652,), (1340168655,), (1340168704,), (1340168709,), (1340168744,), (1340168812,), (1340168819,), (1340168820,), (1340168824,), (1340168828,), (1340168876,), (1340168881,), (1340168884,), (1340168889,), (1340168892,), (1340168898,), (1340169395,), (1340169658,), (1340169855,), (1340169860,), (1340170063,), (1340170117,), (1340170123,), (1340170157,), (1340170164,), (1340170168,), (1340170194,), (1340170197,), (1340170203,), (1340170250,), (1340170258,), (1340170260,), (1340170264,), (1340170268,), (1340170296,), (1340170298,), (1340170300,), (1340170304,), (1340170356,), (1340170358,), (1340170360,), (1340170364,), (1340170367,), (1340170373,), (1340170558,), (1340170581,), (1340170587,), (1340170602,), (1340170639,), (1340170642,), (1340170645,), (1340170653,), (1340170662,), (1340170666,), (1340170693,), (1340170704,), (1340170706,), (1340170714,), (1340170791,), (1340170869,), (1340170960,), (1340171049,), (1340171147,), (1340171240,), (1340171416,), (1340171506,), (1340171532,), (1340171539,), (1340171554,), (1340171608,), (1340172219,), (1340172200,), (1340172205,), (1340172209,), (1340172289,), (1340172292,), (1340172296,), (1340172300,), (1340172305,), (1340172309,), (1340172344,), (1340172347,), (1340172350,), (1340172383,), (1340172386,), (1340172389,), (1340172393,), (1340172395,), (1340172409,), (1340172439,), (1340172441,), (1340172445,), (1340172458,), (1340172494,), (1340172586,), (1340173126,), (1340173133,), (1340173141,), (1340173145,), (1340173437,), (1340173607,), (1340173822,), (1340173992,), (1340174173,), (1340174176,), (1340174179,), (1340174183,), (1340174187,), (1340174199,), (1340174580,), (1340174590,), (1340174763,), (1340174830,), (1340174889,), (1340175498,), (1340175503,), (1340175508,), (1340175603,), (1340175738,), (1340175742,), (1340175750,), (1340175763,), (1340175831,), (1340175954,), (1340175958,), (1340175961,), (1340175967,), (1340175973,), (1340175979,), (1340176003,), (1340176008,), (1340176013,), (1340176020,), (1340176071,), (1340176075,), (1340176079,), (1340176085,), (1340176089,), (1340176095,), (1340176117,), (1340176133,), (1340176144,), (1340176153,), (1340176160,), (1340176271,), (1340176189,), (1340176195,), (1340176206,), (1340176362,), (1340176366,), (1340176381,), (1340176388,), (1340176404,), (1340176437,), (1340176442,), (1340176446,), (1340176529,), (1340176535,), (1340176539,), (1340176542,), (1340176546,), (1340176550,), (1340177358,), (1340177369,), (1340177381,), (1340177386,), (1340177390,), (1340177397,), (1340177790,), (1340177795,), (1340177854,), (1340178023,), (1340178032,), (1340178035,), (1340178041,), (1340178050,), (1340178053,), (1340178073,), (1340178077,), (1340178080,), (1340178084,), (1340178134,), (1340178137,), (1340178145,), (1340178164,), (1340178170,), (1340178177,), (1340178212,), (1340178217,), (1340178222,), (1340178228,), (1340178233,), (1340178285,), (1340178335,), (1340178338,), (1340178340,), (1340178376,), (1340179593,), (1340179226,), (1340179583,), (1340179585,), (1340179587,), (1340179626,), (1340179630,), (1340179633,), (1340179830,), (1340179905,), (1340179910,), (1340179914,), (1340179970,), (1340180018,), (1340180028,), (1340180037,), (1340180197,), (1340180201,), (1340180206,), (1340180210,), (1340180217,), (1340180242,), (1340180245,), (1340180249,), (1340180258,), (1340180264,), (1340180287,), (1340180291,), (1340180294,), (1340180301,), (1340180338,), (1340180348,), (1340180356,), (1340180365,), (1340180374,), (1340180390,), (1340180395,), (1340180398,), (1340180401,), (1340180404,), (1340180440,), (1340180417,), (1340180422,), (1340180426,), (1340180432,), (1340181349,), (1340181353,), (1340181357,), (1340181374,), (1340181391,), (1340181397,), (1340181699,), (1340181709,), (1340181717,), (1340181721,), (1340181756,), (1340181761,), (1340181767,), (1340181772,), (1340181780,), (1340181783,), (1340182560,), (1340182566,), (1340182572,), (1340182880,), (1340182886,), (1340182890,), (1340182898,), (1340182903,), (1340182968,), (1340182972,), (1340182975,), (1340182996,), (1340183055,), (1340183062,), (1340183101,), (1340183104,), (1340183107,), (1340183113,), (1340183117,), (1340183127,), (1340183174,), (1340183177,), (1340183179,), (1340183185,), (1340183188,), (1340183195,), (1340183218,), (1340183223,), (1340183228,), (1340183234,), (1340183271,), (1340183275,), (1340183279,), (1340183285,), (1340183289,), (1340183338,), (1340183342,), (1340183345,), (1340183407,), (1340183411,), (1340183414,), (1340183418,), (1340183455,), (1340183458,), (1340183462,), (1340183470,), (1340183475,), (1340183487,), (1340183562,), (1340183535,), (1340183547,), (1340183551,), (1340183556,), (1340183599,), (1340183608,), (1340183619,), (1340183625,), (1340183631,), (1340183648,), (1340183674,), (1340183676,), (1340183679,), (1340183740,), (1340183744,), (1340183754,), (1340184041,), (1340184224,), (1340184234,), (1340184266,), (1340184270,), (1340184504,), (1340184514,), (1340184671,), (1340184675,), (1340184678,), (1340184686,), (1340184744,), (1340184892,), (1340185115,), (1340185136,), (1340185163,), (1340185166,), (1340185266,), (1340185296,), (1340185317,), (1340185333,), (1340185383,), (1340185426,), (1340185497,), (1340185509,), (1340185522,), (1340185528,), (1340185536,), (1340185605,), (1340185701,), (1340185705,), (1340185709,), (1340185715,), (1340185720,), (1340185772,), (1340185780,), (1340186032,), (1340186036,), (1340186040,), (1340186053,), (1340186058,), (1340186097,), (1340186101,), (1340186105,), (1340186111,), (1340186114,), (1340186120,), (1340186170,), (1340186176,), (1340186179,), (1340186187,), (1340186191,), (1340186321,), (1340190836,), (1340192005,), (1340192145,), (1340192251,), (1340192354,), (1340192472,), (1340192816,), (1340192819,), (1340193049,), (1340193073,), (1340193081,), (1340193230,), (1340193233,), (1340193236,), (1340193241,), (1340193295,), (1340193299,), (1340193303,), (1340193309,), (1340193420,), (1340194620,), (1340194607,), (1340194611,), (1340194614,), (1340194646,), (1340194651,), (1340194654,), (1340194661,), (1340194665,), (1340194669,), (1340195001,), (1340195163,), (1340195366,), (1340195369,), (1340195405,), (1340195411,), (1340195444,), (1340195447,), (1340195450,), (1340195504,), (1340195507,), (1340195510,), (1340195561,), (1340195564,), (1340195566,), (1340195596,), (1340195600,), (1340195603,), (1340195646,), (1340195649,), (1340195653,), (1340195656,), (1340195658,), (1340195664,), (1340195701,), (1340195706,), (1340195709,), (1340195713,), (1340195715,), (1340195719,), (1340195747,), (1340195751,), (1340195754,), (1340195788,), (1340195792,), (1340195797,), (1340195799,), (1340195804,), (1340195829,), (1340195834,), (1340195838,), (1340195847,), (1340195893,), (1340195899,), (1340195906,), (1340195912,), (1340195918,), (1340196149,), (1340196050,), (1340196087,), (1340196097,), (1340196133,), (1340196189,), (1340196194,), (1340196198,), (1340196202,), (1340196239,), (1340196244,), (1340196248,), (1340196254,), (1340196259,), (1340196265,), (1340196280,), (1340196284,), (1340196290,), (1340196296,), (1340196299,), (1340196304,), (1340196328,), (1340196331,), (1340196336,), (1340196342,), (1340196371,), (1340196377,), (1340196381,), (1340196386,), (1340196389,), (1340196394,), (1340196418,), (1340196421,), (1340196426,), (1340196433,), (1340196482,), (1340196487,), (1340196491,), (1340196497,), (1340196502,), (1340196508,), (1340196533,), (1340196537,), (1340196544,), (1340196554,), (1340196573,), (1340196577,), (1340196627,), (1340196631,), (1340196634,), (1340196638,), (1340196681,), (1340196685,), (1340196687,), (1340196692,), (1340196694,), (1340196698,), (1340196726,), (1340196730,), (1340196733,), (1340196737,), (1340196742,), (1340196746,), (1340196795,), (1340196799,), (1340196802,), (1340196806,), (1340196857,), (1340196872,), (1340196885,), (1340196892,), (1340196905,), (1340196909,), (1340196912,), (1340196916,), (1340196941,), (1340196931,), (1340196936,), (1340196995,), (1340197000,), (1340197006,), (1340197010,), (1340197013,), (1340197017,), (1340197038,), (1340197044,), (1340197048,), (1340197052,), (1340197058,), (1340197069,), (1340197106,), (1340197111,), (1340197114,), (1340197117,), (1340197145,), (1340197150,), (1340197154,), (1340197159,), (1340197315,), (1340197564,), (1340198069,), (1340198075,), (1340198166,), (1340198272,), (1340198411,), (1340198415,), (1340198419,), (1340198425,), (1340198429,), (1340198470,), (1340198476,), (1340198479,), (1340198483,), (1340198486,), (1340198490,), (1340198515,), (1340198519,), (1340198524,), (1340198528,), (1340198574,), (1340198577,), (1340198582,), (1340198587,), (1340198590,), (1340198595,), (1340198614,), (1340198618,), (1340198622,), (1340198627,), (1340198630,), (1340198633,), (1340198662,), (1340198666,), (1340198669,), (1340198673,), (1340198707,), (1340198749,), (1340198753,), (1340198759,), (1340198773,), (1340198778,), (1340198799,), (1340198802,), (1340198806,), (1340198811,), (1340198819,), (1340198826,), (1340198854,), (1340198848,), (1340198852,), (1340198897,), (1340198902,), (1340198906,), (1340198911,), (1340198915,), (1340198919,), (1340198946,), (1340198948,), (1340198956,), (1340198967,), (1340198971,), (1340199005,), (1340199009,), (1340199013,), (1340199017,), (1340199020,), (1340199054,), (1340199058,), (1340199061,), (1340199065,), (1340199068,), (1340199071,), (1340199728,), (1340199752,), (1340199757,), (1340199759,), (1340199765,), (1340200088,), (1340200134,), (1340200191,), (1340200299,), (1340200349,), (1340200354,), (1340200492,), (1340200496,), (1340200538,), (1340200655,), (1340200879,), (1340200995,), (1340201000,), (1340201004,), (1340201009,), (1340201012,), (1340201017,), (1340201064,), (1340201071,), (1340201077,), (1340201083,), (1340201088,), (1340201128,), (1340201138,), (1340201142,), (1340201160,), (1340201164,), (1340201175,), (1340201239,), (1340201241,), (1340201277,), (1340201289,), (1340201298,), (1340201305,), (1340201307,), (1340201336,), (1340201345,), (1340201348,), (1340201355,), (1340201358,), (1340201510,), (1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,), (1340205720,), (1340205974,), (1340205978,), (1340205982,), (1340205987,), (1340205989,), (1340206369,), (1340206374,), (1340206382,), (1340206386,), (1340206391,), (1340206396,), (1340206418,), (1340206421,), (1340206467,), (1340206471,), (1340206474,), (1340206479,), (1340206482,), (1340206510,), (1340206514,), (1340206524,), (1340206528,), (1340206538,), (1340206577,), (1340206581,), (1340206585,), (1340206589,), (1340207232,), (1340207239,), (1340207246,), (1340207253,), (1340207296,), (1340207390,), (1340207398,), (1340207400,), (1340207404,), (1340207452,), (1340207429,), (1340207434,), (1340207437,), (1340207441,), (1340207445,), (1340207483,), (1340207493,), (1340207504,), (1340207508,), (1340207511,), (1340207516,), (1340207576,), (1340207579,), (1340207582,), (1340207586,), (1340207589,), (1340207626,), (1340207630,), (1340207632,), (1340207639,), (1340207650,), (1340207654,), (1340208802,), (1340208805,), (1340208807,), (1340209330,), (1340209410,), (1340209446,), (1340209518,), (1340209540,), (1340209573,), (1340209692,), (1340209865,), (1340209868,), (1340209918,), (1340209937,), (1340209941,), (1340209944,), (1340209947,), (1340209954,), (1340209975,), (1340209978,), (1340209980,), (1340209983,), (1340209986,), (1340209996,), (1340210128,), (1340210131,), (1340210134,), (1340210138,), (1340210298,), (1340210301,), (1340210309,), (1340210315,), (1340210318,), (1340210325,), (1340210348,), (1340210351,), (1340210353,), (1340210356,), (1340210402,), (1340210405,), (1340210407,), (1340210410,), (1340210413,), (1340210420,), (1340210456,), (1340210458,), (1340210461,), (1340210464,), (1340210991,), (1340210995,), (1340210999,), (1340211003,), (1340211007,), (1340211380,), (1340211252,), (1340211266,), (1340211273,), (1340211281,), (1340211287,), (1340211466,), (1340211469,), (1340211475,), (1340211486,), (1340211550,), (1340211554,), (1340211558,), (1340211562,), (1340211565,), (1340211567,), (1340211593,), (1340211598,), (1340211602,), (1340211607,), (1340211658,), (1340211663,), (1340211670,), (1340211675,), (1340211680,), (1340211686,), (1340212006,), (1340212118,), (1340212153,), (1340212171,), (1340212197,), (1340212203,), (1340212462,), (1340212466,), (1340212469,), (1340212473,), (1340212483,), (1340212769,), (1340212772,), (1340212776,), (1340212780,), (1340212783,), (1340212822,), (1340212833,), (1340212847,), (1340212850,), (1340212857,), (1340212863,), (1340212879,), (1340212884,), (1340212889,), (1340212894,), (1340212901,), (1340212907,), (1340212933,), (1340212937,), (1340212949,), (1340212961,), (1340212970,), (1340212977,), (1340212998,), (1340213002,), (1340213008,), (1340213015,), (1340213056,), (1340213063,), (1340213075,), (1340213083,), (1340213089,), (1340213093,), (1340213107,), (1340213111,), (1340213114,), (1340213119,), (1340213175,), (1340213180,), (1340213184,), (1340213189,), (1340213193,), (1340213209,), (1340213343,), (1340213237,), (1340213241,), (1340213243,), (1340213528,), (1340213531,), (1340213534,), (1340213539,), (1340213552,), (1340213567,), (1340213587,), (1340213591,), (1340213595,), (1340213600,), (1340213606,), (1340213687,), (1340213709,), (1340213716,), (1340213892,), (1340213895,), (1340214037,), (1340214041,), (1340214045,), (1340214050,), (1340214057,), (1340214071,), (1340214230,), (1340214233,), (1340214299,), (1340214320,), (1340214343,), (1340214434,), (1340214438,), (1340214470,), (1340214474,), (1340214477,), (1340214481,), (1340214522,), (1340214534,), (1340214537,), (1340214543,), (1340214545,), (1340214600,), (1340214605,), (1340214609,), (1340214614,), (1340214708,), (1340218135,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20936213]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] map_info['map_portfolio_photo'] : {20936213: [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836]} final : True mtd_id 4302 list_pids : [1340194620, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190836] Looping around the photos to save general results len do output : 1 /20936213Didn'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, '2625859') ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859') ('4302', None, None, None, None, None, None, None, '2625859') ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20936213', 'None', None, None, None, None, '2625859'), ('4302', '20936213', '1340194620', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193420', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193309', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193303', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193299', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193295', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193241', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193236', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193233', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193230', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193081', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193073', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340193049', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192819', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192816', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192472', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192354', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192251', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192145', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340192005', None, None, None, None, None, '2625859'), ('4302', '20936213', '1340190836', None, None, None, None, None, '2625859')] time used for this insertion : 0.015198945999145508 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.986386775970459 time spend to save output : 0.015446186065673828 total time spend for step 5 : 4.001832962036133 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 (2625859) 3.04user 2.29system 0:29.82elapsed 17%CPU (0avgtext+0avgdata 162412maxresident)k 680inputs+24640outputs (10major+78389minor)pagefaults 0swaps