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 : 2891825 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 (2739700) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2739700) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195476 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2739700'] with mtr_portfolio_ids : ['22195476'] and first list_photo_ids : [] new path : /proc/2891825/ Name: python3 Umask: 0002 State: R (running) Tgid: 2891825 Ngid: 0 Pid: 2891825 PPid: 2891824 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2891825 NSpid: 2891825 NSpgid: 2891056 NSsid: 2891056 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98624 kB VmRSS: 98624 kB RssAnon: 59808 kB RssFile: 38816 kB RssShmem: 0 kB VmData: 865684 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: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 61 nonvoluntary_ctxt_switches: 40 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2891825', 'Ngid': '0', 'Pid': '2891825', 'PPid': '2891824', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2891825', 'NSpid': '2891825', 'NSpgid': '2891056', 'NSsid': '2891056', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98624 kB', 'VmRSS': '98624 kB', 'RssAnon': '59808 kB', 'RssFile': '38816 kB', 'RssShmem': '0 kB', 'VmData': '865684 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': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '61', 'nonvoluntary_ctxt_switches': '40'} ('datou_batch_current', '2891825', '1106936', '0', '1106936', '865684', '98624', b'', 'marlene', '2739700') 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 (22195476) 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 (2739700 ) ) 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 (22195476) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351089826, 'portfolio_id': 22195476}, {'photo_id': 1351089137, 'portfolio_id': 22195476}, {'photo_id': 1351089106, 'portfolio_id': 22195476}, {'photo_id': 1351089078, 'portfolio_id': 22195476}, {'photo_id': 1351089049, 'portfolio_id': 22195476}, {'photo_id': 1351088999, 'portfolio_id': 22195476}, {'photo_id': 1351088926, 'portfolio_id': 22195476}, {'photo_id': 1351088064, 'portfolio_id': 22195476}, {'photo_id': 1351087973, 'portfolio_id': 22195476}, {'photo_id': 1351087474, 'portfolio_id': 22195476}, {'photo_id': 1351087472, 'portfolio_id': 22195476}, {'photo_id': 1351087470, 'portfolio_id': 22195476}, {'photo_id': 1351087381, 'portfolio_id': 22195476}, {'photo_id': 1351087369, 'portfolio_id': 22195476}, {'photo_id': 1351087299, 'portfolio_id': 22195476}, {'photo_id': 1351087253, 'portfolio_id': 22195476}, {'photo_id': 1351087243, 'portfolio_id': 22195476}, {'photo_id': 1351087240, 'portfolio_id': 22195476}, {'photo_id': 1351086901, 'portfolio_id': 22195476}, {'photo_id': 1351086873, 'portfolio_id': 22195476}, {'photo_id': 1351085990, 'portfolio_id': 22195476}, {'photo_id': 1351085553, 'portfolio_id': 22195476}, {'photo_id': 1351085521, 'portfolio_id': 22195476}, {'photo_id': 1351085486, 'portfolio_id': 22195476}, {'photo_id': 1351084882, 'portfolio_id': 22195476}, {'photo_id': 1351084818, 'portfolio_id': 22195476}, {'photo_id': 1351084757, 'portfolio_id': 22195476}] map_portfolio_id_photo_id: {22195476: [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757]} ##### 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.023076772689819336 #### 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 Apr 19 05:49:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22195476) 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 : 22195476 get user id for portfolio 22195476 get sub ptf for main ptf 22195476, type 3726 and hashtags ['kraft', 'environnement', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'cartonnette', 'Carton_gris', 'autre_refus', 'papier', 'mal_croppe', 'flou', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22195476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','plastique')) 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`=22195476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22195476, 'sub_port_id': 22195477, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669988, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'Carton_gris': {'main_port_id': 22195476, 'sub_port_id': 22195478, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669989, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'papier': {'main_port_id': 22195476, 'sub_port_id': 22195479, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669990, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'metal': {'main_port_id': 22195476, 'sub_port_id': 22195480, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669991, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'cartonnette': {'main_port_id': 22195476, 'sub_port_id': 22195481, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669992, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'mal_croppe': {'main_port_id': 22195476, 'sub_port_id': 22195482, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669993, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'kraft': {'main_port_id': 22195476, 'sub_port_id': 22195483, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669994, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'flou': {'main_port_id': 22195476, 'sub_port_id': 22195484, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669995, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'Carton_brun': {'main_port_id': 22195476, 'sub_port_id': 22195485, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669996, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'plastique': {'main_port_id': 22195476, 'sub_port_id': 22195486, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669997, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'autre_refus': {'main_port_id': 22195476, 'sub_port_id': 22195487, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669998, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}, 'environnement': {'main_port_id': 22195476, 'sub_port_id': 22195488, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14669999, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22195477 , 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=22195476 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 (22195477) result : ((1351087244,), (1351090208,), (1351091807,), (1351108196,), (1351108197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195478 , 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=22195476 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 (22195478) result : ((1351087137,), (1351090212,), (1351090213,), (1351090214,), (1351090215,), (1351091808,), (1351108212,), (1351108213,), (1351109011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195479 , 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=22195476 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 (22195479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195480 , 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=22195476 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 (22195480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195481 , 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=22195476 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 (22195481) result : ((1351087246,), (1351087247,), (1351087248,), (1351090219,), (1351108223,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195482 , 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=22195476 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 (22195482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195483 , 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=22195476 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 (22195483) result : ((1351109155,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195484 , 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=22195476 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 (22195484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195485 , 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=22195476 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 (22195485) result : ((1351087249,), (1351090220,), (1351090221,), (1351095406,), (1351108230,), (1351109067,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195486 , 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=22195476 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 (22195486) result : ((1351087144,), (1351087145,), (1351087258,), (1351087260,), (1351108238,), (1351109126,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195487 , 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=22195476 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 (22195487) result : ((1351108959,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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 22195488 , 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=22195476 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 (22195488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22195476) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,)) 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`=22195476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','plastique')) 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`=22195476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','metal','Carton_brun','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22195476, 'sub_port_id': 22195489, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670000, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'Carton_gris': {'main_port_id': 22195476, 'sub_port_id': 22195490, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670001, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'papier': {'main_port_id': 22195476, 'sub_port_id': 22195491, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670002, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'metal': {'main_port_id': 22195476, 'sub_port_id': 22195492, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670003, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'cartonnette': {'main_port_id': 22195476, 'sub_port_id': 22195493, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670004, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'mal_croppe': {'main_port_id': 22195476, 'sub_port_id': 22195494, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670005, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'kraft': {'main_port_id': 22195476, 'sub_port_id': 22195495, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670006, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'flou': {'main_port_id': 22195476, 'sub_port_id': 22195496, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670007, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'Carton_brun': {'main_port_id': 22195476, 'sub_port_id': 22195497, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670008, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'plastique': {'main_port_id': 22195476, 'sub_port_id': 22195498, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670009, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'autre_refus': {'main_port_id': 22195476, 'sub_port_id': 22195499, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670010, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}, 'environnement': {'main_port_id': 22195476, 'sub_port_id': 22195500, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14670011, 'last_updated_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 13, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 13, 42, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22195500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22195488 lien utilise dans velours : https://www.fotonower.com/velours/22195489,22195490,22195491,22195492,22195493,22195494,22195495,22195496,22195497,22195498,22195499,22195500?tags=Teint_Dans_La_Masse,Carton_gris,papier,metal,cartonnette,mal_croppe,kraft,flou,Carton_brun,plastique,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22195476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] map_info['map_portfolio_photo'] : {22195476: [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757]} final : False mtd_id 4302 list_pids : [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] Looping around the photos to save general results len do output : 1 /22195476. 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, '2739700') ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22195476', "{'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488}", None, None, None, None, '2739700'), ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700')] time used for this insertion : 0.017833232879638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.394596815109253 time spend to save output : 0.01822686195373535 total time spend for step 1 : 1.4128236770629883 step2:final Sat Apr 19 05:49:28 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 (22195476) 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 22195476 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351084882,1351084818,1351084757,1351085553,1351085521,1351085486,1351085990,1351086901,1351086873,1351087381,1351087369,1351087299,1351087253,1351087243,1351087240,1351087474,1351087472,1351087470,1351088064,1351087973,1351089137,1351089106,1351089078,1351089049,1351088999,1351088926,1351089826); 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([22195476]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} new output for save of step final : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] map_info['map_portfolio_photo'] : {22195476: [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757]} final : False mtd_id 4302 list_pids : [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] Looping around the photos to save general results len do output : 27 /1351089826.Didn't retrieve data . /1351089137.Didn't retrieve data . /1351089106.Didn't retrieve data . /1351089078.Didn't retrieve data . /1351089049.Didn't retrieve data . /1351088999.Didn't retrieve data . /1351088926.Didn't retrieve data . /1351088064.Didn't retrieve data . /1351087973.Didn't retrieve data . /1351087474.Didn't retrieve data . /1351087472.Didn't retrieve data . /1351087470.Didn't retrieve data . /1351087381.Didn't retrieve data . /1351087369.Didn't retrieve data . /1351087299.Didn't retrieve data . /1351087253.Didn't retrieve data . /1351087243.Didn't retrieve data . /1351087240.Didn't retrieve data . /1351086901.Didn't retrieve data . /1351086873.Didn't retrieve data . /1351085990.Didn't retrieve data . /1351085553.Didn't retrieve data . /1351085521.Didn't retrieve data . /1351085486.Didn't retrieve data . /1351084882.Didn't retrieve data . /1351084818.Didn't retrieve data . /1351084757.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, '2739700') ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 81 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', '22195476', '1351089826', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351089137', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351089106', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351089078', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351089049', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351088999', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351088926', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351088064', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087973', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087474', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087472', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087470', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087381', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087369', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087299', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087253', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087243', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351087240', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351086901', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351086873', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351085990', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351085553', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351085521', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351085486', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351084882', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351084818', '0.0477845788686051', None, None, None, None, '2739700'), ('4302', '22195476', '1351084757', '0.0477845788686051', None, None, None, None, '2739700')] time used for this insertion : 0.017966747283935547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06480813026428223 time spend to save output : 0.019095897674560547 total time spend for step 2 : 0.08390402793884277 step3:velours_tree Sat Apr 19 05:49:28 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 : {22195476: [{'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488}]} input_args_next_step : {22195476: ()} output_args : {22195476: [{'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488}]} args : 22195476 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22195476) 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([22195476]) 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.3247687816619873 time spend to save output : 7.772445678710938e-05 total time spend for step 3 : 0.3248465061187744 step4:send_mail_cod Sat Apr 19 05:49:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} input_args_next_step : {1351089826: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351089826 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351089137 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351089106 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351089078 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351089049 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351088999 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351088926 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351088064 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087973 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087474 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087472 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087470 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087381 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087369 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087299 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087253 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087243 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351087240 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351086901 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351086873 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351085990 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351085553 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351085521 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351085486 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351084882 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351084818 depend.output_id : 0 input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ()} output_args : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',)} args : 1351084757 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 : {22195476: [{'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488}]} input_args_next_step : {1351089826: ('0.0477845788686051',), 1351089137: ('0.0477845788686051',), 1351089106: ('0.0477845788686051',), 1351089078: ('0.0477845788686051',), 1351089049: ('0.0477845788686051',), 1351088999: ('0.0477845788686051',), 1351088926: ('0.0477845788686051',), 1351088064: ('0.0477845788686051',), 1351087973: ('0.0477845788686051',), 1351087474: ('0.0477845788686051',), 1351087472: ('0.0477845788686051',), 1351087470: ('0.0477845788686051',), 1351087381: ('0.0477845788686051',), 1351087369: ('0.0477845788686051',), 1351087299: ('0.0477845788686051',), 1351087253: ('0.0477845788686051',), 1351087243: ('0.0477845788686051',), 1351087240: ('0.0477845788686051',), 1351086901: ('0.0477845788686051',), 1351086873: ('0.0477845788686051',), 1351085990: ('0.0477845788686051',), 1351085553: ('0.0477845788686051',), 1351085521: ('0.0477845788686051',), 1351085486: ('0.0477845788686051',), 1351084882: ('0.0477845788686051',), 1351084818: ('0.0477845788686051',), 1351084757: ('0.0477845788686051',), 22195476: ()} output_args : {22195476: [{'Teint_Dans_La_Masse': 22195477, 'Carton_gris': 22195478, 'papier': 22195479, 'metal': 22195480, 'cartonnette': 22195481, 'mal_croppe': 22195482, 'kraft': 22195483, 'flou': 22195484, 'Carton_brun': 22195485, 'plastique': 22195486, 'autre_refus': 22195487, 'environnement': 22195488}]} args : 22195476 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 :28, first value : ('0.0477845788686051',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22195476) 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 (1351089826,1351089137,1351089106,1351089078,1351089049,1351088999,1351088926,1351088064,1351087973,1351087474,1351087472,1351087470,1351087381,1351087369,1351087299,1351087253,1351087243,1351087240,1351086901,1351086873,1351085990,1351085553,1351085521,1351085486,1351084882,1351084818,1351084757) Found this number of photos: 27 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351084757 begin to download photo : 1351085990 begin to download photo : 1351087299 begin to download photo : 1351087973 begin to download photo : 1351089106 download finish for photo 1351087973 begin to download photo : 1351088064 download finish for photo 1351087299 begin to download photo : 1351087369 download finish for photo 1351084757 begin to download photo : 1351084818 download finish for photo 1351089106 begin to download photo : 1351089137 download finish for photo 1351085990 begin to download photo : 1351086873 download finish for photo 1351088064 begin to download photo : 1351088926 download finish for photo 1351087369 begin to download photo : 1351087381 download finish for photo 1351084818 begin to download photo : 1351084882 download finish for photo 1351086873 begin to download photo : 1351086901 download finish for photo 1351088926 begin to download photo : 1351088999 download finish for photo 1351084882 begin to download photo : 1351085486 download finish for photo 1351089137 begin to download photo : 1351089826 download finish for photo 1351087381 begin to download photo : 1351087470 download finish for photo 1351086901 begin to download photo : 1351087240 download finish for photo 1351085486 begin to download photo : 1351085521 download finish for photo 1351088999 begin to download photo : 1351089049 download finish for photo 1351089826 download finish for photo 1351087470 begin to download photo : 1351087472 download finish for photo 1351087240 begin to download photo : 1351087243 download finish for photo 1351085521 begin to download photo : 1351085553 download finish for photo 1351089049 begin to download photo : 1351089078 download finish for photo 1351087472 begin to download photo : 1351087474 download finish for photo 1351089078 download finish for photo 1351087243 begin to download photo : 1351087253 download finish for photo 1351085553 download finish for photo 1351087474 download finish for photo 1351087253 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221954801745034570/ length of list_filenames : 27 ; length of list_pids : 27 ; length of list_args : 27 results_Auto_P22195476_19-04-2025_05_49_30.pdf 22195480 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=22195480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221954801745034570 22195481 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=22195481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351087246: '1744976501_2595349_1351085990_880fb6942e9e478dee0c40fec2fcd7c2_rle_crop_3754101421_0.png', 1351087247: '1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101429_0.png', 1351087248: '1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101475_0.png', 1351090219: '1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114367_0.png', 1351108223: '1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238646_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/69a9b37de7615314611a168856bdb6a7_74914421.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8ed4528c9a6f3452752efc1bd499bca2_21944299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4baba300d554b6effa8936deb4dc7359_59068042.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fb1de9bf7b48a2c85169cd77661f2000_23443426.png change filename to text .imagette221954811745034570/ imagette221954811745034570/1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114367_0.png.png imagette221954811745034570/1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238646_0.png.png imagette221954811745034570/1744976501_2595349_1351085990_880fb6942e9e478dee0c40fec2fcd7c2_rle_crop_3754101421_0.png.png imagette221954811745034570/1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101475_0.png.png imagette221954811745034570/1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101429_0.png.png imagette221954821745034570/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f6079cb3890d0cad3a86f4292c8308b9_85109260.png imagette221954811745034570 22195482 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=22195482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221954821745034570 22195483 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=22195483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351109155: '1744978662_2680309_1351087299_b540181c06222ffae1ba1e7981753952_rle_crop_3754238965_0.png'} change filename to text .imagette221954831745034570/ imagette221954831745034570/1744978662_2680309_1351087299_b540181c06222ffae1ba1e7981753952_rle_crop_3754238965_0.png.png imagette221954841745034570/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fe33491b9168bd988e017eb6e7fac687_46035485.png imagette221954831745034570 22195484 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=22195484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221954841745034570 22195486 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=22195486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351087144: '1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098449_0.png', 1351087145: '1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098457_0.png', 1351087258: '1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101430_0.png', 1351087260: '1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101480_0.png', 1351108238: '1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238624_0.png', 1351109126: '1744978662_2680309_1351087369_07ac8cee8f31902a47f5873e84d9a7b0_rle_crop_3754238934_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9260191050479e9c4806ba1fd5c8ace4_26711920.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ea51a25439ede583e1b6a24bccc36dcd_91526067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/eb2ef4a058563c40f81fb3c161eb82d5_77156793.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9c8d762417fc6b7828ad098c3fef6e2e_36571823.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/05b418085b4629392ee8bf661af33a3a_27603068.png change filename to text .imagette221954861745034570/ imagette221954861745034570/1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101480_0.png.png imagette221954861745034570/1744978662_2680309_1351087369_07ac8cee8f31902a47f5873e84d9a7b0_rle_crop_3754238934_0.png.png imagette221954861745034570/1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098457_0.png.png imagette221954861745034570/1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238624_0.png.png imagette221954861745034570/1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098449_0.png.png imagette221954861745034570/1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101430_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fe18ecd696973f5efdfdf1a62cbb01ff_59023378.png imagette221954861745034570 22195487 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=22195487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351108959: '1744978662_2680309_1351087474_9589ba9770f835dadf98c2dfed733da3_rle_crop_3754238890_0.png'} change filename to text .imagette221954871745034571/ imagette221954871745034571/1744978662_2680309_1351087474_9589ba9770f835dadf98c2dfed733da3_rle_crop_3754238890_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/85f9d3a84ff3475caaca5c68c593ec89_45458722.png imagette221954871745034571 22195477 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=22195477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351087244: '1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101434_0.png', 1351090208: '1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114370_0.png', 1351091807: '1744977011_4066421_1351089826_af2caae67358432c6cb99a709e9ab282_rle_crop_3754117268_0.png', 1351108196: '1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238654_0.png', 1351108197: '1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/62a7f0fa9c70b035cc0f8950dd744182_66524410.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1d316f7a1f12c41e26ca525f00c4f739_2099474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/61a6966bb61f314940608305fe839937_2976493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f1b4fd171918a0ae0976284390995cb8_86484300.png change filename to text .imagette221954771745034571/ imagette221954771745034571/1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114370_0.png.png imagette221954771745034571/1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238654_0.png.png imagette221954771745034571/1744977011_4066421_1351089826_af2caae67358432c6cb99a709e9ab282_rle_crop_3754117268_0.png.png imagette221954771745034571/1744976501_2595349_1351085521_86c0c4018cb590b01dd25425de940ea8_rle_crop_3754101434_0.png.png imagette221954771745034571/1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238653_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c98f4929dc73f36bbab6070ddb2fe222_31248359.png imagette221954771745034571 22195478 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=22195478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351087137: '1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098447_0.png', 1351090212: '1744976832_4064334_1351089049_3afd1d5e964d6c85e62b328c957b6ac6_rle_crop_3754114341_0.png', 1351090213: '1744976832_4064334_1351088999_f0037a291066abd34ac04dab7807e265_rle_crop_3754114353_0.png', 1351090214: '1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114368_0.png', 1351090215: '1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114365_0.png', 1351091808: '1744977011_4066421_1351089826_af2caae67358432c6cb99a709e9ab282_rle_crop_3754117267_0.png', 1351108212: '1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238629_0.png', 1351108213: '1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238625_0.png', 1351109011: '1744978662_2680309_1351087299_b540181c06222ffae1ba1e7981753952_rle_crop_3754238964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fd388a4c9d4408c3d24534de840bc3d7_11590087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/246ef01f62bb8786a68f254d090b174f_53226454.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bd1dabf058d9a23214db3a3460476b32_15172764.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d607b9c5fb8e037d9ad7f8f18fc32810_41719803.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/302c1d7b1386a514fc068a9a5b14a627_12720785.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4ba5a51df0e09f6f50babeefaf39916e_73893851.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b536553633c3923bb2ea392a6f18b0d2_43394364.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4e3a38982220776261ce6d6b95877ca9_38502877.png change filename to text .imagette221954781745034572/ imagette221954781745034572/1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238625_0.png.png imagette221954781745034572/1744976832_4064334_1351088999_f0037a291066abd34ac04dab7807e265_rle_crop_3754114353_0.png.png imagette221954781745034572/1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114368_0.png.png imagette221954781745034572/1744976832_4064334_1351089049_3afd1d5e964d6c85e62b328c957b6ac6_rle_crop_3754114341_0.png.png imagette221954781745034572/1744976471_4060767_1351085553_e076fef01cf7bc37a766626a0fac9006_rle_crop_3754098447_0.png.png imagette221954781745034572/1744978632_4128004_1351087381_dca462de7c4c49d16e6454b02712edce_rle_crop_3754238629_0.png.png imagette221954781745034572/1744977011_4066421_1351089826_af2caae67358432c6cb99a709e9ab282_rle_crop_3754117267_0.png.png imagette221954781745034572/1744976832_4064334_1351088926_47db8af1e088969f5a44db9eb39499a6_rle_crop_3754114365_0.png.png imagette221954781745034572/1744978662_2680309_1351087299_b540181c06222ffae1ba1e7981753952_rle_crop_3754238964_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/282d4c113d793460825fff88ed8e0dcc_78359335.png imagette221954781745034572 22195485 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=22195485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351087249: '1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101482_0.png', 1351090220: '1744976832_4064334_1351089078_4bbd60c2ff2d464142f4a1796cbdbeff_rle_crop_3754114328_0.png', 1351090221: '1744976832_4064334_1351089049_3afd1d5e964d6c85e62b328c957b6ac6_rle_crop_3754114346_0.png', 1351095406: '1744977615_4078093_1351087472_ce10e7db9edc143f45a00235190b7d6c_rle_crop_3754156660_0.png', 1351108230: '1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238648_0.png', 1351109067: '1744978662_2680309_1351087369_07ac8cee8f31902a47f5873e84d9a7b0_rle_crop_3754238935_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/02a115d0e7d3b29c987d0017a206a924_4882685.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c3c4187e72fb71fb928e63a9bb41ee08_14862002.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cfd8a621d32bc4d0fdb0b1b259a5e90a_54692188.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4a2a21be8ca7deb3717ae39b6926009d_26235396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/094ae04f9ee43793f259b6153025d9dc_70978301.png change filename to text .imagette221954851745034573/ imagette221954851745034573/1744977615_4078093_1351087472_ce10e7db9edc143f45a00235190b7d6c_rle_crop_3754156660_0.png.png imagette221954851745034573/1744976501_2595349_1351085486_8a002a1423691dba71d4f3f645387376_rle_crop_3754101482_0.png.png imagette221954851745034573/1744976832_4064334_1351089078_4bbd60c2ff2d464142f4a1796cbdbeff_rle_crop_3754114328_0.png.png imagette221954851745034573/1744978632_4128004_1351086873_8e4698cadc9bb91def1fd13ac6360472_rle_crop_3754238648_0.png.png imagette221954851745034573/1744976832_4064334_1351089049_3afd1d5e964d6c85e62b328c957b6ac6_rle_crop_3754114346_0.png.png imagette221954851745034573/1744978662_2680309_1351087369_07ac8cee8f31902a47f5873e84d9a7b0_rle_crop_3754238935_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/90d30ea79710fdd8ca4ecf590096f9a1_89832636.png imagette221954851745034573 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22195476 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22195489,22195490,22195491,22195492,22195493,22195494,22195495,22195496,22195497,22195498,22195499,22195500?tags=Teint_Dans_La_Masse,Carton_gris,papier,metal,cartonnette,mal_croppe,kraft,flou,Carton_brun,plastique,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1351089826] : ('0.0477845788686051',) no score found for photo 1351089826 We are sending mail with results at report@fotonower.com args[1351089137] : ('0.0477845788686051',) no score found for photo 1351089137 We are sending mail with results at report@fotonower.com args[1351089106] : ('0.0477845788686051',) no score found for photo 1351089106 We are sending mail with results at report@fotonower.com args[1351089078] : ('0.0477845788686051',) no score found for photo 1351089078 We are sending mail with results at report@fotonower.com args[1351089049] : ('0.0477845788686051',) no score found for photo 1351089049 We are sending mail with results at report@fotonower.com args[1351088999] : ('0.0477845788686051',) no score found for photo 1351088999 We are sending mail with results at report@fotonower.com args[1351088926] : ('0.0477845788686051',) no score found for photo 1351088926 We are sending mail with results at report@fotonower.com args[1351088064] : ('0.0477845788686051',) no score found for photo 1351088064 We are sending mail with results at report@fotonower.com args[1351087973] : ('0.0477845788686051',) no score found for photo 1351087973 We are sending mail with results at report@fotonower.com args[1351087474] : ('0.0477845788686051',) no score found for photo 1351087474 We are sending mail with results at report@fotonower.com args[1351087472] : ('0.0477845788686051',) no score found for photo 1351087472 We are sending mail with results at report@fotonower.com args[1351087470] : ('0.0477845788686051',) no score found for photo 1351087470 We are sending mail with results at report@fotonower.com args[1351087381] : ('0.0477845788686051',) no score found for photo 1351087381 We are sending mail with results at report@fotonower.com args[1351087369] : ('0.0477845788686051',) no score found for photo 1351087369 We are sending mail with results at report@fotonower.com args[1351087299] : ('0.0477845788686051',) no score found for photo 1351087299 We are sending mail with results at report@fotonower.com args[1351087253] : ('0.0477845788686051',) no score found for photo 1351087253 We are sending mail with results at report@fotonower.com args[1351087243] : ('0.0477845788686051',) no score found for photo 1351087243 We are sending mail with results at report@fotonower.com args[1351087240] : ('0.0477845788686051',) no score found for photo 1351087240 We are sending mail with results at report@fotonower.com args[1351086901] : ('0.0477845788686051',) no score found for photo 1351086901 We are sending mail with results at report@fotonower.com args[1351086873] : ('0.0477845788686051',) no score found for photo 1351086873 We are sending mail with results at report@fotonower.com args[1351085990] : ('0.0477845788686051',) no score found for photo 1351085990 We are sending mail with results at report@fotonower.com args[1351085553] : ('0.0477845788686051',) no score found for photo 1351085553 We are sending mail with results at report@fotonower.com args[1351085521] : ('0.0477845788686051',) no score found for photo 1351085521 We are sending mail with results at report@fotonower.com args[1351085486] : ('0.0477845788686051',) no score found for photo 1351085486 We are sending mail with results at report@fotonower.com args[1351084882] : ('0.0477845788686051',) no score found for photo 1351084882 We are sending mail with results at report@fotonower.com args[1351084818] : ('0.0477845788686051',) no score found for photo 1351084818 We are sending mail with results at report@fotonower.com args[1351084757] : ('0.0477845788686051',) no score found for photo 1351084757 We are sending mail with results at report@fotonower.com refus_total : 0.0477845788686051 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=22195476 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_P22195476_19-04-2025_05_49_30.pdf results_Auto_P22195476_19-04-2025_05_49_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_19-04-2025_05_49_30.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','22195476','results_Auto_P22195476_19-04-2025_05_49_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_19-04-2025_05_49_30.pdf','pdf','','0.31','0.0477845788686051') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22195476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] map_info['map_portfolio_photo'] : {22195476: [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757]} final : False mtd_id 4302 list_pids : [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] 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, '2739700') ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22195476', '1351089826', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700')] time used for this insertion : 0.015434026718139648 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.587061882019043 time spend to save output : 0.015854597091674805 total time spend for step 4 : 6.602916479110718 step5:split_time_score Sat Apr 19 05:49:35 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 : ['22195476'] 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 : [('22195476',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22195476) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351089106: {'path': 'temp/1745034569_2891825_1351089106_526a92db092d7e102b98f6b6da72a5a6.jpg', 'extension': 'jpg'}, 1351089137: {'path': 'temp/1745034569_2891825_1351089137_8f9dc3902ff8f1f7c330e7276c4d5366.jpg', 'extension': 'jpg'}, 1351089826: {'path': 'temp/1745034569_2891825_1351089826_af2caae67358432c6cb99a709e9ab282.jpg', 'extension': 'jpg'}, 1351087973: {'path': 'temp/1745034569_2891825_1351087973_fd4cc29662f5848747ea49b12f97c9f4.jpg', 'extension': 'jpg'}, 1351088064: {'path': 'temp/1745034569_2891825_1351088064_815801d33b01c46e6ef3f197c7e096f4.jpg', 'extension': 'jpg'}, 1351088926: {'path': 'temp/1745034569_2891825_1351088926_47db8af1e088969f5a44db9eb39499a6.jpg', 'extension': 'jpg'}, 1351088999: {'path': 'temp/1745034569_2891825_1351088999_f0037a291066abd34ac04dab7807e265.jpg', 'extension': 'jpg'}, 1351089049: {'path': 'temp/1745034569_2891825_1351089049_3afd1d5e964d6c85e62b328c957b6ac6.jpg', 'extension': 'jpg'}, 1351089078: {'path': 'temp/1745034569_2891825_1351089078_4bbd60c2ff2d464142f4a1796cbdbeff.jpg', 'extension': 'jpg'}, 1351084757: {'path': 'temp/1745034569_2891825_1351084757_0ede39e96b35d0656db030a18a35f084.jpg', 'extension': 'jpg'}, 1351084818: {'path': 'temp/1745034569_2891825_1351084818_3b9f04dd014efcac26637b7f62929990.jpg', 'extension': 'jpg'}, 1351084882: {'path': 'temp/1745034569_2891825_1351084882_206e6dcbcbc35f5abcf8f2a4da4cb798.jpg', 'extension': 'jpg'}, 1351085486: {'path': 'temp/1745034569_2891825_1351085486_8a002a1423691dba71d4f3f645387376.jpg', 'extension': 'jpg'}, 1351085521: {'path': 'temp/1745034569_2891825_1351085521_86c0c4018cb590b01dd25425de940ea8.jpg', 'extension': 'jpg'}, 1351085553: {'path': 'temp/1745034569_2891825_1351085553_e076fef01cf7bc37a766626a0fac9006.jpg', 'extension': 'jpg'}, 1351087299: {'path': 'temp/1745034569_2891825_1351087299_b540181c06222ffae1ba1e7981753952.jpg', 'extension': 'jpg'}, 1351087369: {'path': 'temp/1745034569_2891825_1351087369_07ac8cee8f31902a47f5873e84d9a7b0.jpg', 'extension': 'jpg'}, 1351087381: {'path': 'temp/1745034569_2891825_1351087381_dca462de7c4c49d16e6454b02712edce.jpg', 'extension': 'jpg'}, 1351087470: {'path': 'temp/1745034569_2891825_1351087470_52e7a0bb80bad8a319a35c9c30038a47.jpg', 'extension': 'jpg'}, 1351087472: {'path': 'temp/1745034569_2891825_1351087472_ce10e7db9edc143f45a00235190b7d6c.jpg', 'extension': 'jpg'}, 1351087474: {'path': 'temp/1745034569_2891825_1351087474_9589ba9770f835dadf98c2dfed733da3.jpg', 'extension': 'jpg'}, 1351085990: {'path': 'temp/1745034569_2891825_1351085990_880fb6942e9e478dee0c40fec2fcd7c2.jpg', 'extension': 'jpg'}, 1351086873: {'path': 'temp/1745034569_2891825_1351086873_8e4698cadc9bb91def1fd13ac6360472.jpg', 'extension': 'jpg'}, 1351086901: {'path': 'temp/1745034569_2891825_1351086901_9b9f3ea793079a32d3a53f3dd146037f.jpg', 'extension': 'jpg'}, 1351087240: {'path': 'temp/1745034569_2891825_1351087240_9500901a7c5699f5e20f622b243ffe6a.jpg', 'extension': 'jpg'}, 1351087243: {'path': 'temp/1745034569_2891825_1351087243_b30cc0834d5c44c8f2915fcdac850e87.jpg', 'extension': 'jpg'}, 1351087253: {'path': 'temp/1745034569_2891825_1351087253_bd7b427ce26dec3f8f65041ad38d3a80.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 = 22195476; (('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 = 22195476 group by h (('13', 27),) 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=22195476 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 (22195476) 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 (22195476) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22195476 Nombre de photos uploadées : 27 / 23040 (0%) 18042025 22195476 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 18042025 22195476 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1351084882, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/206e6dcbcbc35f5abcf8f2a4da4cb798.jpg', 'username': None, 'uploaded_at': 1744976227, 'text': 'image_18042025_13_36_04_010155m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351084818, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3b9f04dd014efcac26637b7f62929990.jpg', 'username': None, 'uploaded_at': 1744976227, 'text': 'image_18042025_13_36_33_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351084757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0ede39e96b35d0656db030a18a35f084.jpg', 'username': None, 'uploaded_at': 1744976227, 'text': 'image_18042025_13_36_43_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1351085553, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e076fef01cf7bc37a766626a0fac9006.jpg', 'username': None, 'uploaded_at': 1744976287, 'text': 'image_18042025_13_36_53_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001371622085571289 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22195476, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023451805114746094 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22162948, 'dashboard_result_id': 9999347, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162948_19-04-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22162954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162962, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22163465, 'dashboard_result_id': 9999348, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163465_19-04-2025_05_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163503, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22163930, 'dashboard_result_id': 9999349, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163930_19-04-2025_05_35_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163944, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22164320, 'dashboard_result_id': 9999350, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164320_19-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164358, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22165302, 'dashboard_result_id': 9999351, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_19-04-2025_05_36_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22165696, 'dashboard_result_id': 9999352, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_19-04-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22166003, 'dashboard_result_id': 9999353, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_19-04-2025_05_37_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22166799, 'dashboard_result_id': 9999354, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_19-04-2025_05_37_55.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22167282, 'dashboard_result_id': 9999355, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_19-04-2025_05_37_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22167840, 'dashboard_result_id': 9999356, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_19-04-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22168535, 'dashboard_result_id': 9999357, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_19-04-2025_05_38_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22168817, 'dashboard_result_id': 9999358, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_19-04-2025_05_38_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22169287, 'dashboard_result_id': 9999359, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169287_19-04-2025_05_38_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169299, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22169736, 'dashboard_result_id': 9999360, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169736_19-04-2025_05_39_48.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169772, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22170221, 'dashboard_result_id': 9999361, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22170221_19-04-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22170247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22170248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22170249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22170250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22170251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22170252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22170253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22170254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22170255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22170256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22170257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22170258, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22171119, 'dashboard_result_id': 9999362, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171119_19-04-2025_05_40_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22171122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171133, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22171362, 'dashboard_result_id': 9999363, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171362_19-04-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171374, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22171631, 'dashboard_result_id': 9999364, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171631_19-04-2025_05_41_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171657, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22172154, 'dashboard_result_id': 9999365, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172154_19-04-2025_05_41_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172190, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22172466, 'dashboard_result_id': 9999366, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172466_19-04-2025_05_41_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172478, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22173041, 'dashboard_result_id': 9999367, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173041_19-04-2025_05_41_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173079, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22173579, 'dashboard_result_id': 9999368, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_19-04-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22173940, 'dashboard_result_id': 9999369, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_19-04-2025_05_42_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22174430, 'dashboard_result_id': 9999370, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_19-04-2025_05_43_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22175155, 'dashboard_result_id': 9999371, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_19-04-2025_05_44_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22175907, 'dashboard_result_id': 9999372, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_19-04-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22176494, 'dashboard_result_id': 9999373, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_19-04-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22177264, 'dashboard_result_id': 9999374, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22177264_19-04-2025_05_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22177318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22177319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22177320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22177321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22177322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22177323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22177324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22177325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22177326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22177327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22177328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22177329, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22178039, 'dashboard_result_id': 9999375, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178039_19-04-2025_05_45_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22178087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178098, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22178776, 'dashboard_result_id': 9999376, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178776_19-04-2025_05_45_53.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22178790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178794, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22181228, 'dashboard_result_id': 9999377, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181228_19-04-2025_05_45_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181242, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22181746, 'dashboard_result_id': 9999378, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181746_19-04-2025_05_46_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181761, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22182399, 'dashboard_result_id': 9999379, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182399_19-04-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22182400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22182401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22182402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22182403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22182404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22182405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22182406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22182407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22182408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22182409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22182410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22182411, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22182983, 'dashboard_result_id': 9999380, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182983_19-04-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22183024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183026, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22183721, 'dashboard_result_id': 9999381, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22183721_19-04-2025_05_47_50.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22183728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183751, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22185830, 'dashboard_result_id': 9999382, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185830_19-04-2025_05_47_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22185894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185904, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22187506, 'dashboard_result_id': 9999383, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187506_19-04-2025_05_48_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187584, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22188563, 'dashboard_result_id': 9999384, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188563_19-04-2025_05_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188641, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22189239, 'dashboard_result_id': 9999385, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189239_19-04-2025_05_49_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22189294, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22190456, 'dashboard_result_id': 9999386, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22190456_19-04-2025_05_49_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22190460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22190461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22190462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22190463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22190464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22190465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22190466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22190467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22190468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22190469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22190470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22190471, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22191274, 'dashboard_result_id': 9999387, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22191274_19-04-2025_00_09_45.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22191430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22191431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22191432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22191433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22191434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22191435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22191436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22191437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22191438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22191439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22191440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22191441, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22195476, 'dashboard_result_id': 9999388, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_18-04-2025_13_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22195829, 'dashboard_result_id': 9999389, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22196748, 'dashboard_result_id': 9999390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22197824, 'dashboard_result_id': 9999391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22198831, 'dashboard_result_id': 9999392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198831_18-04-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22198883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198887, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22199667, 'dashboard_result_id': 9999393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199667_18-04-2025_15_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22199708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199719, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22200840, 'dashboard_result_id': 9999394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22200840_18-04-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22200887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22200888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22200889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22200890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22200891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22200892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22200893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22200894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22200895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22200896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22200897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22200898, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22201618, 'dashboard_result_id': 9999395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22201618_18-04-2025_15_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22201667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22201668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22201669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22201670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22201671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22201672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22201673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22201674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22201675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22201676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22201677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22201678, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22202621, 'dashboard_result_id': 9999396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22203468, 'dashboard_result_id': 9999397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22204432, 'dashboard_result_id': 9999398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_21_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22205673, 'dashboard_result_id': 9999399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22205673_18-04-2025_16_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22205738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22205739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22205740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22205741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22205742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22205743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22205744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22205745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22205746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22205747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22205748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22205749, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22206611, 'dashboard_result_id': 9999400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22206611_18-04-2025_16_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22206643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22206644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22206645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22206646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22206647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22206648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22206649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22206650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22206651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22206652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22206653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22206654, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22207503, 'dashboard_result_id': 9999401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22207503_18-04-2025_17_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22207585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22207586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22207587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22207588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22207589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22207590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22207591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22207592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22207593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22207594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22207595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22207596, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22208392, 'dashboard_result_id': 9999402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22208392_18-04-2025_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22208398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22208399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22208400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22208401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22208402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22208403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22208404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22208405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22208407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22208408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22208409, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22209371, 'dashboard_result_id': 9999403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209371_18-04-2025_18_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209466, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22211758, 'dashboard_result_id': 9999404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211758_18-04-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211775, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22212653, 'dashboard_result_id': 9999405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212653_18-04-2025_18_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22212755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212766, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22213700, 'dashboard_result_id': 9999406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22213700_18-04-2025_18_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22213742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22213743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22213744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22213745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22213746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22213747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22213748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22213749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22213750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22213752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22213753, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22214541, 'dashboard_result_id': 9999407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22214541_18-04-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22214586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22214587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22214588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22214589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22214590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22214591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22214592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22214593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22214594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22214595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22214596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22214597, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22215466, 'dashboard_result_id': 9999408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215466_18-04-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22215500, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22216453, 'dashboard_result_id': 9999409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216453_18-04-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22216514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22216515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22216516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22216517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22216518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22216519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22216520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22216521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22216522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22216523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22216524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22216525, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22217260, 'dashboard_result_id': 9999410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217260_18-04-2025_19_48_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217335, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22218492, 'dashboard_result_id': 9999411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218492_18-04-2025_20_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22218535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218540, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22219511, 'dashboard_result_id': 9999412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219511_18-04-2025_20_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219585, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22220431, 'dashboard_result_id': 9999413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220431_18-04-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22220435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220446, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22220923, 'dashboard_result_id': 9999414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220923_18-04-2025_21_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22220953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220963, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22223035, 'dashboard_result_id': 9999415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22225216, 'dashboard_result_id': 9999416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_22_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22225217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22225218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22225219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22225220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22225221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22225222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22225223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22225224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22225225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22225226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22225227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22225228, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1737776, 'mtr_portfolio_id': 22228334, 'dashboard_result_id': 9999417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228334_18-04-2025_23_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228400, '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 = 22162948 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739659, 'mtr_portfolio_id': 22162948, 'created_at': datetime.datetime(2025, 4, 19, 5, 34, 29), 'result': '0.05802794034302116', 'result_long': None, 'result_double': None}] Qualite : 0.05802794034302116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22162948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162948_19-04-2025_05_34_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22162948 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162948_19-04-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22162954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162962, 'pht': 3726}}" where mtr_portfolio_id = 22162948 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22162948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999347, 0.05802794034302116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22162948_19-04-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22162951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22162952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22162953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22162954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22162955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22162956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22162957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22162958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22162959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22162960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22162961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22162962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22163465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739660, 'mtr_portfolio_id': 22163465, 'created_at': datetime.datetime(2025, 4, 19, 5, 34, 58), 'result': '0.05804305563715384', 'result_long': None, 'result_double': None}] Qualite : 0.05804305563715384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22163465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163465_19-04-2025_05_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22163465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163465_19-04-2025_05_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163503, 'pht': 3726}}" where mtr_portfolio_id = 22163465 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22163465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999348, 0.05804305563715384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163465_19-04-2025_05_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163498, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163503, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22163930 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739661, 'mtr_portfolio_id': 22163930, 'created_at': datetime.datetime(2025, 4, 19, 5, 35, 45), 'result': '0.07104622861329793', 'result_long': None, 'result_double': None}] Qualite : 0.07104622861329793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22163930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163930_19-04-2025_05_35_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22163930 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163930_19-04-2025_05_35_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163944, 'pht': 3726}}" where mtr_portfolio_id = 22163930 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22163930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999349, 0.07104622861329793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163930_19-04-2025_05_35_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163944, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22164320 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739662, 'mtr_portfolio_id': 22164320, 'created_at': datetime.datetime(2025, 4, 19, 5, 35, 30), 'result': '0.06658908624421675', 'result_long': None, 'result_double': None}] Qualite : 0.06658908624421675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22164320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164320_19-04-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22164320 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164320_19-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164358, 'pht': 3726}}" where mtr_portfolio_id = 22164320 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22164320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999350, 0.06658908624421675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164320_19-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164358, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22165302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739663, 'mtr_portfolio_id': 22165302, 'created_at': datetime.datetime(2025, 4, 19, 5, 36), 'result': '0.052256266685867275', 'result_long': None, 'result_double': None}] Qualite : 0.052256266685867275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22165302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_19-04-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22165302 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_19-04-2025_05_36_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, 'pht': 3726}}" where mtr_portfolio_id = 22165302 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22165302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999351, 0.052256266685867275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_19-04-2025_05_36_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22165696 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739664, 'mtr_portfolio_id': 22165696, 'created_at': datetime.datetime(2025, 4, 19, 5, 36, 30), 'result': '0.053881910319139886', 'result_long': None, 'result_double': None}] Qualite : 0.053881910319139886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22165696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_19-04-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22165696 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_19-04-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, 'pht': 3726}}" where mtr_portfolio_id = 22165696 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22165696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999352, 0.053881910319139886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_19-04-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22166003 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739665, 'mtr_portfolio_id': 22166003, 'created_at': datetime.datetime(2025, 4, 19, 5, 37), 'result': '0.047790594646829804', 'result_long': None, 'result_double': None}] Qualite : 0.047790594646829804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_19-04-2025_05_37_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166003 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_19-04-2025_05_37_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}" where mtr_portfolio_id = 22166003 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22166003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999353, 0.047790594646829804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_19-04-2025_05_37_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22166799 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739666, 'mtr_portfolio_id': 22166799, 'created_at': datetime.datetime(2025, 4, 19, 5, 37, 50), 'result': '0.04890722761152895', 'result_long': None, 'result_double': None}] Qualite : 0.04890722761152895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_19-04-2025_05_37_55.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166799 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_19-04-2025_05_37_55.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}" where mtr_portfolio_id = 22166799 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22166799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999354, 0.04890722761152895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_19-04-2025_05_37_55.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22167282 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739667, 'mtr_portfolio_id': 22167282, 'created_at': datetime.datetime(2025, 4, 19, 5, 37, 28), 'result': '0.07206933849344499', 'result_long': None, 'result_double': None}] Qualite : 0.07206933849344499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_19-04-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167282 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_19-04-2025_05_37_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}" where mtr_portfolio_id = 22167282 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22167282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999355, 0.07206933849344499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_19-04-2025_05_37_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22167840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739668, 'mtr_portfolio_id': 22167840, 'created_at': datetime.datetime(2025, 4, 19, 5, 37, 27), 'result': '0.05140966075972333', 'result_long': None, 'result_double': None}] Qualite : 0.05140966075972333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_19-04-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_19-04-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}" where mtr_portfolio_id = 22167840 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22167840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999356, 0.05140966075972333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_19-04-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22168535 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739669, 'mtr_portfolio_id': 22168535, 'created_at': datetime.datetime(2025, 4, 19, 5, 37, 58), 'result': '0.07061054419730133', 'result_long': None, 'result_double': None}] Qualite : 0.07061054419730133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_19-04-2025_05_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168535 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_19-04-2025_05_38_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, 'pht': 3726}}" where mtr_portfolio_id = 22168535 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22168535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999357, 0.07061054419730133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_19-04-2025_05_38_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22168817 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739670, 'mtr_portfolio_id': 22168817, 'created_at': datetime.datetime(2025, 4, 19, 5, 38, 28), 'result': '0.05785317967968177', 'result_long': None, 'result_double': None}] Qualite : 0.05785317967968177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_19-04-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168817 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_19-04-2025_05_38_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, 'pht': 3726}}" where mtr_portfolio_id = 22168817 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22168817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999358, 0.05785317967968177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168817_19-04-2025_05_38_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168830, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22169287 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739671, 'mtr_portfolio_id': 22169287, 'created_at': datetime.datetime(2025, 4, 19, 5, 38, 57), 'result': '0.06259042131631043', 'result_long': None, 'result_double': None}] Qualite : 0.06259042131631043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22169287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169287_19-04-2025_05_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22169287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169287_19-04-2025_05_38_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169299, 'pht': 3726}}" where mtr_portfolio_id = 22169287 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22169287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999359, 0.06259042131631043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169287_19-04-2025_05_38_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169299, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22169736 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739672, 'mtr_portfolio_id': 22169736, 'created_at': datetime.datetime(2025, 4, 19, 5, 39, 43), 'result': '0.05445296144350352', 'result_long': None, 'result_double': None}] Qualite : 0.05445296144350352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22169736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169736_19-04-2025_05_39_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22169736 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169736_19-04-2025_05_39_48.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169772, 'pht': 3726}}" where mtr_portfolio_id = 22169736 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22169736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999360, 0.05445296144350352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22169736_19-04-2025_05_39_48.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22169761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22169762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22169763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22169764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22169765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22169766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22169767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22169768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22169769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22169770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22169771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22169772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22170221 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739673, 'mtr_portfolio_id': 22170221, 'created_at': datetime.datetime(2025, 4, 19, 5, 39, 31), 'result': '0.0549236955181099', 'result_long': None, 'result_double': None}] Qualite : 0.0549236955181099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22170221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22170221_19-04-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22170221 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22170221_19-04-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22170247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22170248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22170249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22170250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22170251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22170252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22170253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22170254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22170255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22170256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22170257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22170258, 'pht': 3726}}" where mtr_portfolio_id = 22170221 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22170221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999361, 0.0549236955181099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22170221_19-04-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22170247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22170248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22170249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22170250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22170251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22170252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22170253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22170254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22170255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22170256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22170257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22170258, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22171119 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739674, 'mtr_portfolio_id': 22171119, 'created_at': datetime.datetime(2025, 4, 19, 5, 40, 1), 'result': '0.03853177405467718', 'result_long': None, 'result_double': None}] Qualite : 0.03853177405467718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22171119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171119_19-04-2025_05_40_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22171119 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171119_19-04-2025_05_40_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22171122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171133, 'pht': 3726}}" where mtr_portfolio_id = 22171119 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22171119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999362, 0.03853177405467718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171119_19-04-2025_05_40_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22171122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171133, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22171362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739675, 'mtr_portfolio_id': 22171362, 'created_at': datetime.datetime(2025, 4, 19, 5, 40, 30), 'result': '0.03738525252165271', 'result_long': None, 'result_double': None}] Qualite : 0.03738525252165271 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22171362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171362_19-04-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22171362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171362_19-04-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171374, 'pht': 3726}}" where mtr_portfolio_id = 22171362 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22171362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999363, 0.03738525252165271, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171362_19-04-2025_05_40_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171374, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22171631 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739676, 'mtr_portfolio_id': 22171631, 'created_at': datetime.datetime(2025, 4, 19, 5, 40, 58), 'result': '0.04346841499848516', 'result_long': None, 'result_double': None}] Qualite : 0.04346841499848516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22171631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171631_19-04-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22171631 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171631_19-04-2025_05_41_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171657, 'pht': 3726}}" where mtr_portfolio_id = 22171631 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22171631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999364, 0.04346841499848516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22171631_19-04-2025_05_41_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22171646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22171647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22171648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22171649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22171650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22171651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22171652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22171653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22171654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22171655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22171656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22171657, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22172154 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739677, 'mtr_portfolio_id': 22172154, 'created_at': datetime.datetime(2025, 4, 19, 5, 41, 3), 'result': '0.06279852853292425', 'result_long': None, 'result_double': None}] Qualite : 0.06279852853292425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22172154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172154_19-04-2025_05_41_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22172154 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172154_19-04-2025_05_41_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172190, 'pht': 3726}}" where mtr_portfolio_id = 22172154 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22172154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999365, 0.06279852853292425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172154_19-04-2025_05_41_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172190, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22172466 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739678, 'mtr_portfolio_id': 22172466, 'created_at': datetime.datetime(2025, 4, 19, 5, 41, 49), 'result': '0.058082090313368265', 'result_long': None, 'result_double': None}] Qualite : 0.058082090313368265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22172466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172466_19-04-2025_05_41_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22172466 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172466_19-04-2025_05_41_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172478, 'pht': 3726}}" where mtr_portfolio_id = 22172466 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22172466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999366, 0.058082090313368265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172466_19-04-2025_05_41_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172478, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22173041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739679, 'mtr_portfolio_id': 22173041, 'created_at': datetime.datetime(2025, 4, 19, 5, 41, 29), 'result': '0.056333741443553464', 'result_long': None, 'result_double': None}] Qualite : 0.056333741443553464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173041_19-04-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173041_19-04-2025_05_41_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173079, 'pht': 3726}}" where mtr_portfolio_id = 22173041 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999367, 0.056333741443553464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173041_19-04-2025_05_41_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22173579 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739680, 'mtr_portfolio_id': 22173579, 'created_at': datetime.datetime(2025, 4, 19, 5, 41, 59), 'result': '0.05121349867769067', 'result_long': None, 'result_double': None}] Qualite : 0.05121349867769067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_19-04-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_19-04-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, 'pht': 3726}}" where mtr_portfolio_id = 22173579 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999368, 0.05121349867769067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173579_19-04-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22173605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173616, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22173940 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739681, 'mtr_portfolio_id': 22173940, 'created_at': datetime.datetime(2025, 4, 19, 5, 42, 30), 'result': '0.047892280257667855', 'result_long': None, 'result_double': None}] Qualite : 0.047892280257667855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_19-04-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173940 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_19-04-2025_05_42_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, 'pht': 3726}}" where mtr_portfolio_id = 22173940 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999369, 0.047892280257667855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173940_19-04-2025_05_42_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173952, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22174430 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739682, 'mtr_portfolio_id': 22174430, 'created_at': datetime.datetime(2025, 4, 19, 5, 42, 57), 'result': '0.08361296579134453', 'result_long': None, 'result_double': None}] Qualite : 0.08361296579134453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22174430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_19-04-2025_05_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22174430 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_19-04-2025_05_43_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}" where mtr_portfolio_id = 22174430 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22174430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999370, 0.08361296579134453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_19-04-2025_05_43_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22175155 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739683, 'mtr_portfolio_id': 22175155, 'created_at': datetime.datetime(2025, 4, 19, 5, 43, 54), 'result': '0.062413577678597204', 'result_long': None, 'result_double': None}] Qualite : 0.062413577678597204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_19-04-2025_05_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175155 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_19-04-2025_05_44_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, 'pht': 3726}}" where mtr_portfolio_id = 22175155 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22175155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999371, 0.062413577678597204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_19-04-2025_05_44_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22175907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739684, 'mtr_portfolio_id': 22175907, 'created_at': datetime.datetime(2025, 4, 19, 5, 43, 28), 'result': '0.043106205086310204', 'result_long': None, 'result_double': None}] Qualite : 0.043106205086310204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_19-04-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_19-04-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, 'pht': 3726}}" where mtr_portfolio_id = 22175907 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22175907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999372, 0.043106205086310204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_19-04-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22176494 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739685, 'mtr_portfolio_id': 22176494, 'created_at': datetime.datetime(2025, 4, 19, 5, 43, 57), 'result': '0.08221531517824104', 'result_long': None, 'result_double': None}] Qualite : 0.08221531517824104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22176494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_19-04-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22176494 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_19-04-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, 'pht': 3726}}" where mtr_portfolio_id = 22176494 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22176494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999373, 0.08221531517824104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_19-04-2025_05_44_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22177264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739686, 'mtr_portfolio_id': 22177264, 'created_at': datetime.datetime(2025, 4, 19, 5, 44, 27), 'result': '0.05769138442549296', 'result_long': None, 'result_double': None}] Qualite : 0.05769138442549296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22177264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22177264_19-04-2025_05_44_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22177264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22177264_19-04-2025_05_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22177318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22177319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22177320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22177321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22177322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22177323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22177324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22177325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22177326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22177327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22177328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22177329, 'pht': 3726}}" where mtr_portfolio_id = 22177264 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22177264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999374, 0.05769138442549296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22177264_19-04-2025_05_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22177318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22177319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22177320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22177321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22177322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22177323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22177324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22177325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22177326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22177327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22177328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22177329, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22178039 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739687, 'mtr_portfolio_id': 22178039, 'created_at': datetime.datetime(2025, 4, 19, 5, 44, 58), 'result': '0.06922919684817622', 'result_long': None, 'result_double': None}] Qualite : 0.06922919684817622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22178039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178039_19-04-2025_05_45_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22178039 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178039_19-04-2025_05_45_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22178087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178098, 'pht': 3726}}" where mtr_portfolio_id = 22178039 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22178039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999375, 0.06922919684817622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178039_19-04-2025_05_45_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22178087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178098, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22178776 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739688, 'mtr_portfolio_id': 22178776, 'created_at': datetime.datetime(2025, 4, 19, 5, 45, 48), 'result': '0.05960624374902743', 'result_long': None, 'result_double': None}] Qualite : 0.05960624374902743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22178776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178776_19-04-2025_05_45_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22178776 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178776_19-04-2025_05_45_53.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22178790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178794, 'pht': 3726}}" where mtr_portfolio_id = 22178776 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22178776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999376, 0.05960624374902743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22178776_19-04-2025_05_45_53.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22178783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22178784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22178785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22178786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22178787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22178788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22178789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22178790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22178791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22178792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22178793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22178794, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22181228 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739689, 'mtr_portfolio_id': 22181228, 'created_at': datetime.datetime(2025, 4, 19, 5, 45, 28), 'result': '0.05252550736196472', 'result_long': None, 'result_double': None}] Qualite : 0.05252550736196472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22181228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181228_19-04-2025_05_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22181228 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181228_19-04-2025_05_45_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181242, 'pht': 3726}}" where mtr_portfolio_id = 22181228 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22181228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999377, 0.05252550736196472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181228_19-04-2025_05_45_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181242, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22181746 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739690, 'mtr_portfolio_id': 22181746, 'created_at': datetime.datetime(2025, 4, 19, 5, 45, 59), 'result': '0.0397741472321283', 'result_long': None, 'result_double': None}] Qualite : 0.0397741472321283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22181746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181746_19-04-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22181746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181746_19-04-2025_05_46_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181761, 'pht': 3726}}" where mtr_portfolio_id = 22181746 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22181746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999378, 0.0397741472321283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22181746_19-04-2025_05_46_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22181750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22181751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22181752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22181753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22181754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22181755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22181756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22181757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22181758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22181759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22181760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22181761, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22182399 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739691, 'mtr_portfolio_id': 22182399, 'created_at': datetime.datetime(2025, 4, 19, 5, 46, 29), 'result': '0.050894685059642474', 'result_long': None, 'result_double': None}] Qualite : 0.050894685059642474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22182399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182399_19-04-2025_05_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22182399 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182399_19-04-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22182400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22182401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22182402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22182403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22182404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22182405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22182406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22182407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22182408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22182409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22182410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22182411, 'pht': 3726}}" where mtr_portfolio_id = 22182399 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22182399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999379, 0.050894685059642474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182399_19-04-2025_05_46_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22182400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22182401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22182402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22182403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22182404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22182405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22182406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22182407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22182408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22182409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22182410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22182411, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22182983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739692, 'mtr_portfolio_id': 22182983, 'created_at': datetime.datetime(2025, 4, 19, 5, 46, 58), 'result': '0.04358786844528996', 'result_long': None, 'result_double': None}] Qualite : 0.04358786844528996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22182983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182983_19-04-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22182983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182983_19-04-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22183024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183026, 'pht': 3726}}" where mtr_portfolio_id = 22182983 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22182983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999380, 0.04358786844528996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22182983_19-04-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183018, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22183024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22183721 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739693, 'mtr_portfolio_id': 22183721, 'created_at': datetime.datetime(2025, 4, 19, 5, 47, 45), 'result': '0.0720966316350493', 'result_long': None, 'result_double': None}] Qualite : 0.0720966316350493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22183721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22183721_19-04-2025_05_47_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22183721 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22183721_19-04-2025_05_47_50.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22183728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183751, 'pht': 3726}}" where mtr_portfolio_id = 22183721 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22183721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999381, 0.0720966316350493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22183721_19-04-2025_05_47_50.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22183728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22183729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22183730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22183731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22183732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22183736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22183743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22183747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22183748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22183749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22183750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22183751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22185830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739694, 'mtr_portfolio_id': 22185830, 'created_at': datetime.datetime(2025, 4, 19, 5, 47, 29), 'result': '0.0627533041730692', 'result_long': None, 'result_double': None}] Qualite : 0.0627533041730692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22185830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185830_19-04-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22185830 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185830_19-04-2025_05_47_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22185894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185904, 'pht': 3726}}" where mtr_portfolio_id = 22185830 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22185830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999382, 0.0627533041730692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185830_19-04-2025_05_47_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22185894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185904, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22187506 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739695, 'mtr_portfolio_id': 22187506, 'created_at': datetime.datetime(2025, 4, 19, 5, 48, 1), 'result': '0.07108899316389108', 'result_long': None, 'result_double': None}] Qualite : 0.07108899316389108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22187506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187506_19-04-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22187506 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187506_19-04-2025_05_48_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187584, 'pht': 3726}}" where mtr_portfolio_id = 22187506 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22187506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999383, 0.07108899316389108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187506_19-04-2025_05_48_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187584, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22188563 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739696, 'mtr_portfolio_id': 22188563, 'created_at': datetime.datetime(2025, 4, 19, 5, 48, 29), 'result': '0.07267464703260423', 'result_long': None, 'result_double': None}] Qualite : 0.07267464703260423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22188563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188563_19-04-2025_05_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22188563 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188563_19-04-2025_05_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188641, 'pht': 3726}}" where mtr_portfolio_id = 22188563 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22188563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999384, 0.07267464703260423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188563_19-04-2025_05_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188641, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22189239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739697, 'mtr_portfolio_id': 22189239, 'created_at': datetime.datetime(2025, 4, 19, 5, 49), 'result': '0.05010547651220417', 'result_long': None, 'result_double': None}] Qualite : 0.05010547651220417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22189239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189239_19-04-2025_05_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22189239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189239_19-04-2025_05_49_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22189294, 'pht': 3726}}" where mtr_portfolio_id = 22189239 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22189239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999385, 0.05010547651220417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189239_19-04-2025_05_49_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22189294, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22190456 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739698, 'mtr_portfolio_id': 22190456, 'created_at': datetime.datetime(2025, 4, 19, 5, 49, 2), 'result': '0.06256756493130673', 'result_long': None, 'result_double': None}] Qualite : 0.06256756493130673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22190456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22190456_19-04-2025_05_49_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22190456 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22190456_19-04-2025_05_49_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22190460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22190461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22190462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22190463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22190464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22190465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22190466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22190467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22190468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22190469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22190470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22190471, 'pht': 3726}}" where mtr_portfolio_id = 22190456 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22190456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999386, 0.06256756493130673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22190456_19-04-2025_05_49_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22190460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22190461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22190462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22190463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22190464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22190465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22190466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22190467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22190468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22190469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22190470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22190471, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22191274 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2736516, 'mtr_portfolio_id': 22191274, 'created_at': datetime.datetime(2025, 4, 19, 0, 9, 45), 'result': '0.06054346581106074', 'result_long': None, 'result_double': None}] Qualite : 0.06054346581106074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22191274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22191274_19-04-2025_00_09_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22191274 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22191274_19-04-2025_00_09_45.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22191430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22191431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22191432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22191433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22191434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22191435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22191436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22191437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22191438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22191439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22191440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22191441, 'pht': 3726}}" where mtr_portfolio_id = 22191274 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22191274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999387, 0.06054346581106074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22191274_19-04-2025_00_09_45.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22191430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22191431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22191432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22191433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22191434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22191435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22191436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22191437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22191438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22191439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22191440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22191441, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22195476 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739700, 'mtr_portfolio_id': 22195476, 'created_at': datetime.datetime(2025, 4, 19, 5, 49, 28), 'result': '0.0477845788686051', 'result_long': None, 'result_double': None}] Qualite : 0.0477845788686051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22195476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_19-04-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22195476 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_19-04-2025_05_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, 'pht': 3726}}" where mtr_portfolio_id = 22195476 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22195476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999388, 0.0477845788686051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_19-04-2025_05_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22195829 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2736859, 'mtr_portfolio_id': 22195829, 'created_at': datetime.datetime(2025, 4, 18, 14, 2, 49), 'result': '0.041465983159170966', 'result_long': None, 'result_double': None}] Qualite : 0.041465983159170966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22195829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22195829 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, 'pht': 3726}}" where mtr_portfolio_id = 22195829 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22195829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999389, 0.041465983159170966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22196748 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2736960, 'mtr_portfolio_id': 22196748, 'created_at': datetime.datetime(2025, 4, 18, 14, 16, 56), 'result': '0.059163368933889265', 'result_long': None, 'result_double': None}] Qualite : 0.059163368933889265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22196748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22196748 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, 'pht': 3726}}" where mtr_portfolio_id = 22196748 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22196748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999390, 0.059163368933889265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22197824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737046, 'mtr_portfolio_id': 22197824, 'created_at': datetime.datetime(2025, 4, 18, 14, 32, 29), 'result': '0.048455897723622465', 'result_long': None, 'result_double': None}] Qualite : 0.048455897723622465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22197824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22197824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, 'pht': 3726}}" where mtr_portfolio_id = 22197824 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22197824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999391, 0.048455897723622465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_32_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22198831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737149, 'mtr_portfolio_id': 22198831, 'created_at': datetime.datetime(2025, 4, 18, 14, 48, 59), 'result': '0.055954116611333524', 'result_long': None, 'result_double': None}] Qualite : 0.055954116611333524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22198831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198831_18-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22198831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198831_18-04-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22198883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198887, 'pht': 3726}}" where mtr_portfolio_id = 22198831 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22198831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999392, 0.055954116611333524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198831_18-04-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22198883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198887, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22199667 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737189, 'mtr_portfolio_id': 22199667, 'created_at': datetime.datetime(2025, 4, 18, 15, 4, 58), 'result': '0.07310475255820241', 'result_long': None, 'result_double': None}] Qualite : 0.07310475255820241 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22199667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199667_18-04-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22199667 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199667_18-04-2025_15_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22199708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199719, 'pht': 3726}}" where mtr_portfolio_id = 22199667 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22199667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999393, 0.07310475255820241, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199667_18-04-2025_15_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22199708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199719, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22200840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737270, 'mtr_portfolio_id': 22200840, 'created_at': datetime.datetime(2025, 4, 18, 15, 18, 58), 'result': '0.054895072840392765', 'result_long': None, 'result_double': None}] Qualite : 0.054895072840392765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22200840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22200840_18-04-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22200840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22200840_18-04-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22200887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22200888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22200889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22200890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22200891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22200892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22200893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22200894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22200895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22200896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22200897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22200898, 'pht': 3726}}" where mtr_portfolio_id = 22200840 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22200840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999394, 0.054895072840392765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22200840_18-04-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22200887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22200888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22200889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22200890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22200891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22200892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22200893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22200894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22200895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22200896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22200897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22200898, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22201618 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737310, 'mtr_portfolio_id': 22201618, 'created_at': datetime.datetime(2025, 4, 18, 15, 34, 59), 'result': '0.04907295047098356', 'result_long': None, 'result_double': None}] Qualite : 0.04907295047098356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22201618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22201618_18-04-2025_15_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22201618 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22201618_18-04-2025_15_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22201667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22201668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22201669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22201670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22201671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22201672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22201673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22201674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22201675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22201676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22201677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22201678, 'pht': 3726}}" where mtr_portfolio_id = 22201618 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22201618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999395, 0.04907295047098356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22201618_18-04-2025_15_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22201667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22201668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22201669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22201670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22201671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22201672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22201673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22201674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22201675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22201676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22201677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22201678, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22202621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737375, 'mtr_portfolio_id': 22202621, 'created_at': datetime.datetime(2025, 4, 18, 15, 46, 59), 'result': '0.05862152506475679', 'result_long': None, 'result_double': None}] Qualite : 0.05862152506475679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22202621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22202621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, 'pht': 3726}}" where mtr_portfolio_id = 22202621 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22202621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999396, 0.05862152506475679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22203468 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737426, 'mtr_portfolio_id': 22203468, 'created_at': datetime.datetime(2025, 4, 18, 16, 2, 30), 'result': '0.03836131747358875', 'result_long': None, 'result_double': None}] Qualite : 0.03836131747358875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22203468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22203468 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, 'pht': 3726}}" where mtr_portfolio_id = 22203468 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22203468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999397, 0.03836131747358875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22204432 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737505, 'mtr_portfolio_id': 22204432, 'created_at': datetime.datetime(2025, 4, 18, 16, 20, 59), 'result': '0.06783880925434066', 'result_long': None, 'result_double': None}] Qualite : 0.06783880925434066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22204432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22204432 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_21_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, 'pht': 3726}}" where mtr_portfolio_id = 22204432 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22204432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999398, 0.06783880925434066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_21_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22205673 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737568, 'mtr_portfolio_id': 22205673, 'created_at': datetime.datetime(2025, 4, 18, 16, 34, 59), 'result': '0.051352452015660736', 'result_long': None, 'result_double': None}] Qualite : 0.051352452015660736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22205673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22205673_18-04-2025_16_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22205673 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22205673_18-04-2025_16_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22205738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22205739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22205740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22205741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22205742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22205743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22205744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22205745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22205746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22205747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22205748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22205749, 'pht': 3726}}" where mtr_portfolio_id = 22205673 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22205673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999399, 0.051352452015660736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22205673_18-04-2025_16_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22205738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22205739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22205740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22205741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22205742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22205743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22205744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22205745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22205746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22205747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22205748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22205749, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22206611 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737627, 'mtr_portfolio_id': 22206611, 'created_at': datetime.datetime(2025, 4, 18, 16, 49), 'result': '0.07288796202004338', 'result_long': None, 'result_double': None}] Qualite : 0.07288796202004338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22206611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22206611_18-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22206611 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22206611_18-04-2025_16_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22206643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22206644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22206645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22206646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22206647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22206648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22206649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22206650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22206651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22206652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22206653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22206654, 'pht': 3726}}" where mtr_portfolio_id = 22206611 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22206611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999400, 0.07288796202004338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22206611_18-04-2025_16_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22206643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22206644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22206645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22206646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22206647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22206648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22206649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22206650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22206651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22206652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22206653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22206654, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22207503 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737672, 'mtr_portfolio_id': 22207503, 'created_at': datetime.datetime(2025, 4, 18, 17, 2, 29), 'result': '0.054612827444690905', 'result_long': None, 'result_double': None}] Qualite : 0.054612827444690905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22207503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22207503_18-04-2025_17_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22207503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22207503_18-04-2025_17_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22207585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22207586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22207587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22207588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22207589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22207590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22207591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22207592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22207593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22207594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22207595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22207596, 'pht': 3726}}" where mtr_portfolio_id = 22207503 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22207503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999401, 0.054612827444690905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22207503_18-04-2025_17_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22207585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22207586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22207587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22207588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22207589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22207590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22207591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22207592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22207593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22207594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22207595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22207596, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22208392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737736, 'mtr_portfolio_id': 22208392, 'created_at': datetime.datetime(2025, 4, 18, 17, 18, 59), 'result': '0.05917896761445664', 'result_long': None, 'result_double': None}] Qualite : 0.05917896761445664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22208392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22208392_18-04-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22208392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22208392_18-04-2025_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22208398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22208399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22208400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22208401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22208402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22208403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22208404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22208405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22208407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22208408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22208409, 'pht': 3726}}" where mtr_portfolio_id = 22208392 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22208392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999402, 0.05917896761445664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22208392_18-04-2025_17_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22208398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22208399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22208400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22208401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22208402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22208403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22208404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22208405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22208407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22208408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22208409, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22209371 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737796, 'mtr_portfolio_id': 22209371, 'created_at': datetime.datetime(2025, 4, 18, 18, 2, 58), 'result': '0.07782438873692392', 'result_long': None, 'result_double': None}] Qualite : 0.07782438873692392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22209371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209371_18-04-2025_18_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22209371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209371_18-04-2025_18_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209466, 'pht': 3726}}" where mtr_portfolio_id = 22209371 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22209371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999403, 0.07782438873692392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209371_18-04-2025_18_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209466, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22211758 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2737982, 'mtr_portfolio_id': 22211758, 'created_at': datetime.datetime(2025, 4, 18, 18, 18, 58), 'result': '0.0537094443027585', 'result_long': None, 'result_double': None}] Qualite : 0.0537094443027585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22211758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211758_18-04-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22211758 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211758_18-04-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211775, 'pht': 3726}}" where mtr_portfolio_id = 22211758 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22211758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999404, 0.0537094443027585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211758_18-04-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211775, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22212653 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738038, 'mtr_portfolio_id': 22212653, 'created_at': datetime.datetime(2025, 4, 18, 18, 32, 57), 'result': '0.05196606881973272', 'result_long': None, 'result_double': None}] Qualite : 0.05196606881973272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22212653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212653_18-04-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22212653 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212653_18-04-2025_18_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22212755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212766, 'pht': 3726}}" where mtr_portfolio_id = 22212653 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212653 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999405, 0.05196606881973272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212653_18-04-2025_18_32_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22212755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212766, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22213700 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738117, 'mtr_portfolio_id': 22213700, 'created_at': datetime.datetime(2025, 4, 18, 18, 51), 'result': '0.051330127360020225', 'result_long': None, 'result_double': None}] Qualite : 0.051330127360020225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22213700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22213700_18-04-2025_18_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22213700 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22213700_18-04-2025_18_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22213742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22213743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22213744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22213745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22213746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22213747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22213748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22213749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22213750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22213752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22213753, 'pht': 3726}}" where mtr_portfolio_id = 22213700 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22213700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999406, 0.051330127360020225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22213700_18-04-2025_18_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22213742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22213743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22213744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22213745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22213746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22213747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22213748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22213749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22213750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22213752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22213753, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22214541 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738164, 'mtr_portfolio_id': 22214541, 'created_at': datetime.datetime(2025, 4, 18, 19, 3), 'result': '0.08054098621696892', 'result_long': None, 'result_double': None}] Qualite : 0.08054098621696892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22214541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22214541_18-04-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22214541 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22214541_18-04-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22214586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22214587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22214588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22214589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22214590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22214591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22214592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22214593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22214594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22214595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22214596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22214597, 'pht': 3726}}" where mtr_portfolio_id = 22214541 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22214541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999407, 0.08054098621696892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22214541_18-04-2025_19_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22214586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22214587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22214588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22214589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22214590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22214591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22214592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22214593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22214594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22214595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22214596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22214597, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22215466 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738232, 'mtr_portfolio_id': 22215466, 'created_at': datetime.datetime(2025, 4, 18, 19, 18, 57), 'result': '0.0470651434728993', 'result_long': None, 'result_double': None}] Qualite : 0.0470651434728993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22215466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215466_18-04-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22215466 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215466_18-04-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22215500, 'pht': 3726}}" where mtr_portfolio_id = 22215466 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22215466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999408, 0.0470651434728993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215466_18-04-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22215500, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22216453 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738280, 'mtr_portfolio_id': 22216453, 'created_at': datetime.datetime(2025, 4, 18, 19, 32, 58), 'result': '0.05639125259489681', 'result_long': None, 'result_double': None}] Qualite : 0.05639125259489681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22216453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216453_18-04-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22216453 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216453_18-04-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22216514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22216515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22216516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22216517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22216518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22216519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22216520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22216521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22216522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22216523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22216524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22216525, 'pht': 3726}}" where mtr_portfolio_id = 22216453 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22216453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999409, 0.05639125259489681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216453_18-04-2025_19_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22216514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22216515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22216516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22216517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22216518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22216519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22216520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22216521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22216522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22216523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22216524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22216525, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22217260 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738340, 'mtr_portfolio_id': 22217260, 'created_at': datetime.datetime(2025, 4, 18, 19, 48, 56), 'result': '0.04851196858311959', 'result_long': None, 'result_double': None}] Qualite : 0.04851196858311959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22217260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217260_18-04-2025_19_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22217260 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217260_18-04-2025_19_48_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217335, 'pht': 3726}}" where mtr_portfolio_id = 22217260 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22217260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999410, 0.04851196858311959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217260_18-04-2025_19_48_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217335, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22218492 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738409, 'mtr_portfolio_id': 22218492, 'created_at': datetime.datetime(2025, 4, 18, 20, 2, 59), 'result': '0.060365588792872474', 'result_long': None, 'result_double': None}] Qualite : 0.060365588792872474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22218492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218492_18-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22218492 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218492_18-04-2025_20_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22218535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218540, 'pht': 3726}}" where mtr_portfolio_id = 22218492 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22218492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999411, 0.060365588792872474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218492_18-04-2025_20_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22218535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218540, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22219511 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738501, 'mtr_portfolio_id': 22219511, 'created_at': datetime.datetime(2025, 4, 18, 20, 16, 59), 'result': '0.07361303221721496', 'result_long': None, 'result_double': None}] Qualite : 0.07361303221721496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22219511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219511_18-04-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22219511 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219511_18-04-2025_20_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219585, 'pht': 3726}}" where mtr_portfolio_id = 22219511 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22219511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999412, 0.07361303221721496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219511_18-04-2025_20_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219585, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22220431 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738539, 'mtr_portfolio_id': 22220431, 'created_at': datetime.datetime(2025, 4, 18, 20, 32, 59), 'result': '0.06285345098052599', 'result_long': None, 'result_double': None}] Qualite : 0.06285345098052599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22220431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220431_18-04-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22220431 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220431_18-04-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22220435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220446, 'pht': 3726}}" where mtr_portfolio_id = 22220431 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22220431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999413, 0.06285345098052599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220431_18-04-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22220435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220446, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22220923 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738583, 'mtr_portfolio_id': 22220923, 'created_at': datetime.datetime(2025, 4, 18, 21, 4, 59), 'result': '0.04839277470887467', 'result_long': None, 'result_double': None}] Qualite : 0.04839277470887467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22220923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220923_18-04-2025_21_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22220923 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220923_18-04-2025_21_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22220953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220963, 'pht': 3726}}" where mtr_portfolio_id = 22220923 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22220923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999414, 0.04839277470887467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22220923_18-04-2025_21_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22220952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22220953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22220954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22220955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22220956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22220957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22220958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22220959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22220960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22220961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22220962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22220963, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22223035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738730, 'mtr_portfolio_id': 22223035, 'created_at': datetime.datetime(2025, 4, 18, 21, 18, 30), 'result': '0.04340420192966468', 'result_long': None, 'result_double': None}] Qualite : 0.04340420192966468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22223035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22223035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, 'pht': 3726}}" where mtr_portfolio_id = 22223035 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22223035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999415, 0.04340420192966468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22225216 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738887, 'mtr_portfolio_id': 22225216, 'created_at': datetime.datetime(2025, 4, 18, 22, 4, 58), 'result': '0.06508563084216071', 'result_long': None, 'result_double': None}] Qualite : 0.06508563084216071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22225216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_22_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22225216 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_22_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22225217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22225218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22225219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22225220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22225221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22225222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22225223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22225224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22225225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22225226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22225227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22225228, 'pht': 3726}}" where mtr_portfolio_id = 22225216 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22225216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999416, 0.06508563084216071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_22_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22225217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22225218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22225219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22225220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22225221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22225222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22225223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22225224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22225225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22225226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22225227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22225228, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22228334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2739090, 'mtr_portfolio_id': 22228334, 'created_at': datetime.datetime(2025, 4, 18, 23, 16, 59), 'result': '0.06344696534426678', 'result_long': None, 'result_double': None}] Qualite : 0.06344696534426678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22228334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228334_18-04-2025_23_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22228334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228334_18-04-2025_23_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228400, 'pht': 3726}}" where mtr_portfolio_id = 22228334 and dashboard_run_id = 1737776 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22228334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9999417, 0.06344696534426678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22228334_18-04-2025_23_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22228389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22228390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22228391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22228392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22228393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22228394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22228395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22228396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22228397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22228398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22228399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22228400, '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 (22162948,22163465,22163930,22164320,22165302,22165696,22166003,22166799,22167282,22167840,22168535,22168817,22169287,22169736,22170221,22171119,22171362,22171631,22172154,22172466,22173041,22173579,22173940,22174430,22175155,22175907,22176494,22177264,22178039,22178776,22181228,22181746,22182399,22182983,22183721,22185830,22187506,22188563,22189239,22190456,22191274,22195476,22195829,22196748,22197824,22198831,22199667,22200840,22201618,22202621,22203468,22204432,22205673,22206611,22207503,22208392,22209371,22211758,22212653,22213700,22214541,22215466,22216453,22217260,22218492,22219511,22220431,22220923,22223035,22225216,22228334) result : ((1350910820,), (1350910849,), (1350910875,), (1350910903,), (1350911027,), (1350911032,), (1350911035,), (1350911075,), (1350911081,), (1350911085,), (1350911087,), (1350911089,), (1350911113,), (1350911116,), (1350911117,), (1350911118,), (1350911119,), (1350911154,), (1350911159,), (1350911164,), (1350911167,), (1350911171,), (1350911206,), (1350911209,), (1350911212,), (1350911216,), (1350911218,), (1350911238,), (1350911242,), (1350911244,), (1350911248,), (1350911343,), (1350911353,), (1350911367,), (1350911370,), (1350911385,), (1350911405,), (1350911514,), (1350911518,), (1350911521,), (1350911524,), (1350911528,), (1350911570,), (1350911573,), (1350911576,), (1350911581,), (1350911588,), (1350911655,), (1350911662,), (1350911666,), (1350911670,), (1350911673,), (1350911677,), (1350911719,), (1350911721,), (1350911724,), (1350911944,), (1350911969,), (1350911993,), (1350912017,), (1350912043,), (1350912064,), (1350912175,), (1350912210,), (1350912239,), (1350912271,), (1350912294,), (1350912330,), (1350912439,), (1350912444,), (1350912447,), (1350912451,), (1350912509,), (1350912492,), (1350912496,), (1350912500,), (1350912504,), (1350912547,), (1350912549,), (1350912551,), (1350912553,), (1350912558,), (1350912562,), (1350912604,), (1350912608,), (1350912612,), (1350912703,), (1350912705,), (1350912716,), (1350912725,), (1350912768,), (1350912772,), (1350912776,), (1350912847,), (1350912850,), (1350912853,), (1350912855,), (1350912858,), (1350912870,), (1350912926,), (1350912930,), (1350912939,), (1350912978,), (1350912982,), (1350912986,), (1350912989,), (1350912993,), (1350913025,), (1350913027,), (1350913030,), (1350913033,), (1350913042,), (1350913072,), (1350913077,), (1350913080,), (1350913083,), (1350913232,), (1350913235,), (1350913238,), (1350913241,), (1350913277,), (1350913280,), (1350913283,), (1350913286,), (1350913580,), (1350913476,), (1350913521,), (1350913551,), (1350913875,), (1350913898,), (1350914521,), (1350914546,), (1350914570,), (1350914598,), (1350914899,), (1350914900,), (1350914903,), (1350914928,), (1350914955,), (1350914958,), (1350915019,), (1350915023,), (1350915031,), (1350915088,), (1350915094,), (1350915102,), (1350915105,), (1350915109,), (1350915128,), (1350915130,), (1350915133,), (1350915136,), (1350915140,), (1350915187,), (1350915193,), (1350915200,), (1350915203,), (1350915213,), (1350915296,), (1350915299,), (1350915317,), (1350915320,), (1350915327,), (1350915333,), (1350915336,), (1350915367,), (1350915369,), (1350915370,), (1350915371,), (1350915372,), (1350915376,), (1350915401,), (1350915404,), (1350915405,), (1350915408,), (1350915439,), (1350915441,), (1350915443,), (1350915489,), (1350915474,), (1350915478,), (1350915485,), (1350915486,), (1350915533,), (1350915538,), (1350915541,), (1350915570,), (1350915573,), (1350915626,), (1350915634,), (1350915638,), (1350915641,), (1350915668,), (1350915673,), (1350915683,), (1350915684,), (1350915716,), (1350915721,), (1350915725,), (1350915739,), (1350915755,), (1350915763,), (1350915805,), (1350915810,), (1350915813,), (1350915849,), (1350915852,), (1350915856,), (1350915860,), (1350915865,), (1350915902,), (1350915905,), (1350915907,), (1350915909,), (1350915912,), (1350915915,), (1350915954,), (1350915958,), (1350915959,), (1350916001,), (1350916011,), (1350916014,), (1350916016,), (1350916019,), (1350916027,), (1350916057,), (1350916059,), (1350916061,), (1350916065,), (1350916083,), (1350916087,), (1350916091,), (1350916096,), (1350916102,), (1350916107,), (1350916833,), (1350916865,), (1350916893,), (1350916924,), (1350916953,), (1350917046,), (1350917071,), (1350917095,), (1350917503,), (1350920744,), (1350920746,), (1350920747,), (1350920756,), (1350920760,), (1350920774,), (1350920786,), (1350920803,), (1350920806,), (1350920831,), (1350920832,), (1350920833,), (1350920834,), (1350920856,), (1350920858,), (1350920859,), (1350920860,), (1350920887,), (1350920890,), (1350920892,), (1350920894,), (1350920896,), (1350920911,), (1350920913,), (1350920916,), (1350920919,), (1350920922,), (1350920943,), (1350920945,), (1350920952,), (1350920956,), (1350920960,), (1350920963,), (1350920975,), (1350920977,), (1350920980,), (1350921009,), (1350921010,), (1350921011,), (1350921017,), (1350921024,), (1350921029,), (1350921057,), (1350921059,), (1350921098,), (1350921101,), (1350921145,), (1350921147,), (1350921150,), (1350921152,), (1350921184,), (1350921188,), (1350921190,), (1350921221,), (1350921225,), (1350921227,), (1350921230,), (1350921233,), (1350921269,), (1350921259,), (1350921263,), (1350921299,), (1350921303,), (1350921307,), (1350921310,), (1350921314,), (1350921318,), (1350921349,), (1350921353,), (1350921355,), (1350921356,), (1350921383,), (1350921387,), (1350921391,), (1350921394,), (1350921399,), (1350921402,), (1350921442,), (1350921444,), (1350921445,), (1350921446,), (1350921447,), (1350921479,), (1350921480,), (1350921481,), (1350921482,), (1350921502,), (1350921505,), (1350921508,), (1350921510,), (1350921513,), (1350921589,), (1350921613,), (1350921642,), (1350921668,), (1350921711,), (1350921738,), (1350921978,), (1350922003,), (1350922030,), (1350922057,), (1350922357,), (1350922384,), (1350922407,), (1350922440,), (1350922468,), (1350922493,), (1350922740,), (1350922766,), (1350922794,), (1350922821,), (1350922848,), (1350922876,), (1350922936,), (1350922940,), (1350922944,), (1350922948,), (1350922964,), (1350922965,), (1350922966,), (1350922967,), (1350922968,), (1350923429,), (1350923456,), (1350923483,), (1350923508,), (1350923531,), (1350923556,), (1350923813,), (1350923747,), (1350923790,), (1350923811,), (1350923910,), (1350923912,), (1350923913,), (1350923914,), (1350923916,), (1350923918,), (1350923941,), (1350923943,), (1350923945,), (1350923972,), (1350923974,), (1350923976,), (1350923978,), (1350923980,), (1350924009,), (1350924014,), (1350924016,), (1350924018,), (1350924044,), (1350924045,), (1350924046,), (1350924047,), (1350924049,), (1350924110,), (1350924120,), (1350924123,), (1350924402,), (1350924475,), (1350924518,), (1350924520,), (1350924524,), (1350924527,), (1350924918,), (1350924968,), (1350925016,), (1350925067,), (1350925116,), (1350925165,), (1350925407,), (1350925409,), (1350925426,), (1350925462,), (1350926032,), (1350926102,), (1350926177,), (1350926233,), (1350926649,), (1350926674,), (1350926706,), (1350926737,), (1350926755,), (1350926789,), (1350926791,), (1350926819,), (1350926848,), (1350926873,), (1350927103,), (1350927113,), (1350927128,), (1350927181,), (1350927183,), (1350927185,), (1350927187,), (1350927191,), (1350927868,), (1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,), (1350928906,), (1350928909,), (1350928914,), (1350928922,), (1350928926,), (1350928929,), (1350928931,), (1350928932,), (1350928933,), (1350929016,), (1350929029,), (1350929038,), (1350929044,), (1350929048,), (1350929052,), (1350929073,), (1350929074,), (1350929075,), (1350929096,), (1350929097,), (1350929117,), (1350929162,), (1350929167,), (1350929171,), (1350929175,), (1350929179,), (1350929201,), (1350929211,), (1350929213,), (1350929216,), (1350929235,), (1350929237,), (1350929241,), (1350929246,), (1350929251,), (1350929254,), (1350929270,), (1350929272,), (1350929274,), (1350929277,), (1350929280,), (1350929288,), (1350929298,), (1350929300,), (1350929302,), (1350929333,), (1350929338,), (1350929343,), (1350929347,), (1350929350,), (1350929427,), (1350929378,), (1350929379,), (1350929380,), (1350929403,), (1350929422,), (1350929450,), (1350929456,), (1350929458,), (1350929495,), (1350929501,), (1350929506,), (1350929509,), (1350929513,), (1350929515,), (1350929543,), (1350929546,), (1350929548,), (1350929551,), (1350929557,), (1350929593,), (1350929596,), (1350929598,), (1350929600,), (1350929634,), (1350929635,), (1350929636,), (1350929637,), (1350929639,), (1350929664,), (1350929667,), (1350929670,), (1350929673,), (1350929696,), (1350929702,), (1350929718,), (1350929724,), (1350929729,), (1350929758,), (1350929760,), (1350929762,), (1350929764,), (1350929802,), (1350929809,), (1350929811,), (1350929813,), (1350929817,), (1350929822,), (1350929880,), (1350929882,), (1350929884,), (1350929886,), (1350929925,), (1350929930,), (1350929933,), (1350929938,), (1350930056,), (1350930057,), (1350930109,), (1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,), (1350930473,), (1350930478,), (1350930479,), (1350930480,), (1350930482,), (1350930485,), (1350930625,), (1350930652,), (1350930681,), (1350930710,), (1350930732,), (1350930985,), (1350930992,), (1350931001,), (1350931020,), (1350931390,), (1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,), (1350934508,), (1350934512,), (1350934516,), (1350934519,), (1350934523,), (1350934592,), (1350934621,), (1350934625,), (1350934629,), (1350934636,), (1350934651,), (1350934689,), (1350934691,), (1350934692,), (1350934693,), (1350934735,), (1350934741,), (1350934745,), (1350934749,), (1350934755,), (1350934799,), (1350934801,), (1350934804,), (1350934864,), (1350934849,), (1350934853,), (1350934856,), (1350934860,), (1350934896,), (1350934899,), (1350934901,), (1350934903,), (1350934905,), (1350934908,), (1350934960,), (1350934962,), (1350934963,), (1350934965,), (1350935016,), (1350935020,), (1350935023,), (1350935027,), (1350935032,), (1350935074,), (1350935076,), (1350935084,), (1350935089,), (1350935094,), (1350935097,), (1350935134,), (1350935137,), (1350935139,), (1350935141,), (1350935184,), (1350935189,), (1350935193,), (1350935199,), (1350935211,), (1350935218,), (1350935254,), (1350935255,), (1350935256,), (1350935257,), (1350935259,), (1350935284,), (1350935286,), (1350935289,), (1350935319,), (1350935320,), (1350935321,), (1350935324,), (1350935327,), (1350935331,), (1350935353,), (1350935357,), (1350935364,), (1350935371,), (1350935397,), (1350935398,), (1350935399,), (1350935400,), (1350935428,), (1350935430,), (1350935435,), (1350935441,), (1350935444,), (1350935447,), (1350935471,), (1350935472,), (1350935473,), (1350935474,), (1350935476,), (1350935521,), (1350935524,), (1350935526,), (1350935530,), (1350935533,), (1350935566,), (1350935563,), (1350935565,), (1350935597,), (1350935599,), (1350935602,), (1350935603,), (1350935628,), (1350935629,), (1350935630,), (1350935631,), (1350935682,), (1350935687,), (1350935689,), (1350935729,), (1350935731,), (1350935767,), (1350935770,), (1350935774,), (1350935777,), (1350935810,), (1350935811,), (1350935812,), (1350935813,), (1350935816,), (1350935819,), (1350935858,), (1350935864,), (1350935865,), (1350935868,), (1350935906,), (1350935910,), (1350935911,), (1350935912,), (1350935914,), (1350935967,), (1350935969,), (1350935970,), (1350935971,), (1350935972,), (1350935974,), (1350936003,), (1350936006,), (1350936008,), (1350936009,), (1350936047,), (1350936051,), (1350936052,), (1350936053,), (1350936055,), (1350936093,), (1350936120,), (1350936122,), (1350936123,), (1350936125,), (1350936126,), (1350936161,), (1350936165,), (1350936200,), (1350936203,), (1350936204,), (1350936213,), (1350936220,), (1350936300,), (1350936280,), (1350936285,), (1350936286,), (1350936297,), (1350936349,), (1350936358,), (1350936363,), (1350936365,), (1350936368,), (1350936388,), (1350936420,), (1350936463,), (1350936498,), (1350936499,), (1350936500,), (1350936501,), (1350936503,), (1350936526,), (1350936530,), (1350936531,), (1350936533,), (1350936535,), (1350936565,), (1350936567,), (1350936568,), (1350936591,), (1350936593,), (1350936594,), (1350936609,), (1350936611,), (1350936612,), (1350936613,), (1350936614,), (1350936631,), (1350936633,), (1350936634,), (1350936635,), (1350936637,), (1350936649,), (1350936651,), (1350936652,), (1350936703,), (1350936710,), (1350936711,), (1350936712,), (1350936714,), (1350937518,), (1350937572,), (1350937626,), (1350937695,), (1350937747,), (1350937804,), (1350938112,), (1350938180,), (1350938628,), (1350938457,), (1350938536,), (1350938579,), (1350938603,), (1350939073,), (1350939104,), (1350939143,), (1350939204,), (1350939280,), (1350939322,), (1350939572,), (1350939585,), (1350939586,), (1350939603,), (1350939619,), (1350939915,), (1350939941,), (1350940361,), (1350940386,), (1350940413,), (1350940436,), (1350940754,), (1350940782,), (1350940807,), (1350940824,), (1350940828,), (1350940918,), (1350940943,), (1350940968,), (1350940990,), (1350941016,), (1350941120,), (1350941130,), (1350941170,), (1350941172,), (1350941173,), (1350941224,), (1350941227,), (1350941229,), (1350941231,), (1350941233,), (1350941236,), (1350941271,), (1350941273,), (1350941274,), (1350941275,), (1350941277,), (1350941322,), (1350944749,), (1350944722,), (1350945256,), (1350945281,), (1350945308,), (1350945309,), (1350945859,), (1350945860,), (1350945861,), (1350945863,), (1350945864,), (1350945883,), (1350945885,), (1350945887,), (1350945890,), (1350945893,), (1350945894,), (1350945912,), (1350945919,), (1350945922,), (1350945943,), (1350945973,), (1350945974,), (1350945980,), (1350945985,), (1350945986,), (1350946007,), (1350946008,), (1350946009,), (1350946010,), (1350946011,), (1350946013,), (1350946034,), (1350946037,), (1350946038,), (1350946039,), (1350946041,), (1350946043,), (1350946137,), (1350946134,), (1350946136,), (1350946153,), (1350946168,), (1350946170,), (1350946171,), (1350946219,), (1350946221,), (1350946222,), (1350946261,), (1350946264,), (1350946266,), (1350946287,), (1350946288,), (1350946289,), (1350946306,), (1350946307,), (1350946308,), (1350946309,), (1350946310,), (1350946334,), (1350946336,), (1350946337,), (1350946350,), (1350946351,), (1350946352,), (1350946353,), (1350946355,), (1350946377,), (1350946380,), (1350946384,), (1350946385,), (1350946387,), (1350946409,), (1350946411,), (1350946412,), (1350946445,), (1350946446,), (1350946447,), (1350946448,), (1350946449,), (1350946452,), (1350946484,), (1350946478,), (1350946480,), (1350946482,), (1350946509,), (1350946510,), (1350946516,), (1350946517,), (1350946520,), (1350946523,), (1350946547,), (1350946552,), (1350946554,), (1350946588,), (1350946591,), (1350946597,), (1350946602,), (1350946633,), (1350946635,), (1350946637,), (1350946639,), (1350946643,), (1350946645,), (1350946674,), (1350946677,), (1350946678,), (1350946679,), (1350946680,), (1350946700,), (1350946703,), (1350946734,), (1350946735,), (1350946736,), (1350946737,), (1350946775,), (1350946777,), (1350946780,), (1350946783,), (1350946818,), (1350946819,), (1350946821,), (1350946822,), (1350946823,), (1350946850,), (1350946852,), (1350946854,), (1350946887,), (1350946889,), (1350946890,), (1350946898,), (1350946903,), (1350946906,), (1350946936,), (1350946938,), (1350946940,), (1350946943,), (1350946976,), (1350946983,), (1350946988,), (1350946989,), (1350947015,), (1350947018,), (1350947020,), (1350947022,), (1350947025,), (1350947062,), (1350947053,), (1350947059,), (1350947060,), (1350947061,), (1350947086,), (1350947088,), (1350947090,), (1350947218,), (1350947219,), (1350947220,), (1350947221,), (1350947224,), (1350947249,), (1350947266,), (1350947268,), (1350947271,), (1350947273,), (1350947277,), (1350947297,), (1350947298,), (1350947299,), (1350947300,), (1350947330,), (1350947332,), (1350947334,), (1350947336,), (1350947338,), (1350947341,), (1350947368,), (1350947371,), (1350947372,), (1350947373,), (1350947418,), (1350947420,), (1350947422,), (1350947424,), (1350947426,), (1350947429,), (1350947457,), (1350947458,), (1350947459,), (1350947460,), (1350947461,), (1350947464,), (1350947502,), (1350947505,), (1350947507,), (1350947509,), (1350947547,), (1350947549,), (1350947550,), (1350947551,), (1350947553,), (1350948263,), (1350948313,), (1350948360,), (1350948805,), (1350949336,), (1350949399,), (1350950078,), (1350950445,), (1350950469,), (1350950496,), (1350950501,), (1350950503,), (1350950505,), (1350950554,), (1350950577,), (1350950600,), (1350950623,), (1350950646,), (1350950850,), (1350950868,), (1350950877,), (1350950891,), (1350950915,), (1350950916,), (1350950934,), (1350950936,), (1350950937,), (1350950938,), (1350950940,), (1350950959,), (1350950961,), (1350950962,), (1350950963,), (1350950964,), (1350951003,), (1350951015,), (1350951016,), (1350951018,), (1350951020,), (1350951042,), (1350951044,), (1350951046,), (1350951047,), (1350951077,), (1350951079,), (1350951080,), (1350951082,), (1350951121,), (1350951124,), (1350951126,), (1350951129,), (1350951132,), (1350951134,), (1350951174,), (1350951175,), (1350951176,), (1350951177,), (1350951180,), (1350951183,), (1350951213,), (1350951215,), (1350951218,), (1350951220,), (1350951223,), (1350951259,), (1350951254,), (1350951257,), (1350951297,), (1350951298,), (1350951299,), (1350951300,), (1350951302,), (1350951304,), (1350951344,), (1350951350,), (1350951358,), (1350951363,), (1350951365,), (1350951397,), (1350951398,), (1350951399,), (1350951400,), (1350951401,), (1350951445,), (1350951452,), (1350951458,), (1350951463,), (1350951508,), (1350951509,), (1350951510,), (1350951511,), (1350951514,), (1350951517,), (1350951553,), (1350951556,), (1350951558,), (1350951560,), (1350951572,), (1350951607,), (1350951703,), (1350951757,), (1350951796,), (1350951798,), (1350951801,), (1350951830,), (1350951832,), (1350951833,), (1350951834,), (1350951835,), (1350951838,), (1350951863,), (1350951865,), (1350951868,), (1350951870,), (1350951873,), (1350951898,), (1350951901,), (1350951902,), (1350951905,), (1350951907,), (1350951961,), (1350951948,), (1350951951,), (1350951952,), (1350951955,), (1350951988,), (1350951990,), (1350951992,), (1350952000,), (1350952004,), (1350952008,), (1350952039,), (1350952040,), (1350952041,), (1350952063,), (1350952065,), (1350952066,), (1350952067,), (1350952069,), (1350952071,), (1350952100,), (1350952102,), (1350952103,), (1350952104,), (1350952105,), (1350952139,), (1350952141,), (1350952167,), (1350952170,), (1350952173,), (1350952176,), (1350952180,), (1350952215,), (1350952216,), (1350952217,), (1350952218,), (1350952249,), (1350952250,), (1350952253,), (1350952254,), (1350952256,), (1350952258,), (1350952275,), (1350952277,), (1350952284,), (1350952285,), (1350952321,), (1350952323,), (1350952324,), (1350952325,), (1350952326,), (1350952328,), (1350952350,), (1350952353,), (1350952521,), (1350952468,), (1350952513,), (1350952515,), (1350952518,), (1350952519,), (1350952541,), (1350952543,), (1350952544,), (1350952567,), (1350952569,), (1350952570,), (1350952596,), (1350952601,), (1350952602,), (1350952605,), (1350952607,), (1350952628,), (1350952630,), (1350952631,), (1350952660,), (1350952663,), (1350952664,), (1350952665,), (1350952690,), (1350952693,), (1350952694,), (1350952695,), (1350952736,), (1350952741,), (1350952773,), (1350952812,), (1350952813,), (1350952870,), (1350952872,), (1350952873,), (1350952874,), (1350952876,), (1350953573,), (1350953627,), (1350953667,), (1350953697,), (1350953858,), (1350953906,), (1350953954,), (1350954009,), (1350954567,), (1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,), (1350958194,), (1350958231,), (1350958257,), (1350958280,), (1350958281,), (1350958303,), (1350958326,), (1350958337,), (1350958512,), (1350958539,), (1350958562,), (1350958565,), (1350958567,), (1350958771,), (1350958784,), (1350958790,), (1350958792,), (1350958828,), (1350958912,), (1350958923,), (1350958929,), (1350959108,), (1350959119,), (1350959135,), (1350959173,), (1350959194,), (1350959208,), (1350959418,), (1350959422,), (1350959432,), (1350959472,), (1350959477,), (1350959790,), (1350960226,), (1350960227,), (1350960382,), (1350960410,), (1350960414,), (1350960512,), (1350960523,), (1350960558,), (1350960585,), (1350960629,), (1350960653,), (1350960685,), (1350960687,), (1350960690,), (1350960693,), (1350960844,), (1350960857,), (1350960860,), (1350960862,), (1350960863,), (1350960866,), (1350960899,), (1350960904,), (1350960908,), (1350961109,), (1350960959,), (1350960985,), (1350961091,), (1350961100,), (1350961106,), (1350961136,), (1350961232,), (1350961257,), (1350961284,), (1350961300,), (1350961430,), (1350961432,), (1350961433,), (1350961434,), (1350961461,), (1350961487,), (1350961655,), (1350961700,), (1350961735,), (1350961982,), (1350962169,), (1350962171,), (1350962199,), (1350962200,), (1350962241,), (1350962244,), (1350962247,), (1350962250,), (1350962252,), (1350962289,), (1350962296,), (1350962298,), (1350962305,), (1350962314,), (1350962412,), (1350962415,), (1350962423,), (1350962443,), (1350962630,), (1350962631,), (1350962648,), (1350962676,), (1350962690,), (1350962693,), (1350962856,), (1350962869,), (1350962875,), (1350962897,), (1350962901,), (1350963111,), (1350963120,), (1350963152,), (1350963154,), (1350963156,), (1350963158,), (1350963261,), (1350963272,), (1350963276,), (1350963279,), (1350963375,), (1350963388,), (1350963389,), (1350963391,), (1350963535,), (1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,), (1350964351,), (1350964353,), (1350964392,), (1350964399,), (1350964401,), (1350964403,), (1350964409,), (1350964417,), (1350964457,), (1350964459,), (1350964461,), (1350964493,), (1350964496,), (1350964499,), (1350964535,), (1350964536,), (1350964538,), (1350964540,), (1350964541,), (1350964569,), (1350964574,), (1350964583,), (1350964590,), (1350964601,), (1350964605,), (1350965289,), (1350965299,), (1350965310,), (1350965329,), (1350965872,), (1350965799,), (1350966391,), (1350966418,), (1350966915,), (1350966917,), (1350966919,), (1350966921,), (1350966924,), (1350967091,), (1350967120,), (1350967147,), (1350967174,), (1350967191,), (1350967455,), (1350967470,), (1350967478,), (1350967481,), (1350967509,), (1350967511,), (1350967524,), (1350967527,), (1350967530,), (1350967555,), (1350967640,), (1350967710,), (1350967886,), (1350967888,), (1350967943,), (1350967948,), (1350967953,), (1350967977,), (1350968100,), (1350968103,), (1350968162,), (1350968201,), (1350968278,), (1350968292,), (1350968307,), (1350968495,), (1350968508,), (1350968511,), (1350968519,), (1350968533,), (1350968541,), (1350968597,), (1350968600,), (1350968603,), (1350968605,), (1350968725,), (1350968726,), (1350968728,), (1350968730,), (1350968731,), (1350968784,), (1350968801,), (1350968827,), (1350968852,), (1350968871,), (1350969061,), (1350969091,), (1350969105,), (1350969107,), (1350969109,), (1350969552,), (1350969385,), (1350969402,), (1350969432,), (1350969477,), (1350969502,), (1350969604,), (1350969605,), (1350969607,), (1350969609,), (1350969648,), (1350969652,), (1350969655,), (1350969658,), (1350969663,), (1350969678,), (1350969827,), (1350969833,), (1350969836,), (1350969838,), (1350969839,), (1350970028,), (1350970031,), (1350970034,), (1350970037,), (1350970040,), (1350970042,), (1350970186,), (1350970202,), (1350970211,), (1350970214,), (1350970270,), (1350970437,), (1350970447,), (1350970455,), (1350970458,), (1350970462,), (1350970464,), (1350970497,), (1350970499,), (1350970501,), (1350970503,), (1350970506,), (1350970513,), (1350970575,), (1350970653,), (1350970684,), (1350970687,), (1350970691,), (1350970745,), (1350970747,), (1350970755,), (1350970768,), (1350970772,), (1350970776,), (1350970811,), (1350970814,), (1350970821,), (1350970852,), (1350970853,), (1350970857,), (1350970861,), (1350970868,), (1350970880,), (1350971368,), (1350971445,), (1350971479,), (1350971483,), (1350971494,), (1350971505,), (1350971597,), (1350971598,), (1350971600,), (1350971699,), (1350971703,), (1350971740,), (1350971802,), (1350971841,), (1350972031,), (1350972003,), (1350972005,), (1350972008,), (1350972013,), (1350972026,), (1350972090,), (1350972092,), (1350972095,), (1350972214,), (1350972227,), (1350972229,), (1350972230,), (1350972233,), (1350972279,), (1350972282,), (1350972285,), (1350972288,), (1350972290,), (1350972452,), (1350972454,), (1350972456,), (1350972460,), (1350972486,), (1350972502,), (1350972536,), (1350972548,), (1350972551,), (1350972582,), (1350972584,), (1350972586,), (1350972588,), (1350972589,), (1350972592,), (1350972636,), (1350972642,), (1350972652,), (1350972658,), (1350972660,), (1350972805,), (1350972807,), (1350972809,), (1350972811,), (1350972813,), (1350972862,), (1350972864,), (1350972866,), (1350972868,), (1350972871,), (1350972921,), (1350972943,), (1350972972,), (1350973146,), (1350973149,), (1350973151,), (1350973153,), (1350973155,), (1350973179,), (1350973373,), (1350973404,), (1350973423,), (1350973452,), (1350973466,), (1350973498,), (1350973877,), (1350973914,), (1350973937,), (1350974349,), (1350974363,), (1350974389,), (1350974413,), (1350974441,), (1350974682,), (1350986268,), (1350986718,), (1350986735,), (1350986843,), (1350986858,), (1350986870,), (1350987061,), (1350987065,), (1350987068,), (1350987071,), (1350987125,), (1350987129,), (1350987132,), (1350987136,), (1350987143,), (1350987179,), (1350987192,), (1350987204,), (1350987235,), (1350987242,), (1350987247,), (1350987404,), (1350987408,), (1350987413,), (1350987497,), (1350987503,), (1350987508,), (1350987513,), (1350987516,), (1350987530,), (1350987542,), (1350987561,), (1350987566,), (1350987570,), (1350987614,), (1350987647,), (1350987677,), (1350987682,), (1350987687,), (1350987754,), (1350987771,), (1350987801,), (1350987830,), (1350988018,), (1350988050,), (1350988111,), (1350988134,), (1350988146,), (1350988151,), (1350988411,), (1350988415,), (1350988420,), (1350988425,), (1350988430,), (1350988492,), (1350988494,), (1350988496,), (1350988501,), (1350988721,), (1350988728,), (1350988731,), (1350988736,), (1350988741,), (1350988745,), (1350988817,), (1350988810,), (1350988813,), (1350989188,), (1350989191,), (1350989193,), (1350989241,), (1350989277,), (1350989511,), (1350989515,), (1350989518,), (1350989522,), (1350989527,), (1350989529,), (1350989604,), (1350989633,), (1350989634,), (1350989636,), (1350989639,), (1350989779,), (1350989798,), (1350989839,), (1350989882,), (1350989919,), (1350989939,), (1350990226,), (1350990254,), (1350990276,), (1350990353,), (1350990356,), (1350990359,), (1350990362,), (1350990369,), (1350990377,), (1350990462,), (1350990464,), (1350990467,), (1350990470,), (1350990473,), (1350990477,), (1350990825,), (1350990904,), (1350991091,), (1350991094,), (1350991098,), (1350991102,), (1350991122,), (1350991173,), (1350991190,), (1350991192,), (1350991194,), (1350991195,), (1350991200,), (1350991243,), (1350991246,), (1350991249,), (1350991252,), (1350991259,), (1350991264,), (1350991624,), (1350991679,), (1350991713,), (1350991751,), (1350991785,), (1350991825,), (1350992002,), (1350992058,), (1350992110,), (1350992141,), (1350992164,), (1350992227,), (1350992208,), (1350992213,), (1350992217,), (1350992548,), (1350992608,), (1350992675,), (1350992702,), (1350992746,), (1350992807,), (1350993054,), (1350993107,), (1350993158,), (1350993183,), (1350993391,), (1350993410,), (1350993421,), (1350993426,), (1350993456,), (1350993461,), (1350993512,), (1350993515,), (1350993518,), (1350993755,), (1350993782,), (1350993802,), (1350993838,), (1350993866,), (1350993897,), (1350994032,), (1350994040,), (1350994050,), (1350994061,), (1350994202,), (1350994218,), (1350994340,), (1350994345,), (1350994349,), (1350994405,), (1350994409,), (1350994427,), (1350994430,), (1350994434,), (1350994441,), (1350994575,), (1350994603,), (1350994629,), (1350994641,), (1350994648,), (1350994758,), (1350994765,), (1350994776,), (1350994780,), (1350994784,), (1350994919,), (1350994920,), (1350994922,), (1350994924,), (1350995156,), (1350995167,), (1350995178,), (1350995183,), (1350995185,), (1350995283,), (1350995302,), (1350995315,), (1350995319,), (1350995574,), (1350995653,), (1350995727,), (1350995803,), (1350995997,), (1350995981,), (1350995984,), (1350995987,), (1350995990,), (1350995993,), (1350996038,), (1350996042,), (1350996046,), (1350996052,), (1350996057,), (1350996063,), (1350996102,), (1350996111,), (1350996180,), (1350996417,), (1350996444,), (1350996493,), (1350996525,), (1350996549,), (1350996580,), (1350996713,), (1350996743,), (1350996771,), (1350996795,), (1350996800,), (1350996805,), (1350996875,), (1350996881,), (1350996884,), (1350996889,), (1350996974,), (1350996980,), (1350996983,), (1350996985,), (1350996989,), (1350997011,), (1350997235,), (1350997255,), (1350997265,), (1350997428,), (1350997432,), (1350997442,), (1350997517,), (1350997521,), (1350997524,), (1350997577,), (1350997580,), (1350997585,), (1350997589,), (1350997886,), (1350997888,), (1350997941,), (1350997946,), (1350997951,), (1350997955,), (1350997960,), (1350997965,), (1350998029,), (1350998033,), (1350998053,), (1350998079,), (1350998276,), (1350998287,), (1350998295,), (1350998434,), (1350998609,), (1350998640,), (1350998643,), (1350998704,), (1350998716,), (1350998724,), (1350998728,), (1350998793,), (1350998797,), (1350998801,), (1350998810,), (1350998884,), (1350998889,), (1350998921,), (1350998934,), (1350998943,), (1350998953,), (1350999069,), (1350999073,), (1350999078,), (1350999081,), (1350999133,), (1350999136,), (1350999146,), (1350999161,), (1350999163,), (1350999167,), (1350999228,), (1350999238,), (1350999254,), (1350999265,), (1350999268,), (1350999304,), (1350999305,), (1350999307,), (1350999309,), (1350999312,), (1350999410,), (1350999447,), (1350999476,), (1350999502,), (1350999530,), (1350999930,), (1350999972,), (1350999993,), (1351000000,), (1351000018,), (1351000032,), (1351000236,), (1351000286,), (1351000322,), (1351000361,), (1351000400,), (1351000658,), (1351000667,), (1351000674,), (1351000676,), (1351000688,), (1351000691,), (1351000729,), (1351000734,), (1351000737,), (1351000740,), (1351000945,), (1351000948,), (1351000972,), (1351000994,), (1351001027,), (1351001056,), (1351001363,), (1351001252,), (1351001257,), (1351001264,), (1351001307,), (1351001336,), (1351001408,), (1351001410,), (1351001412,), (1351001414,), (1351001870,), (1351001876,), (1351001888,), (1351001898,), (1351001900,), (1351001959,), (1351002424,), (1351002474,), (1351002523,), (1351002611,), (1351002971,), (1351003025,), (1351003078,), (1351003132,), (1351003199,), (1351003620,), (1351003654,), (1351003673,), (1351003712,), (1351003766,), (1351004321,), (1351004397,), (1351004458,), (1351004540,), (1351004904,), (1351004932,), (1351004957,), (1351004985,), (1351005295,), (1351005372,), (1351005393,), (1351005406,), (1351005440,), (1351005492,), (1351005809,), (1351005847,), (1351005877,), (1351005902,), (1351006234,), (1351006237,), (1351006245,), (1351006250,), (1351006261,), (1351006676,), (1351006749,), (1351006884,), (1351006941,), (1351008009,), (1351008089,), (1351008155,), (1351008227,), (1351008301,), (1351008377,), (1351010086,), (1351010121,), (1351010167,), (1351010273,), (1351010315,), (1351010472,), (1351010476,), (1351010522,), (1351010543,), (1351010574,), (1351010591,), (1351010981,), (1351010812,), (1351010841,), (1351010870,), (1351010909,), (1351010956,), (1351011322,), (1351011470,), (1351011605,), (1351011633,), (1351011677,), (1351011711,), (1351012333,), (1351012447,), (1351012562,), (1351013278,), (1351013281,), (1351013289,), (1351013377,), (1351013458,), (1351013998,), (1351014026,), (1351014063,), (1351014093,), (1351014350,), (1351014403,), (1351014430,), (1351014497,), (1351014565,), (1351015171,), (1351015221,), (1351015931,), (1351016007,), (1351016088,), (1351016167,), (1351016266,), (1351016970,), (1351017096,), (1351017188,), (1351017225,), (1351017263,), (1351017279,), (1351017429,), (1351017433,), (1351017435,), (1351017445,), (1351017649,), (1351017650,), (1351017652,), (1351017838,), (1351017886,), (1351017922,), (1351017935,), (1351017942,), (1351017963,), (1351018205,), (1351018234,), (1351018265,), (1351018295,), (1351018324,), (1351018484,), (1351018492,), (1351018521,), (1351018563,), (1351018604,), (1351019084,), (1351019189,), (1351020275,), (1351020104,), (1351020179,), (1351020543,), (1351020658,), (1351020685,), (1351022396,), (1351022420,), (1351022961,), (1351023034,), (1351023482,), (1351023493,), (1351023531,), (1351024067,), (1351024093,), (1351024120,), (1351024148,), (1351024174,), (1351024205,), (1351024641,), (1351024671,), (1351024704,), (1351024734,), (1351024770,), (1351024793,), (1351024915,), (1351024942,), (1351024969,), (1351025332,), (1351025347,), (1351025351,), (1351025353,), (1351025629,), (1351025669,), (1351025698,), (1351025702,), (1351025707,), (1351025895,), (1351025915,), (1351025921,), (1351025923,), (1351026039,), (1351026066,), (1351026093,), (1351026097,), (1351026101,), (1351026306,), (1351026331,), (1351026353,), (1351026357,), (1351026381,), (1351026816,), (1351026604,), (1351026611,), (1351026627,), (1351026633,), (1351026799,), (1351027264,), (1351027291,), (1351027316,), (1351028629,), (1351028679,), (1351029157,), (1351030055,), (1351030077,), (1351030099,), (1351030109,), (1351030141,), (1351030169,), (1351030593,), (1351030643,), (1351030723,), (1351030872,), (1351030884,), (1351030911,), (1351030939,), (1351030969,), (1351031016,), (1351031493,), (1351031539,), (1351031565,), (1351031593,), (1351031622,), (1351031895,), (1351031922,), (1351031924,), (1351031927,), (1351032163,), (1351032191,), (1351032210,), (1351032236,), (1351032258,), (1351032264,), (1351032650,), (1351032659,), (1351032684,), (1351032729,), (1351033210,), (1351033221,), (1351033234,), (1351033368,), (1351033371,), (1351033374,), (1351033379,), (1351033407,), (1351033665,), (1351033668,), (1351033679,), (1351033853,), (1351033748,), (1351033851,), (1351034064,), (1351034089,), (1351034116,), (1351034135,), (1351034154,), (1351034518,), (1351034550,), (1351034581,), (1351034586,), (1351034589,), (1351034628,), (1351034632,), (1351034637,), (1351034641,), (1351034723,), (1351034757,), (1351034796,), (1351034812,), (1351034989,), (1351035036,), (1351035049,), (1351035065,), (1351035087,), (1351035089,), (1351035137,), (1351035142,), (1351035144,), (1351035147,), (1351035153,), (1351035212,), (1351035262,), (1351035264,), (1351035267,), (1351035274,), (1351035710,), (1351035736,), (1351035793,), (1351035897,), (1351035933,), (1351035960,), (1351036343,), (1351036398,), (1351036446,), (1351036504,), (1351036530,), (1351036624,), (1351036627,), (1351036656,), (1351036680,), (1351036896,), (1351036900,), (1351036938,), (1351036979,), (1351037016,), (1351037061,), (1351037435,), (1351037509,), (1351037585,), (1351037686,), (1351037781,), (1351039058,), (1351039133,), (1351039249,), (1351039315,), (1351039391,), (1351039456,), (1351039642,), (1351039670,), (1351039679,), (1351040096,), (1351039761,), (1351039794,), (1351039842,), (1351039937,), (1351040012,), (1351040842,), (1351040916,), (1351040998,), (1351041104,), (1351041363,), (1351042151,), (1351042249,), (1351042324,), (1351043300,), (1351043366,), (1351043432,), (1351043491,), (1351043550,), (1351043785,), (1351043789,), (1351043793,), (1351043798,), (1351043803,), (1351044354,), (1351044405,), (1351044437,), (1351044487,), (1351044885,), (1351044925,), (1351044938,), (1351044965,), (1351044968,), (1351044974,), (1351045058,), (1351045063,), (1351045068,), (1351045072,), (1351045076,), (1351045318,), (1351045344,), (1351045346,), (1351045414,), (1351045677,), (1351045688,), (1351045691,), (1351045696,), (1351045700,), (1351045707,), (1351045879,), (1351045883,), (1351045886,), (1351045891,), (1351047379,), (1351084937,), (1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,), (1351089532,), (1351089612,), (1351089683,), (1351089750,), (1351089821,), (1351090080,), (1351090094,), (1351090110,), (1351090125,), (1351090282,), (1351090327,), (1351090384,), (1351091201,), (1351091203,), (1351091206,), (1351091228,), (1351091255,), (1351091572,), (1351091575,), (1351091612,), (1351091778,), (1351091785,), (1351092060,), (1351092086,), (1351092104,), (1351092115,), (1351092416,), (1351092438,), (1351092443,), (1351092459,), (1351092480,), (1351092876,), (1351092878,), (1351092920,), (1351092960,), (1351092991,), (1351093022,), (1351093131,), (1351093159,), (1351093187,), (1351093191,), (1351093195,), (1351093198,), (1351093201,), (1351093206,), (1351093486,), (1351093513,), (1351093541,), (1351093569,), (1351093594,), (1351093622,), (1351093768,), (1351093793,), (1351093814,), (1351094031,), (1351094034,), (1351094037,), (1351094040,), (1351094044,), (1351094411,), (1351094472,), (1351094532,), (1351094605,), (1351095274,), (1351096250,), (1351096325,), (1351096397,), (1351097225,), (1351097300,), (1351097384,), (1351097471,), (1351097572,), (1351098424,), (1351098476,), (1351098546,), (1351099116,), (1351099145,), (1351099156,), (1351099162,), (1351099176,), (1351099185,), (1351099237,), (1351099261,), (1351099277,), (1351099287,), (1351099304,), (1351099609,), (1351099636,), (1351099658,), (1351099697,), (1351099726,), (1351100160,), (1351100212,), (1351101083,), (1351101176,), (1351101236,), (1351101266,), (1351101294,), (1351101795,), (1351101829,), (1351101858,), (1351101887,), (1351101919,), (1351101970,), (1351102318,), (1351102342,), (1351102371,), (1351102394,), (1351103347,), (1351103405,), (1351103436,), (1351103474,), (1351103539,), (1351104277,), (1351104377,), (1351104479,), (1351104556,), (1351104625,), (1351104692,), (1351105193,), (1351105357,), (1351105419,), (1351105464,), (1351107202,), (1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,), (1351117859,), (1351117571,), (1351117609,), (1351117650,), (1351117713,), (1351117787,), (1351118197,), (1351118246,), (1351118274,), (1351118313,), (1351118359,), (1351118408,), (1351119112,), (1351119209,), (1351119284,), (1351119391,), (1351119487,), (1351120323,), (1351120371,), (1351120435,), (1351120484,), (1351121294,), (1351121373,), (1351121424,), (1351121476,), (1351121563,), (1351121699,), (1351123086,), (1351123333,), (1351123585,), (1351123849,), (1351124786,), (1351124826,), (1351124849,), (1351124873,), (1351125000,), (1351125365,), (1351125394,), (1351125436,), (1351125514,), (1351125628,), (1351125728,), (1351126862,), (1351126936,), (1351126998,), (1351127039,), (1351127644,), (1351127690,), (1351127742,), (1351127784,), (1351128389,), (1351128447,), (1351128518,), (1351128569,), (1351129122,), (1351129211,), (1351129270,), (1351129717,), (1351129739,), (1351129749,), (1351129755,), (1351129759,), (1351129776,), (1351129904,), (1351129939,), (1351130262,), (1351130840,), (1351130651,), (1351130692,), (1351130736,), (1351131383,), (1351131437,), (1351131447,), (1351131450,), (1351131452,), (1351131457,), (1351131905,), (1351131940,), (1351131971,), (1351132001,), (1351132005,), (1351132165,), (1351132187,), (1351132216,), (1351132229,), (1351132279,), (1351132284,), (1351132288,), (1351133105,), (1351133374,), (1351133642,), (1351133680,), (1351133723,), (1351134571,), (1351134689,), (1351134849,), (1351134954,), (1351134984,), (1351135015,), (1351135499,), (1351135526,), (1351135557,), (1351135566,), (1351135971,), (1351136042,), (1351136098,), (1351136154,), (1351136211,), (1351136766,), (1351136849,), (1351136900,), (1351136953,), (1351137441,), (1351137497,), (1351137537,), (1351137563,), (1351137618,), (1351137719,), (1351138239,), (1351138291,), (1351138328,), (1351138361,), (1351138393,), (1351138400,), (1351138524,), (1351138585,), (1351138590,), (1351139151,), (1351139183,), (1351139215,), (1351139250,), (1351139298,), (1351139397,), (1351141474,), (1351141370,), (1351142534,), (1351142586,), (1351142620,), (1351142662,), (1351142695,), (1351143145,), (1351143150,), (1351143155,), (1351143160,), (1351143298,), (1351143302,), (1351143343,), (1351143379,), (1351143457,), (1351143533,), (1351144135,), (1351144222,), (1351144278,), (1351144338,), (1351144892,), (1351144920,), (1351144949,), (1351144974,), (1351144999,), (1351145026,), (1351145321,), (1351145324,), (1351145327,), (1351145330,), (1351145333,), (1351145811,), (1351146054,), (1351146100,), (1351146132,), (1351146146,), (1351146203,), (1351146214,), (1351146252,), (1351146285,), (1351146323,), (1351146665,), (1351146722,), (1351146768,), (1351146803,), (1351146838,), (1351147335,), (1351147364,), (1351147394,), (1351147869,), (1351147894,), (1351147920,), (1351147945,), (1351147970,), (1351148008,), (1351148717,), (1351148792,), (1351148882,), (1351148953,), (1351150060,), (1351150160,), (1351150228,), (1351150305,), (1351150364,), (1351150426,), (1351151509,), (1351151165,), (1351151212,), (1351151439,), (1351151483,), (1351151490,), (1351151673,), (1351151735,), (1351151814,), (1351152267,), (1351152325,), (1351152380,), (1351152411,), (1351152425,), (1351153023,), (1351153070,), (1351153117,), (1351153233,), (1351153237,), (1351153241,), (1351153244,), (1351153256,), (1351153286,), (1351153888,), (1351153983,), (1351154057,), (1351154124,), (1351154155,), (1351154186,), (1351154949,), (1351155149,), (1351155344,), (1351156396,), (1351156431,), (1351156627,), (1351156644,), (1351156650,), (1351156656,), (1351157104,), (1351157156,), (1351157222,), (1351157712,), (1351157812,), (1351157897,), (1351157983,), (1351158022,), (1351158119,), (1351158130,), (1351158133,), (1351158136,), (1351158454,), (1351159019,), (1351159047,), (1351160486,), (1351160478,), (1351160729,), (1351160758,), (1351160784,), (1351160813,), (1351161277,), (1351161281,), (1351161286,), (1351161313,), (1351161369,), (1351161545,), (1351161549,), (1351161574,), (1351161601,), (1351162075,), (1351162211,), (1351162247,), (1351162330,), (1351162774,), (1351162778,), (1351162782,), (1351162786,), (1351162791,), (1351162796,), (1351163074,), (1351163118,), (1351163160,), (1351163187,), (1351163238,), (1351163437,), (1351163488,), (1351163539,), (1351163566,), (1351164166,), (1351164221,), (1351164265,), (1351164298,), (1351164352,), (1351164404,), (1351165040,), (1351165113,), (1351165192,), (1351165796,), (1351165812,), (1351165816,), (1351165847,), (1351165886,), (1351165955,), (1351166540,), (1351166574,), (1351166628,), (1351166665,), (1351167296,), (1351167299,), (1351167340,), (1351167352,), (1351167407,), (1351167614,), (1351167701,), (1351167705,), (1351167709,), (1351167712,), (1351167717,), (1351168117,), (1351168015,), (1351168049,), (1351168548,), (1351168552,), (1351168556,), (1351168562,), (1351168601,), (1351168658,), (1351169168,), (1351169213,), (1351169310,), (1351169392,), (1351170227,), (1351170282,), (1351170336,), (1351170386,), (1351170437,), (1351170497,), (1351170934,), (1351171084,), (1351171152,), (1351171404,), (1351171716,), (1351172049,), (1351172652,), (1351172717,), (1351172849,), (1351172902,), (1351173974,), (1351173994,), (1351174016,), (1351174160,), (1351174343,), (1351174428,), (1351174829,), (1351174901,), (1351174980,), (1351175054,), (1351175144,), (1351175830,), (1351175872,), (1351175941,), (1351175963,), (1351175986,), (1351176014,), (1351176190,), (1351176219,), (1351176248,), (1351176275,), (1351176312,), (1351176342,), (1351176465,), (1351176467,), (1351176470,), (1351176473,), (1351176730,), (1351176762,), (1351176777,), (1351176784,), (1351176787,), (1351176987,), (1351177014,), (1351177041,), (1351177070,), (1351177102,), (1351177129,), (1351177877,), (1351177935,), (1351178268,), (1351178394,), (1351178508,), (1351178616,), (1351179478,), (1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,), (1351190853,), (1351190558,), (1351190611,), (1351190663,), (1351190711,), (1351190785,), (1351191229,), (1351191255,), (1351191285,), (1351191336,), (1351192154,), (1351192213,), (1351192275,), (1351192308,), (1351192337,), (1351192367,), (1351192762,), (1351192789,), (1351192824,), (1351192855,), (1351192903,), (1351192968,), (1351192994,), (1351193024,), (1351193076,), (1351193528,), (1351193556,), (1351193586,), (1351193613,), (1351193634,), (1351194228,), (1351194280,), (1351194331,), (1351194391,), (1351195087,), (1351195274,), (1351195478,), (1351195687,), (1351195990,), (1351196292,), (1351197230,), (1351197303,), (1351197384,), (1351197651,), (1351197772,), (1351198391,), (1351198502,), (1351198671,), (1351199107,), (1351199183,), (1351199384,), (1351199481,), (1351199575,), (1351199796,), (1351200435,), (1351200485,), (1351200535,), (1351200566,), (1351200602,), (1351201268,), (1351201344,), (1351201405,), (1351201808,), (1351201838,), (1351201884,), (1351201943,), (1351202003,), (1351202035,), (1351202245,), (1351202249,), (1351202255,), (1351202257,), (1351202258,), (1351203022,), (1351202442,), (1351202724,), (1351202787,), (1351202906,), (1351202967,), (1351203502,), (1351203558,), (1351203627,), (1351203691,), (1351203730,), (1351203820,), (1351204723,), (1351204766,), (1351205211,), (1351205240,), (1351205315,), (1351205390,), (1351205415,), (1351205696,), (1351205722,), (1351205729,), (1351205744,), (1351205754,), (1351205758,), (1351205991,), (1351206038,), (1351206086,), (1351206115,), (1351206476,), (1351206501,), (1351206529,), (1351206555,), (1351206583,), (1351206612,), (1351206873,), (1351206925,), (1351206984,), (1351207026,), (1351207055,), (1351207083,), (1351207199,), (1351207740,), (1351210334,), (1351210613,), (1351210409,), (1351210515,), (1351210527,), (1351210542,), (1351210561,), (1351210877,), (1351210934,), (1351210981,), (1351211015,), (1351211074,), (1351211103,), (1351211450,), (1351211464,), (1351211468,), (1351211603,), (1351211610,), (1351211618,), (1351211621,), (1351211641,), (1351211671,), (1351211805,), (1351211832,), (1351211835,), (1351211839,), (1351212021,), (1351212024,), (1351212028,), (1351212073,), (1351212076,), (1351212080,), (1351212177,), (1351212180,), (1351212188,), (1351212191,), (1351212194,), (1351212318,), (1351212427,), (1351212544,), (1351213064,), (1351213069,), (1351213089,), (1351213116,), (1351213150,), (1351213614,), (1351213640,), (1351213667,), (1351213695,), (1351213721,), (1351213749,), (1351214396,), (1351214507,), (1351214584,), (1351214653,), (1351214769,), (1351215479,), (1351215539,), (1351215592,), (1351215676,), (1351215742,), (1351215791,), (1351217289,), (1351217345,), (1351217401,), (1351217439,), (1351217475,), (1351217506,), (1351217718,), (1351217770,), (1351217805,), (1351217847,), (1351218141,), (1351218088,), (1351219053,), (1351219235,), (1351219417,), (1351219489,), (1351219605,), (1351219850,), (1351221203,), (1351221266,), (1351221313,), (1351221413,), (1351221458,), (1351221870,), (1351221923,), (1351221981,), (1351222033,), (1351222564,), (1351222599,), (1351222628,), (1351222655,), (1351223124,), (1351223132,), (1351223159,), (1351223170,), (1351223174,), (1351223693,), (1351223728,), (1351223760,), (1351224009,), (1351224012,), (1351224016,), (1351224019,), (1351224038,), (1351224069,), (1351224174,), (1351224179,), (1351224184,), (1351224188,), (1351224450,), (1351224479,), (1351224513,), (1351224557,), (1351224614,), (1351224650,), (1351225098,), (1351225192,), (1351225256,), (1351225265,), (1351225270,), (1351225275,), (1351225674,), (1351225701,), (1351225730,), (1351225761,), (1351226184,), (1351226281,), (1351226395,), (1351226447,), (1351226500,), (1351226549,), (1351226956,), (1351226995,), (1351227025,), (1351227055,), (1351227115,), (1351227721,), (1351227768,), (1351227804,), (1351229273,), (1351228940,), (1351229080,), (1351229118,), (1351229183,), (1351229791,), (1351229894,), (1351229973,), (1351230027,), (1351230079,), (1351230134,), (1351230665,), (1351230719,), (1351230753,), (1351231295,), (1351231329,), (1351231387,), (1351231486,), (1351231584,), (1351231705,), (1351231962,), (1351232037,), (1351232100,), (1351232132,), (1351232164,), (1351232468,), (1351232513,), (1351232541,), (1351232571,), (1351234375,), (1351234501,), (1351234633,), (1351235084,), (1351235112,), (1351235240,), (1351235357,), (1351235489,), (1351235744,), (1351235903,), (1351235937,), (1351236180,), (1351236212,), (1351236238,), (1351236355,), (1351236395,), (1351236422,), (1351236456,), (1351236521,), (1351236533,), (1351236642,), (1351236643,), (1351236646,), (1351236647,), (1351236649,), (1351236897,), (1351259579,), (1351259522,), (1351260788,), (1351261147,), (1351261242,), (1351261367,), (1351261479,), (1351262352,), (1351262489,), (1351262638,), (1351262713,), (1351263793,), (1351263865,), (1351263916,), (1351264523,), (1351264527,), (1351264550,), (1351264576,), (1351264602,), (1351264642,), (1351265140,), (1351265165,), (1351265210,), (1351265244,), (1351265276,), (1351265369,), (1351266067,), (1351266163,), (1351266274,), (1351266366,), (1351267271,), (1351267300,), (1351267352,), (1351267442,), (1351267477,), (1351267771,), (1351267777,), (1351267800,), (1351267817,), (1351267818,), (1351268118,), (1351268149,), (1351268182,), (1351268206,), (1351268592,), (1351268600,), (1351268603,), (1351268615,), (1351268620,), (1351269016,), (1351269064,), (1351269093,), (1351269123,), (1351269532,), (1351269551,), (1351269579,), (1351269956,), (1351269983,), (1351270011,), (1351270029,), (1351270031,), (1351270033,), (1351270079,), (1351270083,), (1351270088,), (1351270091,), (1351270094,), (1351270096,), (1351270162,), (1351270131,), (1351270139,), (1351270141,), (1351270337,), (1351270371,), (1351270373,), (1351270383,), (1351270418,), (1351270422,), (1351270475,), (1351270503,), (1351270587,), (1351270643,), (1351270685,), (1351270811,), (1351271018,), (1351271239,), (1351271430,), (1351271478,), (1351272156,), (1351272274,), (1351272303,), (1351272331,), (1351272358,), (1351272766,), (1351272803,), (1351272851,), (1351272907,), (1351273725,), (1351273759,), (1351273785,), (1351273826,), (1351273875,), (1351274485,), (1351274541,), (1351274613,), (1351274699,), (1351274798,), (1351274852,), (1351275565,), (1351275642,), (1351275719,), (1351276153,), (1351276182,), (1351276209,), (1351276857,), (1351276900,), (1351276932,), (1351277364,), (1351277527,), (1351277555,), (1351277580,), (1351277796,), (1351277798,), (1351277801,), (1351277803,), (1351278117,), (1351278155,), (1351278182,), (1351278208,), (1351278501,), (1351278663,), (1351278692,), (1351278718,), (1351278753,), (1351278831,), (1351279390,), (1351279425,), (1351279471,), (1351279524,), (1351280242,), (1351280293,), (1351280342,), (1351280369,), (1351280372,), (1351280375,), (1351280611,), (1351280674,), (1351280749,), (1351281754,), (1351282040,), (1351282137,), (1351282186,), (1351282219,), (1351282519,), (1351282588,), (1351282771,), (1351282867,), (1351282874,), (1351283058,), (1351283064,), (1351283071,), (1351283077,), (1351283629,), (1351283680,), (1351283713,), (1351283738,), (1351283781,), (1351283832,), (1351284081,), (1351284087,), (1351284307,), (1351284336,), (1351284363,), (1351284389,), (1351284416,), (1351284443,), (1351284626,), (1351284646,), (1351284650,), (1351284672,), (1351284699,), (1351285503,), (1351285508,), (1351285596,), (1351286806,), (1351286315,), (1351286570,), (1351286662,), (1351287120,), (1351287127,), (1351287131,), (1351287135,), (1351287138,), (1351287142,), (1351287584,), (1351287589,), (1351287599,), (1351287626,), (1351287638,), (1351287922,), (1351287974,), (1351288018,), (1351288042,), (1351288368,), (1351288380,), (1351288383,), (1351288386,), (1351288389,), (1351288393,), (1351288979,), (1351289084,), (1351289212,), (1351289330,), (1351290093,), (1351290159,), (1351290208,), (1351290271,), (1351290386,), (1351290497,), (1351291066,), (1351291092,), (1351291100,), (1351291102,), (1351291445,), (1351291474,), (1351291507,), (1351291547,), (1351291602,), (1351292174,), (1351292247,), (1351292298,), (1351292326,), (1351292370,), (1351292834,), (1351292863,), (1351292897,), (1351292947,), (1351293296,), (1351293299,), (1351293302,), (1351293305,), (1351293651,), (1351293714,), (1351293769,), (1351293814,), (1351293856,), (1351294745,), (1351294806,), (1351294866,), (1351294902,), (1351294938,), (1351295047,), (1351295357,), (1351295476,), (1351296589,), (1351296082,), (1351296164,), (1351296232,), (1351296314,), (1351296472,), (1351297042,), (1351297098,), (1351297125,), (1351297150,), (1351297187,), (1351297245,), (1351298254,), (1351298288,), (1351298315,), (1351298342,), (1351298383,), (1351298747,), (1351298754,), (1351298918,), (1351298963,), (1351298991,), (1351299019,), (1351299155,), (1351299159,), (1351299162,), (1351299166,), (1351299209,), (1351299371,), (1351299379,), (1351299393,), (1351299400,), (1351299436,), (1351299726,), (1351299755,), (1351299772,), (1351299778,), (1351299947,), (1351299957,), (1351299964,), (1351300026,), (1351300109,), (1351300744,), (1351300758,), (1351300762,), (1351300766,), (1351300769,), (1351300775,), (1351300971,), (1351300977,), (1351300988,), (1351300992,), (1351301007,), (1351301070,), (1351301072,), (1351301075,), (1351301099,), (1351301104,), (1351301319,), (1351301346,), (1351301392,), (1351301419,), (1351301425,), (1351301448,), (1351301758,), (1351301793,), (1351301822,), (1351301847,), (1351301880,), (1351302380,), (1351302419,), (1351302446,), (1351302975,), (1351303212,), (1351303240,), (1351303269,), (1351303977,), (1351303689,), (1351303761,), (1351303845,), (1351303895,), (1351303947,), (1351304037,), (1351304042,), (1351304045,), (1351304070,), (1351304147,), (1351304642,), (1351304775,), (1351304887,), (1351304948,), (1351305009,), (1351305061,), (1351305603,), (1351305633,), (1351305677,), (1351305681,), (1351305690,), (1351305936,), (1351305978,), (1351306019,), (1351306045,), (1351306072,), (1351306114,), (1351306293,), (1351306299,), (1351306302,), (1351306308,), (1351306313,), (1351306318,), (1351306578,), (1351306627,), (1351306679,), (1351307681,), (1351307685,), (1351307718,), (1351307768,), (1351307794,), (1351307844,), (1351308210,), (1351308251,), (1351308373,), (1351308456,), (1351308489,), (1351308501,), (1351308639,), (1351308643,), (1351308646,), (1351308650,), (1351308721,), (1351308726,), (1351308729,), (1351308732,), (1351308744,), (1351308771,), (1351308926,), (1351308959,), (1351308989,), (1351309027,), (1351309535,), (1351309608,), (1351309682,), (1351309732,), (1351310139,), (1351310166,), (1351310204,), (1351310230,), (1351310462,), (1351310474,), (1351310501,), (1351310529,), (1351310558,), (1351311050,), (1351310815,), (1351310846,), (1351310892,), (1351310944,), (1351310997,), (1351311694,), (1351311703,), (1351311707,), (1351311724,), (1351312131,), (1351312178,), (1351312181,), (1351312185,), (1351312189,), (1351312194,), (1351312405,), (1351312443,), (1351312496,), (1351312683,), (1351312688,), (1351312693,), (1351312699,), (1351312899,), (1351312915,), (1351312919,), (1351312923,), (1351313107,), (1351313122,), (1351313126,), (1351313400,), (1351313403,), (1351313407,), (1351313435,), (1351313464,), (1351313468,), (1351313635,), (1351313656,), (1351313660,), (1351313664,), (1351313711,), (1351313735,), (1351313745,), (1351313759,), (1351313784,), (1351313817,), (1351314245,), (1351314273,), (1351314294,), (1351314301,), (1351314338,), (1351314982,), (1351315031,), (1351315102,), (1351316013,), (1351316120,), (1351316234,), (1351316314,), (1351316418,), (1351316511,), (1351317124,), (1351317150,), (1351317177,), (1351318967,), (1351318912,), (1351318953,), (1351318960,), (1351319315,), (1351319369,), (1351319420,), (1351319843,), (1351319853,), (1351319884,), (1351319904,), (1351319908,), (1351319910,), (1351320300,), (1351320324,), (1351320375,), (1351320416,), (1351320429,), (1351320457,), (1351320619,), (1351320675,), (1351320726,), (1351320784,), (1351321343,), (1351321403,), (1351321454,), (1351321502,), (1351321778,), (1351321993,), (1351323527,), (1351323577,), (1351323604,), (1351323639,), (1351324032,), (1351324062,), (1351324086,), (1351324264,), (1351324451,), (1351324592,), (1351325007,), (1351325040,), (1351325083,), (1351325122,), (1351325625,), (1351325630,), (1351325635,), (1351325640,), (1351325645,), (1351325648,), (1351325684,), (1351325693,), (1351325700,), (1351325704,), (1351326664,), (1351326746,), (1351326827,), (1351326899,), (1351326964,), (1351328343,), (1351328104,), (1351328190,), (1351328277,), (1351329432,), (1351331665,), (1351331772,), (1351334244,), (1351335193,), (1351335229,), (1351335274,), (1351335390,), (1351335472,), (1351335531,), (1351336382,), (1351336421,), (1351336448,), (1351336483,), (1351337071,), (1351337139,), (1351337191,), (1351337243,), (1351337325,), (1351337381,), (1351337748,), (1351337776,), (1351337805,), (1351337836,), (1351337863,), (1351338112,), (1351338116,), (1351338120,), (1351338123,), (1351338126,), (1351338531,), (1351338590,), (1351338654,), (1351338703,), (1351338756,), (1351338802,), (1351339066,), (1351339094,), (1351339138,), (1351339187,), (1351339242,), (1351339246,), (1351339250,), (1351339262,), (1351339270,), (1351339285,), (1351339774,), (1351339997,), (1351340074,), (1351340113,), (1351340144,), (1351340290,), (1351340265,), (1351340778,), (1351340864,), (1351340867,), (1351341158,), (1351341166,), (1351341171,), (1351341175,), (1351341181,), (1351341185,), (1351341216,), (1351341226,), (1351341229,), (1351341236,), (1351341242,), (1351341245,), (1351341284,), (1351341289,), (1351341293,), (1351341297,), (1351341311,), (1351341320,), (1351341407,), (1351341410,), (1351341413,), (1351341416,), (1351341418,), (1351341423,), (1351341557,), (1351341586,), (1351341612,), (1351341637,), (1351342280,), (1351342341,), (1351342392,), (1351342444,), (1351342538,), (1351342636,), (1351343441,), (1351343519,), (1351343592,), (1351343663,), (1351343750,), (1351344736,), (1351344828,), (1351344911,), (1351344970,), (1351346005,), (1351346118,), (1351346229,), (1351346322,), (1351346380,), (1351346410,), (1351346809,), (1351346833,), (1351346860,), (1351346887,), (1351347224,), (1351347351,), (1351347473,), (1351347609,), (1351348136,), (1351348139,), (1351348142,), (1351348148,), (1351348173,), (1351348938,), (1351349061,), (1351349182,), (1351349284,), (1351350202,), (1351349774,), (1351349861,), (1351349949,), (1351350057,), (1351350749,), (1351350818,), (1351350859,), (1351350889,), (1351351445,), (1351351587,), (1351351705,), (1351351767,), (1351351817,), (1351352355,), (1351352512,), (1351352634,), (1351352787,), (1351352930,), (1351353081,), (1351354443,), (1351354702,), (1351354909,), (1351354990,), (1351356464,), (1351356547,), (1351356758,), (1351356861,), (1351356965,), (1351357045,), (1351357858,), (1351357885,), (1351357916,), (1351357965,), (1351358017,), (1351358084,), (1351358616,), (1351358637,), (1351358665,), (1351358691,), (1351359122,), (1351359177,), (1351359229,), (1351359279,), (1351359327,), (1351359379,), (1351359841,), (1351359864,), (1351359868,), (1351359881,), (1351359911,), (1351377485,), (1351377432,), (1351378330,), (1351378334,), (1351378573,), (1351380030,), (1351380061,), (1351380858,), (1351380920,), (1351380947,), (1351381588,), (1351382207,), (1351382235,), (1351382263,), (1351382479,), (1351382714,), (1351383063,), (1351383194,), (1351383533,), (1351385456,), (1351401329,), (1351401361,), (1351401365,), (1351401967,), (1351402497,), (1351402544,), (1351402546,), (1351402840,), (1351403167,), (1351405147,), (1351431452,), (1351432117,), (1351434405,), (1351436982,), (1351437017,), (1351438171,), (1351438601,), (1351449620,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22195476]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] map_info['map_portfolio_photo'] : {22195476: [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757]} final : True mtd_id 4302 list_pids : [1351089826, 1351089137, 1351089106, 1351089078, 1351089049, 1351088999, 1351088926, 1351088064, 1351087973, 1351087474, 1351087472, 1351087470, 1351087381, 1351087369, 1351087299, 1351087253, 1351087243, 1351087240, 1351086901, 1351086873, 1351085990, 1351085553, 1351085521, 1351085486, 1351084882, 1351084818, 1351084757] Looping around the photos to save general results len do output : 1 /22195476Didn'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, '2739700') ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700') ('4302', None, None, None, None, None, None, None, '2739700') ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22195476', 'None', None, None, None, None, '2739700'), ('4302', '22195476', '1351089826', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089137', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089106', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089078', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351089049', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088999', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088926', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351088064', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087973', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087474', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087472', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087470', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087381', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087369', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087299', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087253', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087243', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351087240', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086901', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351086873', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085990', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085553', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085521', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351085486', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084882', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084818', None, None, None, None, None, '2739700'), ('4302', '22195476', '1351084757', None, None, None, None, None, '2739700')] time used for this insertion : 0.017512798309326172 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.0099687576293945 time spend to save output : 0.01787734031677246 total time spend for step 5 : 4.027846097946167 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 (2739700) 2.89user 2.46system 0:14.80elapsed 36%CPU (0avgtext+0avgdata 162020maxresident)k 64inputs+21024outputs (15major+74565minor)pagefaults 0swaps