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 : 2056538 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 (2618724) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2618724) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822915 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2618724'] with mtr_portfolio_ids : ['20822915'] and first list_photo_ids : [] new path : /proc/2056538/ Name: python3 Umask: 0002 State: R (running) Tgid: 2056538 Ngid: 0 Pid: 2056538 PPid: 2056537 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2056538 NSpid: 2056538 NSpgid: 2055658 NSsid: 2055658 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97496 kB VmRSS: 97496 kB RssAnon: 59760 kB RssFile: 37736 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 40 nonvoluntary_ctxt_switches: 211 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2056538', 'Ngid': '0', 'Pid': '2056538', 'PPid': '2056537', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2056538', 'NSpid': '2056538', 'NSpgid': '2055658', 'NSsid': '2055658', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97496 kB', 'VmRSS': '97496 kB', 'RssAnon': '59760 kB', 'RssFile': '37736 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '40', 'nonvoluntary_ctxt_switches': '211'} ('datou_batch_current', '2056538', '1106848', '0', '1106848', '865596', '97496', b'', 'marlene', '2618724') 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 (20822915) 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 (2618724 ) ) 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 (20822915) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339670001, 'portfolio_id': 20822915}, {'photo_id': 1339669685, 'portfolio_id': 20822915}, {'photo_id': 1339669682, 'portfolio_id': 20822915}, {'photo_id': 1339669676, 'portfolio_id': 20822915}, {'photo_id': 1339669651, 'portfolio_id': 20822915}, {'photo_id': 1339669649, 'portfolio_id': 20822915}, {'photo_id': 1339669304, 'portfolio_id': 20822915}, {'photo_id': 1339669239, 'portfolio_id': 20822915}, {'photo_id': 1339668950, 'portfolio_id': 20822915}, {'photo_id': 1339668947, 'portfolio_id': 20822915}, {'photo_id': 1339668700, 'portfolio_id': 20822915}, {'photo_id': 1339668697, 'portfolio_id': 20822915}, {'photo_id': 1339668569, 'portfolio_id': 20822915}, {'photo_id': 1339668549, 'portfolio_id': 20822915}, {'photo_id': 1339668546, 'portfolio_id': 20822915}, {'photo_id': 1339668536, 'portfolio_id': 20822915}, {'photo_id': 1339668533, 'portfolio_id': 20822915}, {'photo_id': 1339668531, 'portfolio_id': 20822915}, {'photo_id': 1339668522, 'portfolio_id': 20822915}, {'photo_id': 1339668519, 'portfolio_id': 20822915}, {'photo_id': 1339668516, 'portfolio_id': 20822915}, {'photo_id': 1339668510, 'portfolio_id': 20822915}, {'photo_id': 1339668500, 'portfolio_id': 20822915}, {'photo_id': 1339668499, 'portfolio_id': 20822915}, {'photo_id': 1339668497, 'portfolio_id': 20822915}, {'photo_id': 1339668482, 'portfolio_id': 20822915}, {'photo_id': 1339668468, 'portfolio_id': 20822915}, {'photo_id': 1339668466, 'portfolio_id': 20822915}] map_portfolio_id_photo_id: {20822915: [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} ##### 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 : 1.0766515731811523 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 27 05:34: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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 : 20822915 get user id for portfolio 20822915 get sub ptf for main ptf 20822915, type 3726 and hashtags ['kraft', 'autre_refus', 'plastique', 'mal_croppe', 'metal', 'papier', 'Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'cartonnette', 'Carton_brun', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','plastique','mal_croppe','metal','papier','Carton_gris','environnement','Teint_Dans_La_Masse','cartonnette','Carton_brun','flou')) 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`=20822915 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','plastique','mal_croppe','metal','papier','Carton_gris','environnement','Teint_Dans_La_Masse','cartonnette','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20822915, 'sub_port_id': 20822942, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459067, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'metal': {'main_port_id': 20822915, 'sub_port_id': 20822943, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459068, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'papier': {'main_port_id': 20822915, 'sub_port_id': 20822944, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459069, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'Carton_brun': {'main_port_id': 20822915, 'sub_port_id': 20822945, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459070, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'Carton_gris': {'main_port_id': 20822915, 'sub_port_id': 20822946, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459071, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'flou': {'main_port_id': 20822915, 'sub_port_id': 20822947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459072, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'mal_croppe': {'main_port_id': 20822915, 'sub_port_id': 20822948, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459073, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'plastique': {'main_port_id': 20822915, 'sub_port_id': 20822949, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459074, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'environnement': {'main_port_id': 20822915, 'sub_port_id': 20822950, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459075, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'cartonnette': {'main_port_id': 20822915, 'sub_port_id': 20822951, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459076, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'kraft': {'main_port_id': 20822915, 'sub_port_id': 20822952, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459077, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'autre_refus': {'main_port_id': 20822915, 'sub_port_id': 20822953, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459078, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822942 , 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=20822915 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 (20822942) result : ((1339668562,), (1339668572,), (1339669642,), (1339669768,), (1339670099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822943 , 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=20822915 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 (20822943) result : ((1339669780,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822944 , 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=20822915 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 (20822944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822945 , 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=20822915 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 (20822945) result : ((1339668506,), (1339668584,), (1339668879,), (1339669778,), (1339670087,), (1339670104,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822946 , 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=20822915 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 (20822946) result : ((1339668583,), (1339669995,), (1339669996,), (1339670103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822947 , 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=20822915 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 (20822947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822948 , 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=20822915 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 (20822948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822949 , 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=20822915 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 (20822949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822950 , 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=20822915 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 (20822950) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822951 , 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=20822915 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 (20822951) result : ((1339668563,), (1339668576,), (1339668577,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822952 , 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=20822915 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 (20822952) result : ((1339669779,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822953 , 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=20822915 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 (20822953) result : ((1339668505,), (1339668573,), (1339668574,), (1339668582,), (1339668877,), (1339668878,), (1339668951,), (1339669643,), (1339669777,), (1339669992,), (1339669993,), (1339670101,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,)) 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 (1339668500,1339668700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','plastique','mal_croppe','metal','papier','Carton_gris','environnement','Teint_Dans_La_Masse','cartonnette','Carton_brun','flou')) 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`=20822915 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','plastique','mal_croppe','metal','papier','Carton_gris','environnement','Teint_Dans_La_Masse','cartonnette','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20822915, 'sub_port_id': 20822954, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459079, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'metal': {'main_port_id': 20822915, 'sub_port_id': 20822955, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459080, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'papier': {'main_port_id': 20822915, 'sub_port_id': 20822956, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459081, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'Carton_brun': {'main_port_id': 20822915, 'sub_port_id': 20822958, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459082, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'Carton_gris': {'main_port_id': 20822915, 'sub_port_id': 20822959, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459083, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'flou': {'main_port_id': 20822915, 'sub_port_id': 20822960, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459084, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'mal_croppe': {'main_port_id': 20822915, 'sub_port_id': 20822961, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459085, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'plastique': {'main_port_id': 20822915, 'sub_port_id': 20822962, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459086, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'environnement': {'main_port_id': 20822915, 'sub_port_id': 20822963, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459087, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'cartonnette': {'main_port_id': 20822915, 'sub_port_id': 20822964, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459088, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'kraft': {'main_port_id': 20822915, 'sub_port_id': 20822965, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459089, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'autre_refus': {'main_port_id': 20822915, 'sub_port_id': 20822966, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459090, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822953 lien utilise dans velours : https://www.fotonower.com/velours/20822954,20822955,20822956,20822958,20822959,20822960,20822961,20822962,20822963,20822964,20822965,20822966?tags=Teint_Dans_La_Masse,metal,papier,Carton_brun,Carton_gris,flou,mal_croppe,plastique,environnement,cartonnette,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] map_info['map_portfolio_photo'] : {20822915: [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] Looping around the photos to save general results len do output : 1 /20822915. 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, '2618724') ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '20822915', "{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}", None, None, None, None, '2618724'), ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724')] time used for this insertion : 0.01867508888244629 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0120205879211426 time spend to save output : 0.019045114517211914 total time spend for step 1 : 2.0310657024383545 step2:final Thu Feb 27 05:34:31 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 (20822915) 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 20822915 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339668468,1339668466,1339668482,1339668500,1339668499,1339668497,1339668522,1339668519,1339668510,1339668516,1339668536,1339668533,1339668531,1339668549,1339668546,1339668569,1339668700,1339668697,1339668950,1339668947,1339669304,1339669239,1339669651,1339669649,1339669685,1339669682,1339669676,1339670001); 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([20822915]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} new output for save of step final : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] map_info['map_portfolio_photo'] : {20822915: [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] Looping around the photos to save general results len do output : 28 /1339670001.Didn't retrieve data . /1339669685.Didn't retrieve data . /1339669682.Didn't retrieve data . /1339669676.Didn't retrieve data . /1339669651.Didn't retrieve data . /1339669649.Didn't retrieve data . /1339669304.Didn't retrieve data . /1339669239.Didn't retrieve data . /1339668950.Didn't retrieve data . /1339668947.Didn't retrieve data . /1339668700.Didn't retrieve data . /1339668697.Didn't retrieve data . /1339668569.Didn't retrieve data . /1339668549.Didn't retrieve data . /1339668546.Didn't retrieve data . /1339668536.Didn't retrieve data . /1339668533.Didn't retrieve data . /1339668531.Didn't retrieve data . /1339668522.Didn't retrieve data . /1339668519.Didn't retrieve data . /1339668516.Didn't retrieve data . /1339668510.Didn't retrieve data . /1339668500.Didn't retrieve data . /1339668499.Didn't retrieve data . /1339668497.Didn't retrieve data . /1339668482.Didn't retrieve data . /1339668468.Didn't retrieve data . /1339668466.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, '2618724') ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 84 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', '20822915', '1339670001', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669685', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669682', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669676', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669651', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669649', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669304', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339669239', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668950', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668947', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668700', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668697', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668569', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668549', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668546', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668536', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668533', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668531', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668522', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668519', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668516', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668510', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668500', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668499', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668497', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668482', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668468', '0.07920684912952393', None, None, None, None, '2618724'), ('4302', '20822915', '1339668466', '0.07920684912952393', None, None, None, None, '2618724')] time used for this insertion : 0.43681764602661133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7480494976043701 time spend to save output : 0.4379251003265381 total time spend for step 2 : 1.1859745979309082 step3:velours_tree Thu Feb 27 05:34:32 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 : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} input_args_next_step : {20822915: ()} output_args : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} args : 20822915 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': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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([20822915]) 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.44797492027282715 time spend to save output : 8.630752563476562e-05 total time spend for step 3 : 0.4480612277984619 step4:send_mail_cod Thu Feb 27 05:34:33 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 : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} input_args_next_step : {1339670001: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339670001 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669685 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669682 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669676 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669651 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669649 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669304 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339669239 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668950 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668947 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668700 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668697 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668569 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668549 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668546 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668536 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668533 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668531 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668522 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668519 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668516 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668510 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668500 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668499 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668497 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668482 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668468 depend.output_id : 0 input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ()} output_args : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',)} args : 1339668466 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 : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} input_args_next_step : {1339670001: ('0.07920684912952393',), 1339669685: ('0.07920684912952393',), 1339669682: ('0.07920684912952393',), 1339669676: ('0.07920684912952393',), 1339669651: ('0.07920684912952393',), 1339669649: ('0.07920684912952393',), 1339669304: ('0.07920684912952393',), 1339669239: ('0.07920684912952393',), 1339668950: ('0.07920684912952393',), 1339668947: ('0.07920684912952393',), 1339668700: ('0.07920684912952393',), 1339668697: ('0.07920684912952393',), 1339668569: ('0.07920684912952393',), 1339668549: ('0.07920684912952393',), 1339668546: ('0.07920684912952393',), 1339668536: ('0.07920684912952393',), 1339668533: ('0.07920684912952393',), 1339668531: ('0.07920684912952393',), 1339668522: ('0.07920684912952393',), 1339668519: ('0.07920684912952393',), 1339668516: ('0.07920684912952393',), 1339668510: ('0.07920684912952393',), 1339668500: ('0.07920684912952393',), 1339668499: ('0.07920684912952393',), 1339668497: ('0.07920684912952393',), 1339668482: ('0.07920684912952393',), 1339668468: ('0.07920684912952393',), 1339668466: ('0.07920684912952393',), 20822915: ()} output_args : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} args : 20822915 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 :29, first value : ('0.07920684912952393',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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 (1339670001,1339669685,1339669682,1339669676,1339669651,1339669649,1339669304,1339669239,1339668950,1339668947,1339668700,1339668697,1339668569,1339668549,1339668546,1339668536,1339668533,1339668531,1339668522,1339668519,1339668516,1339668510,1339668500,1339668499,1339668497,1339668482,1339668468,1339668466) Found this number of photos: 28 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339668466 begin to download photo : 1339668510 begin to download photo : 1339668536 begin to download photo : 1339668947 begin to download photo : 1339669676 download finish for photo 1339668510 begin to download photo : 1339668516 download finish for photo 1339668466 begin to download photo : 1339668468 download finish for photo 1339668536 begin to download photo : 1339668546 download finish for photo 1339669676 begin to download photo : 1339669682 download finish for photo 1339668468 begin to download photo : 1339668482 download finish for photo 1339668516 begin to download photo : 1339668519 download finish for photo 1339668546 begin to download photo : 1339668549 download finish for photo 1339669682 begin to download photo : 1339669685 download finish for photo 1339668482 begin to download photo : 1339668497 download finish for photo 1339668947 begin to download photo : 1339668950 download finish for photo 1339669685 begin to download photo : 1339670001 download finish for photo 1339668497 begin to download photo : 1339668499 download finish for photo 1339668549 begin to download photo : 1339668569 download finish for photo 1339668950 begin to download photo : 1339669239 download finish for photo 1339668519 begin to download photo : 1339668522 download finish for photo 1339668499 begin to download photo : 1339668500 download finish for photo 1339670001 download finish for photo 1339669239 begin to download photo : 1339669304 download finish for photo 1339668569 begin to download photo : 1339668697 download finish for photo 1339668522 begin to download photo : 1339668531 download finish for photo 1339668500 download finish for photo 1339669304 begin to download photo : 1339669649 download finish for photo 1339668697 begin to download photo : 1339668700 download finish for photo 1339668531 begin to download photo : 1339668533 download finish for photo 1339669649 begin to download photo : 1339669651 download finish for photo 1339668533 download finish for photo 1339669651 download finish for photo 1339668700 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 28 ; length of list_pids : 28 ; length of list_args : 28 results_Auto_P20822915_27-02-2025_05_34_34.pdf 20822943 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=20822943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339669780: '1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124475_0.png'} change filename to text .imagette208229431740630874/ imagette208229431740630874/1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124475_0.png.png imagette208229471740630874/ imagette208229481740630874/ imagette208229491740630874/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/46d8a7f31553b80d62731e4b5697ed88_41043920.png imagette208229431740630874 20822947 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=20822947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229471740630874 20822948 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=20822948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229481740630874 20822949 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=20822949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229491740630874 20822951 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=20822951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668563: '1740542972_2296833_1339668531_3f452df8dbc1c792261b6c6ea34cc2d6_rle_crop_3687121774_0.png', 1339668576: '1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122042_0.png', 1339668577: '1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122073_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c5cc28a24e350221b65cc62d49dadec9_78277883.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/208c6e476e66083c2dcb215a850cb108_94682224.png change filename to text .imagette208229511740630874/ imagette208229511740630874/1740542972_2296833_1339668531_3f452df8dbc1c792261b6c6ea34cc2d6_rle_crop_3687121774_0.png.png imagette208229511740630874/1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122073_0.png.png imagette208229511740630874/1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122042_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/822bf3c4f1038248a7f6dd2561cd88ef_42540744.png imagette208229511740630874 20822952 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=20822952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339669779: '1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124473_0.png'} change filename to text .imagette208229521740630874/ imagette208229521740630874/1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124473_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/88a175bd3151592a81473dac143ea9f0_27684309.png imagette208229521740630874 20822953 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=20822953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668505: '1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120838_0.png', 1339668573: '1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122043_0.png', 1339668574: '1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122072_0.png', 1339668582: '1740543013_2297316_1339668522_410d3a6fefb45811170d0400a1e47939_rle_crop_3687122088_0.png', 1339668877: '1740543110_2298297_1339668569_533c0799c32f01c8ed8dd5f73834bcc4_rle_crop_3687122209_0.png', 1339668878: '1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122224_0.png', 1339668951: '1740543133_2298590_1339668549_f7890ab3d3d5fe7cf2ee7b9be948aeb2_rle_crop_3687122267_0.png', 1339669643: '1740543230_2299709_1339668697_df5ae3c79866f85acf8aa7075016eb91_rle_crop_3687122634_0.png', 1339669777: '1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124474_0.png', 1339669992: '1740543372_2301102_1339669304_4a1bef695f912b373b65a0698f73b225_rle_crop_3687124557_0.png', 1339669993: '1740543372_2301102_1339669304_4a1bef695f912b373b65a0698f73b225_rle_crop_3687124560_0.png', 1339670101: '1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125251_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2d1d8a9635f36f70589601beda52be14_74848122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e20c47680b36d5ae31dd2f3eae1b8fce_34877251.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7daf7385ddb843caa7f3838050d42775_59283504.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ed6d8c2588dfcdf2fa76a797eb031b7_43961674.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/052141ae6b26b1f89dfdcfabc4e42b33_37634564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5d410255046a9dfdc4b7d175019c6508_12519697.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2c91942fad92da563c802b76b94967f6_95938743.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/54247ceb5da386510bf9d6c966ce31ee_8045664.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/67cf243247e4667142ffd1f21598634b_41416584.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a6755b9b17de00804f9157bade327674_27035464.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5a76d39646ba2726492515d32f7f3c41_99900773.png change filename to text .imagette208229531740630874/ imagette208229531740630874/1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124474_0.png.png imagette208229531740630874/1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122224_0.png.png imagette208229531740630874/1740543230_2299709_1339668697_df5ae3c79866f85acf8aa7075016eb91_rle_crop_3687122634_0.png.png imagette208229531740630874/1740543372_2301102_1339669304_4a1bef695f912b373b65a0698f73b225_rle_crop_3687124557_0.png.png imagette208229531740630874/1740543133_2298590_1339668549_f7890ab3d3d5fe7cf2ee7b9be948aeb2_rle_crop_3687122267_0.png.png imagette208229531740630874/1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120838_0.png.png imagette208229531740630874/1740543372_2301102_1339669304_4a1bef695f912b373b65a0698f73b225_rle_crop_3687124560_0.png.png imagette208229531740630874/1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122072_0.png.png imagette208229531740630874/1740543013_2297316_1339668522_410d3a6fefb45811170d0400a1e47939_rle_crop_3687122088_0.png.png imagette208229531740630874/1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125251_0.png.png imagette208229531740630874/1740543110_2298297_1339668569_533c0799c32f01c8ed8dd5f73834bcc4_rle_crop_3687122209_0.png.png imagette208229531740630874/1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122043_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/da05aa70b1734b99f35b1c4e45ff1270_15725538.png imagette208229531740630874 20822942 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=20822942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668562: '1740542972_2296833_1339668533_90b419ddd0443ee5fb752086a29e005f_rle_crop_3687121764_0.png', 1339668572: '1740542991_2297021_1339668536_d815125a918e7fb45a4a822f877236fe_rle_crop_3687121924_0.png', 1339669642: '1740543230_2299709_1339668950_4395a7a47824081e60f671ea5758609e_rle_crop_3687122624_0.png', 1339669768: '1740543352_2300867_1339669239_2fa9537273500d74f3e860a3d0f053f4_rle_crop_3687124495_0.png', 1339670099: '1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125254_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/19778019a883d0e192c456aa69740f9a_77960650.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1a49296784ff04a85069afe6737ca37f_7103470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2bbf1091e734ad7f60b8e44a6d68bc36_64822915.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d651368c861cb2dd8befc82e145e9dcc_44184984.png change filename to text .imagette208229421740630876/ imagette208229421740630876/1740542991_2297021_1339668536_d815125a918e7fb45a4a822f877236fe_rle_crop_3687121924_0.png.png imagette208229421740630876/1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125254_0.png.png imagette208229421740630876/1740543352_2300867_1339669239_2fa9537273500d74f3e860a3d0f053f4_rle_crop_3687124495_0.png.png imagette208229421740630876/1740543230_2299709_1339668950_4395a7a47824081e60f671ea5758609e_rle_crop_3687122624_0.png.png imagette208229421740630876/1740542972_2296833_1339668533_90b419ddd0443ee5fb752086a29e005f_rle_crop_3687121764_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b635a2ba190f87bcccaf34431952a0ab_22545040.png imagette208229421740630876 20822945 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=20822945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668506: '1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120835_0.png', 1339668584: '1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122105_0.png', 1339668879: '1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122234_0.png', 1339669778: '1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124479_0.png', 1339670087: '1740543471_2302272_1339670001_38522f9f73922efd6d1d4451f78ab701_rle_crop_3687125195_0.png', 1339670104: '1740543493_2302608_1339669685_af229011fb41c49755d99e7ebf5f4cc4_rle_crop_3687125246_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ef8c0e97c971bb24e6c540c298b202d5_28903967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/aa185e3451f18016e7fa62aa8d8a9cbb_70985196.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/890258afa8bc0a62167fcb3c1daf2997_74305995.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dc4f042658434528522e4dca0c1697c9_87703682.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ff31aa43cdab4b9aa844de83a3be24ab_93621802.png change filename to text .imagette208229451740630876/ imagette208229451740630876/1740543493_2302608_1339669685_af229011fb41c49755d99e7ebf5f4cc4_rle_crop_3687125246_0.png.png imagette208229451740630876/1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120835_0.png.png imagette208229451740630876/1740543471_2302272_1339670001_38522f9f73922efd6d1d4451f78ab701_rle_crop_3687125195_0.png.png imagette208229451740630876/1740543352_2300867_1339669651_2c4710f3e4ea94b2514055efa74af2c0_rle_crop_3687124479_0.png.png imagette208229451740630876/1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122105_0.png.png imagette208229451740630876/1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122234_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/92a0a26cbdab0f350251d8419c5e2a70_78235248.png imagette208229451740630876 20822946 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=20822946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668583: '1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122103_0.png', 1339669995: '1740543372_2301102_1339668947_2d32528a144805175733302061d44800_rle_crop_3687124577_0.png', 1339669996: '1740543372_2301102_1339668947_2d32528a144805175733302061d44800_rle_crop_3687124579_0.png', 1339670103: '1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125253_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bda714580f71994fb53e4c9b9887c6f4_96044450.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/641bd119ab4ca56633b0b5060d222953_62011205.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e330c60e66a3a4ae973b341a02a3e0f5_66896880.png change filename to text .imagette208229461740630877/ imagette208229461740630877/1740543372_2301102_1339668947_2d32528a144805175733302061d44800_rle_crop_3687124577_0.png.png imagette208229461740630877/1740543493_2302608_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd_rle_crop_3687125253_0.png.png imagette208229461740630877/1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122103_0.png.png imagette208229461740630877/1740543372_2301102_1339668947_2d32528a144805175733302061d44800_rle_crop_3687124579_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e21179bea61371880455bfb3de925580_92310223.png imagette208229461740630877 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20822915 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20822954,20822955,20822956,20822958,20822959,20822960,20822961,20822962,20822963,20822964,20822965,20822966?tags=Teint_Dans_La_Masse,metal,papier,Carton_brun,Carton_gris,flou,mal_croppe,plastique,environnement,cartonnette,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1339670001] : ('0.07920684912952393',) no score found for photo 1339670001 We are sending mail with results at report@fotonower.com args[1339669685] : ('0.07920684912952393',) no score found for photo 1339669685 We are sending mail with results at report@fotonower.com args[1339669682] : ('0.07920684912952393',) no score found for photo 1339669682 We are sending mail with results at report@fotonower.com args[1339669676] : ('0.07920684912952393',) no score found for photo 1339669676 We are sending mail with results at report@fotonower.com args[1339669651] : ('0.07920684912952393',) no score found for photo 1339669651 We are sending mail with results at report@fotonower.com args[1339669649] : ('0.07920684912952393',) no score found for photo 1339669649 We are sending mail with results at report@fotonower.com args[1339669304] : ('0.07920684912952393',) no score found for photo 1339669304 We are sending mail with results at report@fotonower.com args[1339669239] : ('0.07920684912952393',) no score found for photo 1339669239 We are sending mail with results at report@fotonower.com args[1339668950] : ('0.07920684912952393',) no score found for photo 1339668950 We are sending mail with results at report@fotonower.com args[1339668947] : ('0.07920684912952393',) no score found for photo 1339668947 We are sending mail with results at report@fotonower.com args[1339668700] : ('0.07920684912952393',) no score found for photo 1339668700 We are sending mail with results at report@fotonower.com args[1339668697] : ('0.07920684912952393',) no score found for photo 1339668697 We are sending mail with results at report@fotonower.com args[1339668569] : ('0.07920684912952393',) no score found for photo 1339668569 We are sending mail with results at report@fotonower.com args[1339668549] : ('0.07920684912952393',) no score found for photo 1339668549 We are sending mail with results at report@fotonower.com args[1339668546] : ('0.07920684912952393',) no score found for photo 1339668546 We are sending mail with results at report@fotonower.com args[1339668536] : ('0.07920684912952393',) no score found for photo 1339668536 We are sending mail with results at report@fotonower.com args[1339668533] : ('0.07920684912952393',) no score found for photo 1339668533 We are sending mail with results at report@fotonower.com args[1339668531] : ('0.07920684912952393',) no score found for photo 1339668531 We are sending mail with results at report@fotonower.com args[1339668522] : ('0.07920684912952393',) no score found for photo 1339668522 We are sending mail with results at report@fotonower.com args[1339668519] : ('0.07920684912952393',) no score found for photo 1339668519 We are sending mail with results at report@fotonower.com args[1339668516] : ('0.07920684912952393',) no score found for photo 1339668516 We are sending mail with results at report@fotonower.com args[1339668510] : ('0.07920684912952393',) no score found for photo 1339668510 We are sending mail with results at report@fotonower.com args[1339668500] : ('0.07920684912952393',) no score found for photo 1339668500 We are sending mail with results at report@fotonower.com args[1339668499] : ('0.07920684912952393',) no score found for photo 1339668499 We are sending mail with results at report@fotonower.com args[1339668497] : ('0.07920684912952393',) no score found for photo 1339668497 We are sending mail with results at report@fotonower.com args[1339668482] : ('0.07920684912952393',) no score found for photo 1339668482 We are sending mail with results at report@fotonower.com args[1339668468] : ('0.07920684912952393',) no score found for photo 1339668468 We are sending mail with results at report@fotonower.com args[1339668466] : ('0.07920684912952393',) no score found for photo 1339668466 We are sending mail with results at report@fotonower.com refus_total : 0.07920684912952393 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=20822915 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_P20822915_27-02-2025_05_34_34.pdf results_Auto_P20822915_27-02-2025_05_34_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_27-02-2025_05_34_34.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','20822915','results_Auto_P20822915_27-02-2025_05_34_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_27-02-2025_05_34_34.pdf','pdf','','0.32','0.07920684912952393') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] map_info['map_portfolio_photo'] : {20822915: [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] 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, '2618724') ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724') 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', '20822915', '1339670001', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724')] time used for this insertion : 0.4952828884124756 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.975287199020386 time spend to save output : 0.4956858158111572 total time spend for step 4 : 8.470973014831543 step5:split_time_score Thu Feb 27 05:34:41 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 : ['20822915'] 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 : [('20822915',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339669676: {'path': 'temp/1740630873_2056538_1339669676_594ef17ccdac2df59d257ddd2551df68.jpg', 'extension': 'jpg'}, 1339669682: {'path': 'temp/1740630873_2056538_1339669682_c214e82c61cec05a9c8ebf6bfbfcfa0e.jpg', 'extension': 'jpg'}, 1339669685: {'path': 'temp/1740630873_2056538_1339669685_af229011fb41c49755d99e7ebf5f4cc4.jpg', 'extension': 'jpg'}, 1339670001: {'path': 'temp/1740630873_2056538_1339670001_38522f9f73922efd6d1d4451f78ab701.jpg', 'extension': 'jpg'}, 1339668466: {'path': 'temp/1740630873_2056538_1339668466_ea76895efdff68d347dd5475d549cd9c.jpg', 'extension': 'jpg'}, 1339668468: {'path': 'temp/1740630873_2056538_1339668468_08df55241320be5c64d1c985f622179d.jpg', 'extension': 'jpg'}, 1339668482: {'path': 'temp/1740630873_2056538_1339668482_000c3c968a12d7e97a0d12b12a675ed6.jpg', 'extension': 'jpg'}, 1339668497: {'path': 'temp/1740630873_2056538_1339668497_0b446c70cb035453e4a813b420b7864a.jpg', 'extension': 'jpg'}, 1339668499: {'path': 'temp/1740630873_2056538_1339668499_1e4432dc0201f4da7464a0058571f037.jpg', 'extension': 'jpg'}, 1339668500: {'path': 'temp/1740630873_2056538_1339668500_5b1e0ec571c9cbfb2dcb6fc48f2c85d6.jpg', 'extension': 'jpg'}, 1339668510: {'path': 'temp/1740630873_2056538_1339668510_025c4602b9f27cb5028b48475fd8aa69.jpg', 'extension': 'jpg'}, 1339668516: {'path': 'temp/1740630873_2056538_1339668516_9dd2b0cae3a493592d56eddda47b7df7.jpg', 'extension': 'jpg'}, 1339668519: {'path': 'temp/1740630873_2056538_1339668519_0683accc8b976286e111ee75dc4f554e.jpg', 'extension': 'jpg'}, 1339668522: {'path': 'temp/1740630873_2056538_1339668522_410d3a6fefb45811170d0400a1e47939.jpg', 'extension': 'jpg'}, 1339668531: {'path': 'temp/1740630873_2056538_1339668531_3f452df8dbc1c792261b6c6ea34cc2d6.jpg', 'extension': 'jpg'}, 1339668533: {'path': 'temp/1740630873_2056538_1339668533_90b419ddd0443ee5fb752086a29e005f.jpg', 'extension': 'jpg'}, 1339668947: {'path': 'temp/1740630873_2056538_1339668947_2d32528a144805175733302061d44800.jpg', 'extension': 'jpg'}, 1339668950: {'path': 'temp/1740630873_2056538_1339668950_4395a7a47824081e60f671ea5758609e.jpg', 'extension': 'jpg'}, 1339669239: {'path': 'temp/1740630873_2056538_1339669239_2fa9537273500d74f3e860a3d0f053f4.jpg', 'extension': 'jpg'}, 1339669304: {'path': 'temp/1740630873_2056538_1339669304_4a1bef695f912b373b65a0698f73b225.jpg', 'extension': 'jpg'}, 1339669649: {'path': 'temp/1740630873_2056538_1339669649_2fabbcb81ccd826810fadfe96e1ac7fd.jpg', 'extension': 'jpg'}, 1339669651: {'path': 'temp/1740630873_2056538_1339669651_2c4710f3e4ea94b2514055efa74af2c0.jpg', 'extension': 'jpg'}, 1339668536: {'path': 'temp/1740630873_2056538_1339668536_d815125a918e7fb45a4a822f877236fe.jpg', 'extension': 'jpg'}, 1339668546: {'path': 'temp/1740630873_2056538_1339668546_5dfde4cbea9656d4f3c5d2a90746886d.jpg', 'extension': 'jpg'}, 1339668549: {'path': 'temp/1740630873_2056538_1339668549_f7890ab3d3d5fe7cf2ee7b9be948aeb2.jpg', 'extension': 'jpg'}, 1339668569: {'path': 'temp/1740630873_2056538_1339668569_533c0799c32f01c8ed8dd5f73834bcc4.jpg', 'extension': 'jpg'}, 1339668697: {'path': 'temp/1740630873_2056538_1339668697_df5ae3c79866f85acf8aa7075016eb91.jpg', 'extension': 'jpg'}, 1339668700: {'path': 'temp/1740630873_2056538_1339668700_f367f2417a31dd10f3d28ad3c51aaef4.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 = 20822915; (('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 = 20822915 group by h (('05', 28),) 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=20822915 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 (20822915) 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 (20822915) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20822915 Nombre de photos uploadées : 28 / 23040 (0%) 26022025 20822915 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 26022025 20822915 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1339668468, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/08df55241320be5c64d1c985f622179d.jpg', 'username': None, 'uploaded_at': 1740542675, 'text': 'image_26022025_05_01_33_10145.jpg'}, {'photo_id': 1339668466, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ea76895efdff68d347dd5475d549cd9c.jpg', 'username': None, 'uploaded_at': 1740542675, 'text': 'image_26022025_05_03_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339668482, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/000c3c968a12d7e97a0d12b12a675ed6.jpg', 'username': None, 'uploaded_at': 1740542734, 'text': 'image_26022025_05_03_43_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339668500, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5b1e0ec571c9cbfb2dcb6fc48f2c85d6.jpg', 'username': None, 'uploaded_at': 1740542794, 'text': 'image_26022025_05_04_34_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014758110046386719 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20822915, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03467750549316406 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20822915, 'dashboard_result_id': 9095776, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_26-02-2025_05_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20823244, 'dashboard_result_id': 9095777, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823244_26-02-2025_06_08_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823280, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20823623, 'dashboard_result_id': 9095778, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823623_26-02-2025_06_09_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823635, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20823915, 'dashboard_result_id': 9095779, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823915_26-02-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823977, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20824472, 'dashboard_result_id': 9095780, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20824472_26-02-2025_06_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20824473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20824474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20824475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20824476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20824477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20824478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20824479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20824480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20824481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20824482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20824483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20824484, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20825065, 'dashboard_result_id': 9095781, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20825658, 'dashboard_result_id': 9095782, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20826103, 'dashboard_result_id': 9095783, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20826652, 'dashboard_result_id': 9095784, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826652_26-02-2025_07_27_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826664, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20826951, 'dashboard_result_id': 9095785, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826951_26-02-2025_07_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20826977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826988, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20827919, 'dashboard_result_id': 9095786, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20827919_26-02-2025_07_49_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20827920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20827921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20827922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20827923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20827924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20827925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20827926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20827927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20827928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20827929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20827930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20827931, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20828584, 'dashboard_result_id': 9095787, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20828584_26-02-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20828612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20828613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20828614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20828615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20828616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20828617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20828618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20828619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20828620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20828621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20828622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20828623, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20829246, 'dashboard_result_id': 9095788, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20829828, 'dashboard_result_id': 9095789, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20830367, 'dashboard_result_id': 9095790, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20831063, 'dashboard_result_id': 9095791, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20831063_26-02-2025_09_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20831088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20831089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20831090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20831091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20831092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20831093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20831094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20831095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20831096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20831097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20831098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20831099, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20832581, 'dashboard_result_id': 9095792, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832581_26-02-2025_09_51_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20832630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20832631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832641, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20832732, 'dashboard_result_id': 9095793, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832732_26-02-2025_10_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20832757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20832758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832768, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20833362, 'dashboard_result_id': 9095794, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833362_26-02-2025_10_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833416, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20833879, 'dashboard_result_id': 9095795, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833879_26-02-2025_10_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833891, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20834422, 'dashboard_result_id': 9095796, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20834422_26-02-2025_10_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20834429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20834430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20834431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20834432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20834433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20834434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20834435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20834436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20834437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20834438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20834439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20834440, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20835080, 'dashboard_result_id': 9095797, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835080_26-02-2025_11_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20835093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835098, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20835982, 'dashboard_result_id': 9095798, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835982_26-02-2025_11_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20835987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835998, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20836575, 'dashboard_result_id': 9095799, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20836575_26-02-2025_11_32_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20836600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20836602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20836603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20836604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20836605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20836606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20836607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20836608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20836609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20836610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20836611, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20837208, 'dashboard_result_id': 9095800, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20837208_26-02-2025_11_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20837209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20837210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20837211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20837212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20837213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20837214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20837215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20837216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20837217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20837218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20837219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20837220, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20838192, 'dashboard_result_id': 9095801, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838192_26-02-2025_12_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20838218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838221, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20838686, 'dashboard_result_id': 9095802, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838686_26-02-2025_12_25_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20838712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838723, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20840618, 'dashboard_result_id': 9095803, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20840746, 'dashboard_result_id': 9095804, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20841272, 'dashboard_result_id': 9095805, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841272_26-02-2025_14_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841284, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20841741, 'dashboard_result_id': 9095806, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841741_26-02-2025_14_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841754, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20842109, 'dashboard_result_id': 9095807, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842109_26-02-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842187, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20842535, 'dashboard_result_id': 9095808, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842535_26-02-2025_15_05_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842547, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20843062, 'dashboard_result_id': 9095809, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843062_26-02-2025_15_22_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20843077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843088, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20843891, 'dashboard_result_id': 9095810, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843891_26-02-2025_15_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20843988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843989, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20844521, 'dashboard_result_id': 9095811, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844521_26-02-2025_15_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20844522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20844523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20844524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20844525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20844526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20844527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20844528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20844529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20844530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20844531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20844532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20844533, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20844984, 'dashboard_result_id': 9095812, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844984_26-02-2025_16_14_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845026, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20845790, 'dashboard_result_id': 9095813, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20845790_26-02-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845805, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20846033, 'dashboard_result_id': 9095814, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846033_26-02-2025_16_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846047, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20846799, 'dashboard_result_id': 9095815, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846799_26-02-2025_17_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846887, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20848465, 'dashboard_result_id': 9095816, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848465_26-02-2025_18_06_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848477, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20848689, 'dashboard_result_id': 9095817, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848689_26-02-2025_18_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848702, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20848890, 'dashboard_result_id': 9095818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848890_26-02-2025_18_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848902, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20849515, 'dashboard_result_id': 9095819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20849515_26-02-2025_18_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20849540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20849541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20849542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20849543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20849544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20849545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20849546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20849547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20849548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20849549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20849550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20849551, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20850107, 'dashboard_result_id': 9095820, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850107_26-02-2025_19_09_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20850180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20850183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850191, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20850765, 'dashboard_result_id': 9095821, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20851198, 'dashboard_result_id': 9095822, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20851819, 'dashboard_result_id': 9095823, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20852478, 'dashboard_result_id': 9095824, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_20_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20852479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852490, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20852902, 'dashboard_result_id': 9095825, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852902_26-02-2025_20_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20852957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852962, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20854055, 'dashboard_result_id': 9095826, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854055_26-02-2025_20_38_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854092, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20854419, 'dashboard_result_id': 9095827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854419_26-02-2025_21_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854504, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20855468, 'dashboard_result_id': 9095828, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20856043, 'dashboard_result_id': 9095829, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20856419, 'dashboard_result_id': 9095830, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20856900, 'dashboard_result_id': 9095831, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20857448, 'dashboard_result_id': 9095832, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857448_26-02-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857460, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20857573, 'dashboard_result_id': 9095833, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857573_26-02-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857588, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20858422, 'dashboard_result_id': 9095834, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858422_26-02-2025_23_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20858423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858434, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20858789, 'dashboard_result_id': 9095835, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858789_26-02-2025_23_17_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20858798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858801, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20859314, 'dashboard_result_id': 9095836, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859314_26-02-2025_23_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859326, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20859884, 'dashboard_result_id': 9095837, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859884_26-02-2025_23_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859896, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634985, 'mtr_portfolio_id': 20860315, 'dashboard_result_id': 9095838, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20860315_27-02-2025_01_01_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20860316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20860317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20860318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20860319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20860320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20860321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20860322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20860323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20860324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20860325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20860326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20860327, '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 = 20822915 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2618724, 'mtr_portfolio_id': 20822915, 'created_at': datetime.datetime(2025, 2, 27, 5, 34, 32), 'result': '0.07920684912952393', 'result_long': None, 'result_double': None}] Qualite : 0.07920684912952393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20822915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_27-02-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20822915 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_27-02-2025_05_34_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, 'pht': 3726}}" where mtr_portfolio_id = 20822915 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095776, 0.07920684912952393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_27-02-2025_05_34_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20823244 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614693, 'mtr_portfolio_id': 20823244, 'created_at': datetime.datetime(2025, 2, 26, 6, 7, 58), 'result': '0.10180091037246426', 'result_long': None, 'result_double': None}] Qualite : 0.10180091037246426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20823244 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823244_26-02-2025_06_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20823244 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823244_26-02-2025_06_08_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823280, 'pht': 3726}}" where mtr_portfolio_id = 20823244 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20823244 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095777, 0.10180091037246426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823244_26-02-2025_06_08_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823280, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20823623 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614694, 'mtr_portfolio_id': 20823623, 'created_at': datetime.datetime(2025, 2, 26, 6, 9, 28), 'result': '0.09248779747633946', 'result_long': None, 'result_double': None}] Qualite : 0.09248779747633946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20823623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823623_26-02-2025_06_09_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20823623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823623_26-02-2025_06_09_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823635, 'pht': 3726}}" where mtr_portfolio_id = 20823623 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20823623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095778, 0.09248779747633946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823623_26-02-2025_06_09_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823635, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20823915 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614722, 'mtr_portfolio_id': 20823915, 'created_at': datetime.datetime(2025, 2, 26, 6, 5, 30), 'result': '0.08533351467970449', 'result_long': None, 'result_double': None}] Qualite : 0.08533351467970449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20823915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823915_26-02-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20823915 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823915_26-02-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823977, 'pht': 3726}}" where mtr_portfolio_id = 20823915 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20823915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095779, 0.08533351467970449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20823915_26-02-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20823966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20823968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20823969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20823970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20823971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20823972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20823973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20823974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20823975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20823976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20823977, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20824472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614764, 'mtr_portfolio_id': 20824472, 'created_at': datetime.datetime(2025, 2, 26, 6, 20, 57), 'result': '0.09299503945293593', 'result_long': None, 'result_double': None}] Qualite : 0.09299503945293593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20824472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20824472_26-02-2025_06_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20824472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20824472_26-02-2025_06_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20824473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20824474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20824475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20824476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20824477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20824478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20824479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20824480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20824481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20824482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20824483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20824484, 'pht': 3726}}" where mtr_portfolio_id = 20824472 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20824472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095780, 0.09299503945293593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20824472_26-02-2025_06_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20824473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20824474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20824475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20824476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20824477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20824478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20824479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20824480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20824481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20824482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20824483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20824484, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20825065 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614796, 'mtr_portfolio_id': 20825065, 'created_at': datetime.datetime(2025, 2, 26, 6, 32, 58), 'result': '0.09624337592425238', 'result_long': None, 'result_double': None}] Qualite : 0.09624337592425238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20825065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20825065 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, 'pht': 3726}}" where mtr_portfolio_id = 20825065 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20825065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095781, 0.09624337592425238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20825658 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614832, 'mtr_portfolio_id': 20825658, 'created_at': datetime.datetime(2025, 2, 26, 6, 49, 31), 'result': '0.08817757645894735', 'result_long': None, 'result_double': None}] Qualite : 0.08817757645894735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20825658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20825658 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, 'pht': 3726}}" where mtr_portfolio_id = 20825658 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20825658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095782, 0.08817757645894735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20826103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614860, 'mtr_portfolio_id': 20826103, 'created_at': datetime.datetime(2025, 2, 26, 7, 2, 59), 'result': '0.09778675087806922', 'result_long': None, 'result_double': None}] Qualite : 0.09778675087806922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20826103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20826103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, 'pht': 3726}}" where mtr_portfolio_id = 20826103 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20826103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095783, 0.09778675087806922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20826652 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614919, 'mtr_portfolio_id': 20826652, 'created_at': datetime.datetime(2025, 2, 26, 7, 27), 'result': '0.09363732444533679', 'result_long': None, 'result_double': None}] Qualite : 0.09363732444533679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20826652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826652_26-02-2025_07_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20826652 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826652_26-02-2025_07_27_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826664, 'pht': 3726}}" where mtr_portfolio_id = 20826652 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20826652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095784, 0.09363732444533679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826652_26-02-2025_07_27_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826664, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20826951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2614935, 'mtr_portfolio_id': 20826951, 'created_at': datetime.datetime(2025, 2, 26, 7, 33), 'result': '0.08303579939247488', 'result_long': None, 'result_double': None}] Qualite : 0.08303579939247488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20826951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826951_26-02-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20826951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826951_26-02-2025_07_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20826977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826988, 'pht': 3726}}" where mtr_portfolio_id = 20826951 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20826951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095785, 0.08303579939247488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826951_26-02-2025_07_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20826977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826988, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20827919 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615013, 'mtr_portfolio_id': 20827919, 'created_at': datetime.datetime(2025, 2, 26, 7, 49, 30), 'result': '0.09804586937441065', 'result_long': None, 'result_double': None}] Qualite : 0.09804586937441065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20827919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20827919_26-02-2025_07_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20827919 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20827919_26-02-2025_07_49_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20827920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20827921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20827922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20827923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20827924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20827925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20827926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20827927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20827928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20827929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20827930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20827931, 'pht': 3726}}" where mtr_portfolio_id = 20827919 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20827919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095786, 0.09804586937441065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20827919_26-02-2025_07_49_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20827920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20827921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20827922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20827923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20827924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20827925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20827926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20827927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20827928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20827929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20827930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20827931, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20828584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615047, 'mtr_portfolio_id': 20828584, 'created_at': datetime.datetime(2025, 2, 26, 8, 3), 'result': '0.08910989366237981', 'result_long': None, 'result_double': None}] Qualite : 0.08910989366237981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20828584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20828584_26-02-2025_08_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20828584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20828584_26-02-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20828612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20828613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20828614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20828615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20828616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20828617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20828618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20828619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20828620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20828621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20828622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20828623, 'pht': 3726}}" where mtr_portfolio_id = 20828584 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20828584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095787, 0.08910989366237981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20828584_26-02-2025_08_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20828612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20828613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20828614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20828615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20828616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20828617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20828618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20828619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20828620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20828621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20828622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20828623, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20829246 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615097, 'mtr_portfolio_id': 20829246, 'created_at': datetime.datetime(2025, 2, 26, 8, 21, 29), 'result': '0.10081344309685236', 'result_long': None, 'result_double': None}] Qualite : 0.10081344309685236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20829246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20829246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, 'pht': 3726}}" where mtr_portfolio_id = 20829246 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20829246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095788, 0.10081344309685236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20829828 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615133, 'mtr_portfolio_id': 20829828, 'created_at': datetime.datetime(2025, 2, 26, 8, 33), 'result': '0.09222898747848117', 'result_long': None, 'result_double': None}] Qualite : 0.09222898747848117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20829828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20829828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, 'pht': 3726}}" where mtr_portfolio_id = 20829828 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20829828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095789, 0.09222898747848117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20830367 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615179, 'mtr_portfolio_id': 20830367, 'created_at': datetime.datetime(2025, 2, 26, 8, 51, 1), 'result': '0.08153039902497902', 'result_long': None, 'result_double': None}] Qualite : 0.08153039902497902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20830367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20830367 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, 'pht': 3726}}" where mtr_portfolio_id = 20830367 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20830367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095790, 0.08153039902497902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20831063 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615229, 'mtr_portfolio_id': 20831063, 'created_at': datetime.datetime(2025, 2, 26, 9, 3), 'result': '0.09031911713083872', 'result_long': None, 'result_double': None}] Qualite : 0.09031911713083872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20831063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20831063_26-02-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20831063 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20831063_26-02-2025_09_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20831088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20831089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20831090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20831091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20831092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20831093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20831094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20831095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20831096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20831097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20831098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20831099, 'pht': 3726}}" where mtr_portfolio_id = 20831063 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20831063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095791, 0.09031911713083872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20831063_26-02-2025_09_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20831088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20831089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20831090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20831091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20831092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20831093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20831094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20831095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20831096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20831097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20831098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20831099, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20832581 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615375, 'mtr_portfolio_id': 20832581, 'created_at': datetime.datetime(2025, 2, 26, 9, 50, 59), 'result': '0.06802916996343567', 'result_long': None, 'result_double': None}] Qualite : 0.06802916996343567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20832581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832581_26-02-2025_09_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20832581 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832581_26-02-2025_09_51_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20832630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20832631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832641, 'pht': 3726}}" where mtr_portfolio_id = 20832581 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20832581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095792, 0.06802916996343567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832581_26-02-2025_09_51_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20832630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20832631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832641, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20832732 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615384, 'mtr_portfolio_id': 20832732, 'created_at': datetime.datetime(2025, 2, 26, 10, 2, 57), 'result': '0.07409201947403932', 'result_long': None, 'result_double': None}] Qualite : 0.07409201947403932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20832732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832732_26-02-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20832732 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832732_26-02-2025_10_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20832757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20832758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832768, 'pht': 3726}}" where mtr_portfolio_id = 20832732 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20832732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095793, 0.07409201947403932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20832732_26-02-2025_10_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20832757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20832758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20832759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20832760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20832761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20832762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20832763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20832764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20832765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20832766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20832767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20832768, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20833362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615508, 'mtr_portfolio_id': 20833362, 'created_at': datetime.datetime(2025, 2, 26, 10, 18, 59), 'result': '0.0819925965856823', 'result_long': None, 'result_double': None}] Qualite : 0.0819925965856823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20833362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833362_26-02-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20833362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833362_26-02-2025_10_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833416, 'pht': 3726}}" where mtr_portfolio_id = 20833362 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20833362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095794, 0.0819925965856823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833362_26-02-2025_10_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833416, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20833879 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615542, 'mtr_portfolio_id': 20833879, 'created_at': datetime.datetime(2025, 2, 26, 10, 33), 'result': '0.06711568673733517', 'result_long': None, 'result_double': None}] Qualite : 0.06711568673733517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20833879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833879_26-02-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20833879 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833879_26-02-2025_10_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833891, 'pht': 3726}}" where mtr_portfolio_id = 20833879 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20833879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095795, 0.06711568673733517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20833879_26-02-2025_10_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20833880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20833881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20833882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20833883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20833884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20833885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20833886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20833887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20833888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20833889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20833890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20833891, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20834422 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615604, 'mtr_portfolio_id': 20834422, 'created_at': datetime.datetime(2025, 2, 26, 10, 48, 56), 'result': '0.08594984110333204', 'result_long': None, 'result_double': None}] Qualite : 0.08594984110333204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20834422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20834422_26-02-2025_10_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20834422 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20834422_26-02-2025_10_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20834429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20834430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20834431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20834432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20834433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20834434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20834435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20834436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20834437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20834438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20834439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20834440, 'pht': 3726}}" where mtr_portfolio_id = 20834422 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20834422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095796, 0.08594984110333204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20834422_26-02-2025_10_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20834429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20834430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20834431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20834432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20834433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20834434, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20834435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20834436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20834437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20834438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20834439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20834440, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20835080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615662, 'mtr_portfolio_id': 20835080, 'created_at': datetime.datetime(2025, 2, 26, 11, 6, 59), 'result': '0.08858075317155867', 'result_long': None, 'result_double': None}] Qualite : 0.08858075317155867 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20835080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835080_26-02-2025_11_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20835080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835080_26-02-2025_11_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20835093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835098, 'pht': 3726}}" where mtr_portfolio_id = 20835080 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20835080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095797, 0.08858075317155867, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835080_26-02-2025_11_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835092, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20835093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835098, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20835982 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615722, 'mtr_portfolio_id': 20835982, 'created_at': datetime.datetime(2025, 2, 26, 11, 17, 30), 'result': '0.09338257423634243', 'result_long': None, 'result_double': None}] Qualite : 0.09338257423634243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20835982 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835982_26-02-2025_11_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20835982 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835982_26-02-2025_11_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20835987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835998, 'pht': 3726}}" where mtr_portfolio_id = 20835982 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20835982 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095798, 0.09338257423634243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20835982_26-02-2025_11_17_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20835987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20835989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20835990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20835991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20835992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20835993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20835994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20835995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20835996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20835997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20835998, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20836575 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615775, 'mtr_portfolio_id': 20836575, 'created_at': datetime.datetime(2025, 2, 26, 11, 32, 32), 'result': '0.0895266387705175', 'result_long': None, 'result_double': None}] Qualite : 0.0895266387705175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20836575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20836575_26-02-2025_11_32_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20836575 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20836575_26-02-2025_11_32_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20836600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20836602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20836603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20836604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20836605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20836606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20836607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20836608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20836609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20836610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20836611, 'pht': 3726}}" where mtr_portfolio_id = 20836575 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20836575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095799, 0.0895266387705175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20836575_26-02-2025_11_32_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20836600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20836602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20836603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20836604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20836605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20836606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20836607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20836608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20836609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20836610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20836611, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20837208 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615854, 'mtr_portfolio_id': 20837208, 'created_at': datetime.datetime(2025, 2, 26, 11, 48, 58), 'result': '0.09905401500272112', 'result_long': None, 'result_double': None}] Qualite : 0.09905401500272112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20837208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20837208_26-02-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20837208 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20837208_26-02-2025_11_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20837209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20837210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20837211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20837212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20837213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20837214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20837215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20837216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20837217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20837218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20837219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20837220, 'pht': 3726}}" where mtr_portfolio_id = 20837208 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20837208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095800, 0.09905401500272112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20837208_26-02-2025_11_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20837209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20837210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20837211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20837212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20837213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20837214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20837215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20837216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20837217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20837218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20837219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20837220, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20838192 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615911, 'mtr_portfolio_id': 20838192, 'created_at': datetime.datetime(2025, 2, 26, 12, 5, 1), 'result': '0.09612699747675608', 'result_long': None, 'result_double': None}] Qualite : 0.09612699747675608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20838192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838192_26-02-2025_12_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20838192 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838192_26-02-2025_12_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20838218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838221, 'pht': 3726}}" where mtr_portfolio_id = 20838192 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20838192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095801, 0.09612699747675608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838192_26-02-2025_12_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20838218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838221, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20838686 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2615955, 'mtr_portfolio_id': 20838686, 'created_at': datetime.datetime(2025, 2, 26, 12, 25, 4), 'result': '0.10621943428452106', 'result_long': None, 'result_double': None}] Qualite : 0.10621943428452106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20838686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838686_26-02-2025_12_25_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20838686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838686_26-02-2025_12_25_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20838712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838723, 'pht': 3726}}" where mtr_portfolio_id = 20838686 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20838686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095802, 0.10621943428452106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20838686_26-02-2025_12_25_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20838712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20838713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20838714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20838715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20838716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20838717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20838718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20838719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20838720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20838721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20838722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20838723, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20840618 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616154, 'mtr_portfolio_id': 20840618, 'created_at': datetime.datetime(2025, 2, 26, 13, 47, 30), 'result': '0.10345383147205522', 'result_long': None, 'result_double': None}] Qualite : 0.10345383147205522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20840618 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20840618%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20840618 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20840618 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20840618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095803, 0.10345383147205522, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}, 'url_report': ''}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20840746 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616163, 'mtr_portfolio_id': 20840746, 'created_at': datetime.datetime(2025, 2, 26, 14, 2, 59), 'result': '0.10973696435295362', 'result_long': None, 'result_double': None}] Qualite : 0.10973696435295362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20840746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20840746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, 'pht': 3726}}" where mtr_portfolio_id = 20840746 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20840746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095804, 0.10973696435295362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20841272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616215, 'mtr_portfolio_id': 20841272, 'created_at': datetime.datetime(2025, 2, 26, 14, 19), 'result': '0.09373591563168154', 'result_long': None, 'result_double': None}] Qualite : 0.09373591563168154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20841272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841272_26-02-2025_14_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20841272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841272_26-02-2025_14_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841284, 'pht': 3726}}" where mtr_portfolio_id = 20841272 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20841272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095805, 0.09373591563168154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841272_26-02-2025_14_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841284, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20841741 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616252, 'mtr_portfolio_id': 20841741, 'created_at': datetime.datetime(2025, 2, 26, 14, 37), 'result': '0.11206672016388798', 'result_long': None, 'result_double': None}] Qualite : 0.11206672016388798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20841741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841741_26-02-2025_14_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20841741 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841741_26-02-2025_14_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841754, 'pht': 3726}}" where mtr_portfolio_id = 20841741 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20841741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095806, 0.11206672016388798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20841741_26-02-2025_14_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20841743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20841744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20841745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20841746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20841747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20841748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20841749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20841750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20841751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20841752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20841753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20841754, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20842109 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616290, 'mtr_portfolio_id': 20842109, 'created_at': datetime.datetime(2025, 2, 26, 14, 48, 59), 'result': '0.11208761624219547', 'result_long': None, 'result_double': None}] Qualite : 0.11208761624219547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20842109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842109_26-02-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20842109 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842109_26-02-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842187, 'pht': 3726}}" where mtr_portfolio_id = 20842109 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20842109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095807, 0.11208761624219547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842109_26-02-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842187, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20842535 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616320, 'mtr_portfolio_id': 20842535, 'created_at': datetime.datetime(2025, 2, 26, 15, 5, 31), 'result': '0.10870866083522285', 'result_long': None, 'result_double': None}] Qualite : 0.10870866083522285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20842535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842535_26-02-2025_15_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20842535 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842535_26-02-2025_15_05_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842547, 'pht': 3726}}" where mtr_portfolio_id = 20842535 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20842535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095808, 0.10870866083522285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20842535_26-02-2025_15_05_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20842536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20842537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20842538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20842539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20842540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20842541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20842542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20842543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20842544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20842545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20842546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20842547, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20843062 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616396, 'mtr_portfolio_id': 20843062, 'created_at': datetime.datetime(2025, 2, 26, 15, 22, 56), 'result': '0.09643796888986089', 'result_long': None, 'result_double': None}] Qualite : 0.09643796888986089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20843062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843062_26-02-2025_15_22_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20843062 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843062_26-02-2025_15_22_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20843077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843088, 'pht': 3726}}" where mtr_portfolio_id = 20843062 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20843062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095809, 0.09643796888986089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843062_26-02-2025_15_22_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20843077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20843891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616475, 'mtr_portfolio_id': 20843891, 'created_at': datetime.datetime(2025, 2, 26, 15, 33), 'result': '0.09691567209295301', 'result_long': None, 'result_double': None}] Qualite : 0.09691567209295301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20843891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843891_26-02-2025_15_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20843891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843891_26-02-2025_15_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20843988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843989, 'pht': 3726}}" where mtr_portfolio_id = 20843891 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20843891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095810, 0.09691567209295301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20843891_26-02-2025_15_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20843978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20843979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20843980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20843981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20843982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20843983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20843984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20843985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20843986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20843987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20843988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20843989, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20844521 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616504, 'mtr_portfolio_id': 20844521, 'created_at': datetime.datetime(2025, 2, 26, 15, 49, 27), 'result': '0.08988872924328951', 'result_long': None, 'result_double': None}] Qualite : 0.08988872924328951 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20844521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844521_26-02-2025_15_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20844521 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844521_26-02-2025_15_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20844522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20844523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20844524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20844525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20844526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20844527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20844528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20844529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20844530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20844531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20844532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20844533, 'pht': 3726}}" where mtr_portfolio_id = 20844521 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20844521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095811, 0.08988872924328951, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844521_26-02-2025_15_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20844522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20844523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20844524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20844525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20844526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20844527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20844528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20844529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20844530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20844531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20844532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20844533, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20844984 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616558, 'mtr_portfolio_id': 20844984, 'created_at': datetime.datetime(2025, 2, 26, 16, 14, 56), 'result': '0.09777961692239348', 'result_long': None, 'result_double': None}] Qualite : 0.09777961692239348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20844984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844984_26-02-2025_16_14_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20844984 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844984_26-02-2025_16_14_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845026, 'pht': 3726}}" where mtr_portfolio_id = 20844984 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20844984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095812, 0.09777961692239348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20844984_26-02-2025_16_14_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20845790 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616648, 'mtr_portfolio_id': 20845790, 'created_at': datetime.datetime(2025, 2, 26, 16, 18, 58), 'result': '0.0996765878888914', 'result_long': None, 'result_double': None}] Qualite : 0.0996765878888914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20845790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20845790_26-02-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20845790 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20845790_26-02-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845805, 'pht': 3726}}" where mtr_portfolio_id = 20845790 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20845790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095813, 0.0996765878888914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20845790_26-02-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20845794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20845795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20845796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20845797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20845798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20845799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20845800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20845801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20845802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20845803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20845804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20845805, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20846033 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616662, 'mtr_portfolio_id': 20846033, 'created_at': datetime.datetime(2025, 2, 26, 16, 38, 59), 'result': '0.1020733906869411', 'result_long': None, 'result_double': None}] Qualite : 0.1020733906869411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20846033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846033_26-02-2025_16_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20846033 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846033_26-02-2025_16_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846047, 'pht': 3726}}" where mtr_portfolio_id = 20846033 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20846033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095814, 0.1020733906869411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846033_26-02-2025_16_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846047, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20846799 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616768, 'mtr_portfolio_id': 20846799, 'created_at': datetime.datetime(2025, 2, 26, 17, 17), 'result': '0.11609915895676277', 'result_long': None, 'result_double': None}] Qualite : 0.11609915895676277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20846799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846799_26-02-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20846799 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846799_26-02-2025_17_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846887, 'pht': 3726}}" where mtr_portfolio_id = 20846799 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20846799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095815, 0.11609915895676277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20846799_26-02-2025_17_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20846876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20846877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20846878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20846879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20846880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20846881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20846882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20846883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20846884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20846885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20846886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20846887, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20848465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616890, 'mtr_portfolio_id': 20848465, 'created_at': datetime.datetime(2025, 2, 26, 18, 6, 57), 'result': '0.113764538614385', 'result_long': None, 'result_double': None}] Qualite : 0.113764538614385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20848465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848465_26-02-2025_18_06_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20848465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848465_26-02-2025_18_06_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848477, 'pht': 3726}}" where mtr_portfolio_id = 20848465 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20848465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095816, 0.113764538614385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848465_26-02-2025_18_06_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848477, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20848689 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616936, 'mtr_portfolio_id': 20848689, 'created_at': datetime.datetime(2025, 2, 26, 18, 18, 57), 'result': '0.09849057950248476', 'result_long': None, 'result_double': None}] Qualite : 0.09849057950248476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20848689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848689_26-02-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20848689 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848689_26-02-2025_18_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848702, 'pht': 3726}}" where mtr_portfolio_id = 20848689 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20848689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095817, 0.09849057950248476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848689_26-02-2025_18_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848702, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20848890 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2616984, 'mtr_portfolio_id': 20848890, 'created_at': datetime.datetime(2025, 2, 26, 18, 32, 31), 'result': '0.10758078547437176', 'result_long': None, 'result_double': None}] Qualite : 0.10758078547437176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20848890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848890_26-02-2025_18_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20848890 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848890_26-02-2025_18_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848902, 'pht': 3726}}" where mtr_portfolio_id = 20848890 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20848890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095818, 0.10758078547437176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20848890_26-02-2025_18_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20848891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20848892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20848893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20848894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20848895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20848896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20848897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20848898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20848899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20848900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20848901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20848902, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20849515 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617104, 'mtr_portfolio_id': 20849515, 'created_at': datetime.datetime(2025, 2, 26, 18, 52, 58), 'result': '0.10510066570069786', 'result_long': None, 'result_double': None}] Qualite : 0.10510066570069786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20849515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20849515_26-02-2025_18_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20849515 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20849515_26-02-2025_18_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20849540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20849541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20849542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20849543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20849544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20849545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20849546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20849547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20849548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20849549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20849550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20849551, 'pht': 3726}}" where mtr_portfolio_id = 20849515 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20849515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095819, 0.10510066570069786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20849515_26-02-2025_18_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20849540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20849541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20849542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20849543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20849544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20849545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20849546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20849547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20849548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20849549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20849550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20849551, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20850107 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617187, 'mtr_portfolio_id': 20850107, 'created_at': datetime.datetime(2025, 2, 26, 19, 8, 59), 'result': '0.11155156732124209', 'result_long': None, 'result_double': None}] Qualite : 0.11155156732124209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20850107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850107_26-02-2025_19_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20850107 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850107_26-02-2025_19_09_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20850180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20850183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850191, 'pht': 3726}}" where mtr_portfolio_id = 20850107 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20850107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095820, 0.11155156732124209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850107_26-02-2025_19_09_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20850180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20850183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850191, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20850765 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617250, 'mtr_portfolio_id': 20850765, 'created_at': datetime.datetime(2025, 2, 26, 19, 18, 59), 'result': '0.10272645502208905', 'result_long': None, 'result_double': None}] Qualite : 0.10272645502208905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20850765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20850765 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, 'pht': 3726}}" where mtr_portfolio_id = 20850765 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20850765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095821, 0.10272645502208905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20851198 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617296, 'mtr_portfolio_id': 20851198, 'created_at': datetime.datetime(2025, 2, 26, 19, 32, 58), 'result': '0.09350744993343718', 'result_long': None, 'result_double': None}] Qualite : 0.09350744993343718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20851198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20851198 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, 'pht': 3726}}" where mtr_portfolio_id = 20851198 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20851198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095822, 0.09350744993343718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20851819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617385, 'mtr_portfolio_id': 20851819, 'created_at': datetime.datetime(2025, 2, 26, 19, 52, 56), 'result': '0.10541526736032698', 'result_long': None, 'result_double': None}] Qualite : 0.10541526736032698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20851819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20851819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, 'pht': 3726}}" where mtr_portfolio_id = 20851819 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20851819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095823, 0.10541526736032698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20852478 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617453, 'mtr_portfolio_id': 20852478, 'created_at': datetime.datetime(2025, 2, 26, 20, 4, 58), 'result': '0.11088379870292768', 'result_long': None, 'result_double': None}] Qualite : 0.11088379870292768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20852478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20852478 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_20_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20852479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852490, 'pht': 3726}}" where mtr_portfolio_id = 20852478 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20852478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095824, 0.11088379870292768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_20_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20852479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852490, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20852902 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617508, 'mtr_portfolio_id': 20852902, 'created_at': datetime.datetime(2025, 2, 26, 20, 26, 58), 'result': '0.10112721532294451', 'result_long': None, 'result_double': None}] Qualite : 0.10112721532294451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20852902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852902_26-02-2025_20_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20852902 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852902_26-02-2025_20_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20852957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852962, 'pht': 3726}}" where mtr_portfolio_id = 20852902 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20852902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095825, 0.10112721532294451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852902_26-02-2025_20_26_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20852957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20854055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617595, 'mtr_portfolio_id': 20854055, 'created_at': datetime.datetime(2025, 2, 26, 20, 38, 58), 'result': '0.11511898417835649', 'result_long': None, 'result_double': None}] Qualite : 0.11511898417835649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20854055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854055_26-02-2025_20_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20854055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854055_26-02-2025_20_38_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854092, 'pht': 3726}}" where mtr_portfolio_id = 20854055 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20854055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095826, 0.11511898417835649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854055_26-02-2025_20_38_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854092, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20854419 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617640, 'mtr_portfolio_id': 20854419, 'created_at': datetime.datetime(2025, 2, 26, 21, 20, 57), 'result': '0.10361750841493632', 'result_long': None, 'result_double': None}] Qualite : 0.10361750841493632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20854419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854419_26-02-2025_21_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20854419 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854419_26-02-2025_21_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854504, 'pht': 3726}}" where mtr_portfolio_id = 20854419 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20854419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095827, 0.10361750841493632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20854419_26-02-2025_21_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20854493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20854494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20854495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20854496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20854497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20854498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20854499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20854500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20854501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20854502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20854503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20854504, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20855468 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617726, 'mtr_portfolio_id': 20855468, 'created_at': datetime.datetime(2025, 2, 26, 21, 33, 28), 'result': '0.09852803363838154', 'result_long': None, 'result_double': None}] Qualite : 0.09852803363838154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20855468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20855468 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, 'pht': 3726}}" where mtr_portfolio_id = 20855468 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20855468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095828, 0.09852803363838154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20855468_26-02-2025_21_33_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20855469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20855470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20855471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20855472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20855473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20855474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20855475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20855476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20855477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20855478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20855479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20855480, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20856043 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617758, 'mtr_portfolio_id': 20856043, 'created_at': datetime.datetime(2025, 2, 26, 21, 54, 58), 'result': '0.09443002056884146', 'result_long': None, 'result_double': None}] Qualite : 0.09443002056884146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856043 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, 'pht': 3726}}" where mtr_portfolio_id = 20856043 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20856043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095829, 0.09443002056884146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856043_26-02-2025_21_54_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20856044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856050, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856055, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20856419 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617788, 'mtr_portfolio_id': 20856419, 'created_at': datetime.datetime(2025, 2, 26, 22, 5), 'result': '0.10444942231048877', 'result_long': None, 'result_double': None}] Qualite : 0.10444942231048877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856419 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, 'pht': 3726}}" where mtr_portfolio_id = 20856419 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20856419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095830, 0.10444942231048877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856419_26-02-2025_22_05_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20856471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856473, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20856479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856482, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20856900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617818, 'mtr_portfolio_id': 20856900, 'created_at': datetime.datetime(2025, 2, 26, 22, 18, 59), 'result': '0.116456460548406', 'result_long': None, 'result_double': None}] Qualite : 0.116456460548406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20856900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20856900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, 'pht': 3726}}" where mtr_portfolio_id = 20856900 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20856900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095831, 0.116456460548406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20856900_26-02-2025_22_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20856925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20856926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20856927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20856928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20856929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20856930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20856931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20856932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20856933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20856934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20856935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20856936, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20857448 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617851, 'mtr_portfolio_id': 20857448, 'created_at': datetime.datetime(2025, 2, 26, 22, 32, 58), 'result': '0.1409290653273137', 'result_long': None, 'result_double': None}] Qualite : 0.1409290653273137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20857448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857448_26-02-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20857448 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857448_26-02-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857460, 'pht': 3726}}" where mtr_portfolio_id = 20857448 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20857448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095832, 0.1409290653273137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857448_26-02-2025_22_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857460, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20857573 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617884, 'mtr_portfolio_id': 20857573, 'created_at': datetime.datetime(2025, 2, 26, 22, 48, 57), 'result': '0.12238231803836284', 'result_long': None, 'result_double': None}] Qualite : 0.12238231803836284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20857573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857573_26-02-2025_22_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20857573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857573_26-02-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857588, 'pht': 3726}}" where mtr_portfolio_id = 20857573 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20857573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095833, 0.12238231803836284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20857573_26-02-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20857577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20857578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20857579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20857580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20857581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20857582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20857583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20857584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20857585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20857586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20857587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20857588, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20858422 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617931, 'mtr_portfolio_id': 20858422, 'created_at': datetime.datetime(2025, 2, 26, 23, 3), 'result': '0.12031977115887663', 'result_long': None, 'result_double': None}] Qualite : 0.12031977115887663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20858422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858422_26-02-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20858422 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858422_26-02-2025_23_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20858423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858434, 'pht': 3726}}" where mtr_portfolio_id = 20858422 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20858422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095834, 0.12031977115887663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858422_26-02-2025_23_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20858423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858434, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20858789 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617957, 'mtr_portfolio_id': 20858789, 'created_at': datetime.datetime(2025, 2, 26, 23, 17, 27), 'result': '0.1297871421903699', 'result_long': None, 'result_double': None}] Qualite : 0.1297871421903699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20858789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858789_26-02-2025_23_17_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20858789 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858789_26-02-2025_23_17_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20858798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858801, 'pht': 3726}}" where mtr_portfolio_id = 20858789 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20858789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095835, 0.1297871421903699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20858789_26-02-2025_23_17_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20858790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20858791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20858792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20858793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20858794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20858795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20858796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20858797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20858798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20858799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20858800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20858801, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20859314 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2617982, 'mtr_portfolio_id': 20859314, 'created_at': datetime.datetime(2025, 2, 26, 23, 36, 31), 'result': '0.1158730903107423', 'result_long': None, 'result_double': None}] Qualite : 0.1158730903107423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20859314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859314_26-02-2025_23_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20859314 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859314_26-02-2025_23_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859326, 'pht': 3726}}" where mtr_portfolio_id = 20859314 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20859314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095836, 0.1158730903107423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859314_26-02-2025_23_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859326, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20859884 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2618015, 'mtr_portfolio_id': 20859884, 'created_at': datetime.datetime(2025, 2, 26, 23, 49, 29), 'result': '0.10968201934970113', 'result_long': None, 'result_double': None}] Qualite : 0.10968201934970113 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20859884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859884_26-02-2025_23_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20859884 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859884_26-02-2025_23_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859896, 'pht': 3726}}" where mtr_portfolio_id = 20859884 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20859884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095837, 0.10968201934970113, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20859884_26-02-2025_23_49_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20859885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20859886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20859887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20859888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20859889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20859890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20859891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20859892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20859893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20859894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20859895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20859896, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20860315 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2618038, 'mtr_portfolio_id': 20860315, 'created_at': datetime.datetime(2025, 2, 27, 1, 1, 31), 'result': '0.12118769587984397', 'result_long': None, 'result_double': None}] Qualite : 0.12118769587984397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20860315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20860315_27-02-2025_01_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20860315 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20860315_27-02-2025_01_01_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20860316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20860317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20860318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20860319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20860320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20860321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20860322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20860323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20860324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20860325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20860326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20860327, 'pht': 3726}}" where mtr_portfolio_id = 20860315 and dashboard_run_id = 1634985 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20860315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9095838, 0.12118769587984397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20860315_27-02-2025_01_01_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20860316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20860317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20860318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20860319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20860320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20860321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20860322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20860323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20860324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20860325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20860326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20860327, '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 (20822915,20823244,20823623,20823915,20824472,20825065,20825658,20826103,20826652,20826951,20827919,20828584,20829246,20829828,20830367,20831063,20832581,20832732,20833362,20833879,20834422,20835080,20835982,20836575,20837208,20838192,20838686,20840618,20840746,20841272,20841741,20842109,20842535,20843062,20843891,20844521,20844984,20845790,20846033,20846799,20848465,20848689,20848890,20849515,20850107,20850765,20851198,20851819,20852478,20852902,20854055,20854419,20855468,20856043,20856419,20856900,20857448,20857573,20858422,20858789,20859314,20859884,20860315) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,), (1339669649,), (1339669651,), (1339669676,), (1339669682,), (1339669685,), (1339670001,), (1339669782,), (1339669998,), (1339670070,), (1339670074,), (1339670078,), (1339670080,), (1339670091,), (1339670094,), (1339670097,), (1339670102,), (1339670106,), (1339670108,), (1339670115,), (1339670118,), (1339670121,), (1339670131,), (1339670133,), (1339670151,), (1339670157,), (1339670160,), (1339670162,), (1339670180,), (1339670197,), (1339670203,), (1339670207,), (1339670289,), (1339670291,), (1339670293,), (1339670300,), (1339670324,), (1339670388,), (1339670427,), (1339670430,), (1339670432,), (1339670435,), (1339670438,), (1339670444,), (1339670447,), (1339670459,), (1339670467,), (1339670469,), (1339670481,), (1339670486,), (1339670490,), (1339670493,), (1339670523,), (1339670549,), (1339670552,), (1339670554,), (1339670557,), (1339670567,), (1339670570,), (1339670573,), (1339670575,), (1339670577,), (1339670579,), (1339670588,), (1339670592,), (1339670594,), (1339670597,), (1339670599,), (1339670612,), (1339670615,), (1339670618,), (1339670620,), (1339670623,), (1339670633,), (1339670639,), (1339670645,), (1339670649,), (1339670651,), (1339670683,), (1339670672,), (1339670674,), (1339670677,), (1339670679,), (1339670699,), (1339670706,), (1339670709,), (1339670712,), (1339670729,), (1339670732,), (1339670735,), (1339670738,), (1339670777,), (1339670800,), (1339671343,), (1339671346,), (1339671349,), (1339671353,), (1339671361,), (1339671625,), (1339671628,), (1339671631,), (1339671633,), (1339671643,), (1339671651,), (1339671662,), (1339671665,), (1339671668,), (1339671671,), (1339671673,), (1339671690,), (1339671693,), (1339671695,), (1339671698,), (1339671701,), (1339671703,), (1339672083,), (1339672087,), (1339672091,), (1339672094,), (1339672101,), (1339672104,), (1339672107,), (1339672109,), (1339672112,), (1339672114,), (1339672121,), (1339672124,), (1339672127,), (1339672157,), (1339672136,), (1339672139,), (1339672141,), (1339672144,), (1339672148,), (1339672167,), (1339672169,), (1339672172,), (1339672174,), (1339672188,), (1339672191,), (1339672194,), (1339672197,), (1339672199,), (1339672203,), (1339672219,), (1339672223,), (1339672230,), (1339672237,), (1339672240,), (1339672284,), (1339672287,), (1339672290,), (1339672293,), (1339672301,), (1339672306,), (1339672354,), (1339672357,), (1339672360,), (1339672362,), (1339672371,), (1339672374,), (1339672376,), (1339672379,), (1339672411,), (1339672414,), (1339672417,), (1339672420,), (1339672423,), (1339672425,), (1339672451,), (1339672455,), (1339672457,), (1339672460,), (1339672576,), (1339672579,), (1339672583,), (1339672595,), (1339672665,), (1339672745,), (1339673187,), (1339673190,), (1339673222,), (1339673247,), (1339673250,), (1339673253,), (1339673282,), (1339673285,), (1339673308,), (1339673311,), (1339673313,), (1339673316,), (1339673318,), (1339673320,), (1339673325,), (1339673327,), (1339673329,), (1339673331,), (1339673363,), (1339673336,), (1339673346,), (1339673355,), (1339673360,), (1339673396,), (1339673399,), (1339673402,), (1339673406,), (1339673411,), (1339673413,), (1339673429,), (1339673434,), (1339673437,), (1339673440,), (1339674113,), (1339674131,), (1339674133,), (1339674167,), (1339674170,), (1339674238,), (1339674240,), (1339674243,), (1339674246,), (1339674249,), (1339674259,), (1339674262,), (1339674265,), (1339674268,), (1339674295,), (1339674297,), (1339674301,), (1339674305,), (1339674308,), (1339674310,), (1339674317,), (1339674320,), (1339674323,), (1339674326,), (1339674329,), (1339674352,), (1339674357,), (1339674361,), (1339674365,), (1339674367,), (1339674391,), (1339674394,), (1339674397,), (1339674400,), (1339674403,), (1339674438,), (1339674441,), (1339674444,), (1339674446,), (1339674454,), (1339674457,), (1339674460,), (1339674462,), (1339674465,), (1339674471,), (1339674484,), (1339674491,), (1339674497,), (1339674500,), (1339674508,), (1339674510,), (1339674513,), (1339674516,), (1339674519,), (1339674524,), (1339674540,), (1339674543,), (1339674546,), (1339674548,), (1339674858,), (1339674687,), (1339674779,), (1339674782,), (1339674800,), (1339674846,), (1339674873,), (1339674878,), (1339674881,), (1339674884,), (1339674886,), (1339674903,), (1339674905,), (1339674908,), (1339674924,), (1339674931,), (1339674948,), (1339674950,), (1339674953,), (1339674956,), (1339674959,), (1339674961,), (1339674985,), (1339674992,), (1339674995,), (1339674997,), (1339675004,), (1339675092,), (1339675121,), (1339675124,), (1339675136,), (1339675208,), (1339675393,), (1339675396,), (1339675399,), (1339675402,), (1339675403,), (1339675423,), (1339675426,), (1339675429,), (1339675431,), (1339675437,), (1339675441,), (1339675445,), (1339675447,), (1339675451,), (1339675457,), (1339675479,), (1339675483,), (1339675486,), (1339675490,), (1339675492,), (1339675506,), (1339675508,), (1339675511,), (1339675514,), (1339675517,), (1339675519,), (1339675526,), (1339675528,), (1339675531,), (1339675537,), (1339675561,), (1339675564,), (1339675567,), (1339675570,), (1339675572,), (1339675574,), (1339675578,), (1339675586,), (1339675589,), (1339675591,), (1339675592,), (1339675608,), (1339675611,), (1339675614,), (1339675616,), (1339675657,), (1339675625,), (1339675636,), (1339675643,), (1339675647,), (1339675650,), (1339675671,), (1339675676,), (1339675680,), (1339675685,), (1339675709,), (1339675800,), (1339675954,), (1339676114,), (1339676246,), (1339676268,), (1339676406,), (1339676409,), (1339676450,), (1339676454,), (1339676476,), (1339676478,), (1339676483,), (1339676492,), (1339676498,), (1339676500,), (1339676507,), (1339676510,), (1339676514,), (1339676518,), (1339676522,), (1339676549,), (1339676553,), (1339676557,), (1339676561,), (1339676565,), (1339676568,), (1339676571,), (1339676581,), (1339676585,), (1339676588,), (1339676610,), (1339676615,), (1339676619,), (1339676623,), (1339676627,), (1339676629,), (1339676656,), (1339676658,), (1339676661,), (1339676664,), (1339676802,), (1339676805,), (1339676808,), (1339676811,), (1339676813,), (1339676815,), (1339676841,), (1339676844,), (1339676847,), (1339676853,), (1339676854,), (1339676880,), (1339676883,), (1339676886,), (1339676889,), (1339676891,), (1339676905,), (1339676907,), (1339676910,), (1339676913,), (1339676917,), (1339676924,), (1339676938,), (1339676952,), (1339676959,), (1339676971,), (1339677059,), (1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,), (1339677669,), (1339677673,), (1339677677,), (1339677720,), (1339677724,), (1339677729,), (1339677734,), (1339677738,), (1339677741,), (1339677753,), (1339677757,), (1339677763,), (1339677771,), (1339677778,), (1339677850,), (1339677853,), (1339677857,), (1339677862,), (1339677986,), (1339678497,), (1339678623,), (1339678628,), (1339678639,), (1339678669,), (1339678699,), (1339678720,), (1339678725,), (1339678730,), (1339678735,), (1339678739,), (1339678761,), (1339678769,), (1339678774,), (1339678779,), (1339678784,), (1339678789,), (1339678812,), (1339678817,), (1339678822,), (1339678855,), (1339678862,), (1339678867,), (1339678872,), (1339678875,), (1339678879,), (1339678882,), (1339678889,), (1339678897,), (1339678905,), (1339678914,), (1339678920,), (1339678943,), (1339678989,), (1339678991,), (1339679000,), (1339679005,), (1339679010,), (1339679015,), (1339679019,), (1339679023,), (1339679082,), (1339679084,), (1339679093,), (1339679097,), (1339679110,), (1339679123,), (1339679132,), (1339679136,), (1339679164,), (1339679167,), (1339679176,), (1339679179,), (1339679184,), (1339679187,), (1339679193,), (1339679199,), (1339679262,), (1339679263,), (1339679384,), (1339679396,), (1339679402,), (1339679408,), (1339678930,), (1339678931,), (1339678932,), (1339678934,), (1339678939,), (1339678963,), (1339678976,), (1339678982,), (1339678987,), (1339679028,), (1339679031,), (1339679039,), (1339679043,), (1339679046,), (1339679049,), (1339679060,), (1339679065,), (1339679070,), (1339679078,), (1339679144,), (1339679153,), (1339679160,), (1339679161,), (1339679209,), (1339679211,), (1339679214,), (1339679219,), (1339679225,), (1339679231,), (1339679245,), (1339679250,), (1339679256,), (1339679261,), (1339679428,), (1339679432,), (1339679437,), (1339679442,), (1339679446,), (1339679449,), (1339679478,), (1339679563,), (1339679662,), (1339679762,), (1339679861,), (1339679944,), (1339680170,), (1339680172,), (1339680178,), (1339680180,), (1339680184,), (1339680484,), (1339680488,), (1339680552,), (1339680568,), (1339680573,), (1339680576,), (1339680612,), (1339680614,), (1339680618,), (1339680623,), (1339680671,), (1339680674,), (1339680677,), (1339680680,), (1339680682,), (1339680684,), (1339680729,), (1339680737,), (1339680740,), (1339680743,), (1339680747,), (1339680804,), (1339680809,), (1339680815,), (1339680836,), (1339680932,), (1339682038,), (1339681964,), (1339682025,), (1339682028,), (1339682031,), (1339682036,), (1339682067,), (1339682072,), (1339682077,), (1339682084,), (1339682089,), (1339682111,), (1339682125,), (1339682129,), (1339682133,), (1339682135,), (1339682136,), (1339682162,), (1339682168,), (1339682174,), (1339682182,), (1339682196,), (1339682228,), (1339682233,), (1339682237,), (1339682243,), (1339683087,), (1339683154,), (1339683244,), (1339683292,), (1339683295,), (1339683346,), (1339683373,), (1339683379,), (1339683384,), (1339683388,), (1339683421,), (1339683425,), (1339683429,), (1339683433,), (1339683435,), (1339683441,), (1339683493,), (1339683497,), (1339683501,), (1339683506,), (1339683547,), (1339683551,), (1339683556,), (1339683561,), (1339683565,), (1339683568,), (1339683629,), (1339683634,), (1339683639,), (1339683645,), (1339683648,), (1339683665,), (1339683677,), (1339683683,), (1339683688,), (1339683736,), (1339683742,), (1339683746,), (1339683750,), (1339683826,), (1339683844,), (1339683848,), (1339683852,), (1339683857,), (1339683864,), (1339683887,), (1339683891,), (1339683894,), (1339683897,), (1339684022,), (1339683913,), (1339683917,), (1339683931,), (1339683937,), (1339683940,), (1339684195,), (1339684199,), (1339684203,), (1339684207,), (1339684239,), (1339684243,), (1339684249,), (1339684252,), (1339684255,), (1339684259,), (1339684297,), (1339684302,), (1339684305,), (1339684310,), (1339684314,), (1339684347,), (1339684351,), (1339684354,), (1339684358,), (1339684399,), (1339684405,), (1339684410,), (1339684415,), (1339684419,), (1339684421,), (1339684444,), (1339684448,), (1339684453,), (1339684457,), (1339684501,), (1339684509,), (1339684514,), (1339684518,), (1339684521,), (1339684627,), (1339684630,), (1339684635,), (1339684639,), (1339684643,), (1339684646,), (1339684680,), (1339684684,), (1339684688,), (1339684691,), (1339684708,), (1339684711,), (1339684715,), (1339684717,), (1339684725,), (1339684729,), (1339684739,), (1339684742,), (1339684745,), (1339684747,), (1339684771,), (1339684776,), (1339684780,), (1339684785,), (1339684821,), (1339684919,), (1339685103,), (1339685110,), (1339685113,), (1339685119,), (1339685168,), (1339685153,), (1339685157,), (1339685160,), (1339685164,), (1339685196,), (1339685201,), (1339685205,), (1339685214,), (1339685230,), (1339685701,), (1339685705,), (1339685733,), (1339685737,), (1339685758,), (1339685779,), (1339685828,), (1339685832,), (1339685837,), (1339685842,), (1339685886,), (1339685896,), (1339685903,), (1339685914,), (1339685918,), (1339685943,), (1339685946,), (1339685948,), (1339685951,), (1339685955,), (1339685988,), (1339686075,), (1339686084,), (1339686091,), (1339686101,), (1339686216,), (1339686311,), (1339686332,), (1339686335,), (1339686338,), (1339686379,), (1339686383,), (1339686386,), (1339686389,), (1339686391,), (1339686421,), (1339686426,), (1339686440,), (1339686447,), (1339686450,), (1339686453,), (1339686491,), (1339686495,), (1339686508,), (1339686524,), (1339686550,), (1339686551,), (1339686556,), (1339686560,), (1339686564,), (1339686568,), (1339686595,), (1339686599,), (1339686603,), (1339686606,), (1339686631,), (1339686635,), (1339686640,), (1339686643,), (1339686646,), (1339686648,), (1339686695,), (1339686697,), (1339686700,), (1339687126,), (1339686733,), (1339686946,), (1339686971,), (1339686975,), (1339687107,), (1339687193,), (1339687198,), (1339687203,), (1339687205,), (1339687262,), (1339687267,), (1339687270,), (1339687275,), (1339687278,), (1339687280,), (1339687329,), (1339687339,), (1339687343,), (1339687348,), (1339687351,), (1339687377,), (1339687381,), (1339687385,), (1339687388,), (1339687392,), (1339687394,), (1339687424,), (1339687428,), (1339687432,), (1339687435,), (1339687546,), (1339687551,), (1339687556,), (1339687568,), (1339687576,), (1339687579,), (1339687591,), (1339687596,), (1339687601,), (1339688076,), (1339688132,), (1339688166,), (1339688179,), (1339688195,), (1339688198,), (1339688286,), (1339688291,), (1339688297,), (1339688304,), (1339688329,), (1339688333,), (1339688336,), (1339688340,), (1339688348,), (1339688372,), (1339688376,), (1339688381,), (1339688385,), (1339688408,), (1339688412,), (1339688417,), (1339688464,), (1339688467,), (1339688472,), (1339688476,), (1339688480,), (1339688482,), (1339688505,), (1339688509,), (1339688512,), (1339688570,), (1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,), (1339689560,), (1339689525,), (1339689540,), (1339689544,), (1339689552,), (1339689556,), (1339689582,), (1339689585,), (1339689589,), (1339689593,), (1339689597,), (1339689621,), (1339689625,), (1339689630,), (1339689650,), (1339689655,), (1339689659,), (1339689677,), (1339689681,), (1339689686,), (1339689691,), (1339689733,), (1339689743,), (1339689748,), (1339689752,), (1339689754,), (1339689756,), (1339689781,), (1339689786,), (1339689789,), (1339689793,), (1339689815,), (1339689818,), (1339689821,), (1339689825,), (1339689828,), (1339689834,), (1339690002,), (1339690043,), (1339690045,), (1339690049,), (1339690126,), (1339690130,), (1339690133,), (1339690136,), (1339690140,), (1339690188,), (1339690195,), (1339690207,), (1339690222,), (1339690227,), (1339690260,), (1339690269,), (1339690273,), (1339690304,), (1339690352,), (1339690357,), (1339690362,), (1339690367,), (1339690370,), (1339690372,), (1339690473,), (1339690483,), (1339690496,), (1339690544,), (1339690664,), (1339690669,), (1339690672,), (1339690676,), (1339690679,), (1339690681,), (1339690742,), (1339695637,), (1339696919,), (1339696956,), (1339696961,), (1339696965,), (1339696997,), (1339697004,), (1339697012,), (1339697101,), (1339697197,), (1339697202,), (1339697206,), (1339697210,), (1339697213,), (1339697266,), (1339697241,), (1339697246,), (1339697253,), (1339697260,), (1339697262,), (1339697288,), (1339697292,), (1339697298,), (1339697351,), (1339697356,), (1339697361,), (1339697366,), (1339697369,), (1339697372,), (1339698030,), (1339698138,), (1339698152,), (1339698171,), (1339698176,), (1339698201,), (1339698425,), (1339698436,), (1339698660,), (1339698664,), (1339698668,), (1339698672,), (1339698712,), (1339698717,), (1339698754,), (1339698758,), (1339698762,), (1339698766,), (1339698880,), (1339698890,), (1339698894,), (1339698897,), (1339698900,), (1339698919,), (1339698923,), (1339698927,), (1339698931,), (1339698934,), (1339698950,), (1339699112,), (1339699121,), (1339699128,), (1339699178,), (1339699181,), (1339699184,), (1339699185,), (1339699188,), (1339699253,), (1339699292,), (1339699295,), (1339699298,), (1339699301,), (1339699332,), (1339699335,), (1339699339,), (1339699349,), (1339699494,), (1339699498,), (1339699501,), (1339699504,), (1339699507,), (1339699510,), (1339699575,), (1339699549,), (1339699555,), (1339699565,), (1339699571,), (1339699600,), (1339699604,), (1339699607,), (1339699610,), (1339699652,), (1339699656,), (1339699660,), (1339699664,), (1339699667,), (1339700206,), (1339700214,), (1339700244,), (1339700247,), (1339700255,), (1339700301,), (1339700326,), (1339700333,), (1339700340,), (1339700386,), (1339700392,), (1339700396,), (1339700400,), (1339700404,), (1339700432,), (1339700442,), (1339700467,), (1339700530,), (1339700562,), (1339700567,), (1339700571,), (1339700574,), (1339700625,), (1339700628,), (1339700632,), (1339700636,), (1339700768,), (1339700778,), (1339700782,), (1339700832,), (1339700835,), (1339700859,), (1339701009,), (1339701055,), (1339701478,), (1339701667,), (1339701717,), (1339701784,), (1339701792,), (1339701796,), (1339701801,), (1339701804,), (1339701810,), (1339701818,), (1339701824,), (1339701865,), (1339701869,), (1339701957,), (1339701962,), (1339701966,), (1339701971,), (1339701976,), (1339701981,), (1339702074,), (1339702078,), (1339702087,), (1339702090,), (1339702101,), (1339702125,), (1339702129,), (1339702133,), (1339702149,), (1339702203,), (1339702356,), (1339702370,), (1339702381,), (1339702385,), (1339702391,), (1339702434,), (1339702437,), (1339702443,), (1339702448,), (1339702453,), (1339702467,), (1339702482,), (1339702488,), (1339702493,), (1339702496,), (1339702497,), (1339702520,), (1339702524,), (1339702530,), (1339702543,), (1339702556,), (1339702591,), (1339702598,), (1339702605,), (1339702612,), (1339702618,), (1339702675,), (1339702640,), (1339702644,), (1339702649,), (1339702670,), (1339702738,), (1339702741,), (1339702787,), (1339702793,), (1339702798,), (1339702802,), (1339702854,), (1339702866,), (1339702881,), (1339703019,), (1339703190,), (1339703194,), (1339703450,), (1339703536,), (1339703816,), (1339703907,), (1339703914,), (1339703920,), (1339703924,), (1339703935,), (1339703957,), (1339703961,), (1339703983,), (1339703994,), (1339704005,), (1339704067,), (1339704071,), (1339704092,), (1339704097,), (1339704101,), (1339704188,), (1339704193,), (1339704197,), (1339704201,), (1339704233,), (1339704243,), (1339704297,), (1339704300,), (1339704305,), (1339704307,), (1339704311,), (1339704339,), (1339704343,), (1339704347,), (1339704351,), (1339704386,), (1339704388,), (1339704391,), (1339704394,), (1339704398,), (1339704401,), (1339704427,), (1339704429,), (1339704432,), (1339704469,), (1339704473,), (1339704482,), (1339704489,), (1339704492,), (1339704496,), (1339704534,), (1339704536,), (1339704539,), (1339704543,), (1339704617,), (1339704622,), (1339704787,), (1339704783,), (1339704785,), (1339704824,), (1339704830,), (1339704837,), (1339704841,), (1339704844,), (1339704891,), (1339704899,), (1339704904,), (1339704914,), (1339704922,), (1339705009,), (1339705011,), (1339705023,), (1339705040,), (1339705051,), (1339705119,), (1339705123,), (1339705128,), (1339705132,), (1339705223,), (1339705227,), (1339705232,), (1339705236,), (1339705288,), (1339705301,), (1339705313,), (1339705325,), (1339705328,), (1339705334,), (1339705360,), (1339705364,), (1339705373,), (1339705382,), (1339705385,), (1339705415,), (1339705424,), (1339705428,), (1339705438,), (1339705449,), (1339705453,), (1339705475,), (1339705499,), (1339705509,), (1339705515,), (1339705516,), (1339705521,), (1339705549,), (1339705554,), (1339705558,), (1339705603,), (1339705614,), (1339705620,), (1339705623,), (1339705624,), (1339705626,), (1339705685,), (1339705687,), (1339705692,), (1339705695,), (1339705699,), (1339705959,), (1339705971,), (1339705973,), (1339705980,), (1339706000,), (1339706020,), (1339706046,), (1339706070,), (1339706076,), (1339706095,), (1339706085,), (1339706088,), (1339706091,), (1339706145,), (1339706149,), (1339706152,), (1339706155,), (1339706161,), (1339706218,), (1339706221,), (1339706226,), (1339706229,), (1339706260,), (1339706262,), (1339706620,), (1339706743,), (1339706868,), (1339706871,), (1339707135,), (1339707139,), (1339707143,), (1339707195,), (1339707204,), (1339707229,), (1339707232,), (1339707236,), (1339707238,), (1339707241,), (1339707340,), (1339707343,), (1339707349,), (1339707353,), (1339707467,), (1339707475,), (1339707486,), (1339707489,), (1339707518,), (1339707527,), (1339707546,), (1339707651,), (1339707677,), (1339707710,), (1339707720,), (1339707731,), (1339707736,), (1339707743,), (1339707747,), (1339707773,), (1339707776,), (1339707780,), (1339707787,), (1339707858,), (1339707861,), (1339707865,), (1339707869,), (1339707873,), (1339707876,), (1339707892,), (1339707897,), (1339707902,), (1339707909,), (1339707915,), (1339707925,), (1339707948,), (1339707951,), (1339707957,), (1339707963,), (1339708046,), (1339708050,), (1339708054,), (1339708058,), (1339708061,), (1339708064,), (1339708096,), (1339708079,), (1339708083,), (1339708087,), (1339708090,), (1339708094,), (1339708119,), (1339708128,), (1339708132,), (1339708136,), (1339708158,), (1339708162,), (1339708166,), (1339708172,), (1339708175,), (1339708177,), (1339708604,), (1339708607,), (1339708614,), (1339708852,), (1339708856,), (1339708863,), (1339708874,), (1339708889,), (1339708897,), (1339708921,), (1339708925,), (1339708930,), (1339708943,), (1339709026,), (1339709034,), (1339709038,), (1339709042,), (1339709087,), (1339709093,), (1339709104,), (1339709108,), (1339709112,), (1339709118,), (1339709155,), (1339709180,), (1339709185,), (1339709189,), (1339709217,), (1339709223,), (1339709230,), (1339709237,), (1339709243,), (1339709247,), (1339709287,), (1339709293,), (1339709301,), (1339709309,), (1339709571,), (1339709575,), (1339709580,), (1339709585,), (1339709590,), (1339709593,), (1339709625,), (1339709637,), (1339709642,), (1339709648,), (1339709727,), (1339709735,), (1339709742,), (1339709755,), (1339709761,), (1339709822,), (1339709831,), (1339709837,), (1339709843,), (1339710104,), (1339710081,), (1339710086,), (1339710091,), (1339710093,), (1339710098,), (1339710127,), (1339710145,), (1339710170,), (1339710189,), (1339710206,), (1339710211,), (1339710310,), (1339710314,), (1339710318,), (1339710322,), (1339710693,), (1339710820,), (1339710824,), (1339710830,), (1339710835,), (1339710845,), (1339711014,), (1339711024,), (1339711035,), (1339711039,), (1339711052,), (1339711313,), (1339711320,), (1339711325,), (1339711335,), (1339711345,), (1339711356,), (1339711381,), (1339711390,), (1339711403,), (1339711418,), (1339711443,), (1339711446,), (1339711451,), (1339711455,), (1339711462,), (1339711512,), (1339711515,), (1339711518,), (1339711525,), (1339711533,), (1339711538,), (1339711578,), (1339711582,), (1339711584,), (1339711587,), (1339711591,), (1339711641,), (1339711644,), (1339711649,), (1339711653,), (1339711695,), (1339711699,), (1339711702,), (1339711706,), (1339711715,), (1339711723,), (1339711774,), (1339711777,), (1339711781,), (1339711792,), (1339712023,), (1339712027,), (1339712032,), (1339712037,), (1339712041,), (1339712045,), (1339712084,), (1339712090,), (1339712096,), (1339712102,), (1339712105,), (1339712265,), (1339712249,), (1339712254,), (1339712425,), (1339712429,), (1339712434,), (1339712438,), (1339712559,), (1339712568,), (1339712573,), (1339712578,), (1339712584,), (1339712781,), (1339712786,), (1339712792,), (1339712799,), (1339712815,), (1339712946,), (1339713003,), (1339713009,), (1339713013,), (1339713017,), (1339713020,), (1339713057,), (1339713062,), (1339713067,), (1339713073,), (1339713092,), (1339713097,), (1339713102,), (1339713107,), (1339713110,), (1339713114,), (1339713210,), (1339713314,), (1339713429,), (1339713528,), (1339714004,), (1339714024,), (1339714031,), (1339714038,), (1339714067,), (1339714070,), (1339714111,), (1339714116,), (1339714120,), (1339714145,), (1339714198,), (1339714351,), (1339714391,), (1339714454,), (1339714459,), (1339714466,), (1339714469,), (1339714541,), (1339714555,), (1339714603,), (1339714609,), (1339714614,), (1339714631,), (1339714636,), (1339714652,), (1339714659,), (1339714674,), (1339714679,), (1339714759,), (1339714766,), (1339714813,), (1339714860,), (1339714848,), (1339714854,), (1339714858,), (1339714859,), (1339715427,), (1339715509,), (1339715603,), (1339715636,), (1339715638,), (1339715676,), (1339715679,), (1339715680,), (1339715685,), (1339715727,), (1339715761,), (1339715880,), (1339715884,), (1339715888,), (1339715891,), (1339716007,), (1339716051,), (1339716085,), (1339716142,), (1339716169,), (1339716239,), (1339716512,), (1339716518,), (1339716521,), (1339716524,), (1339716705,), (1339716708,), (1339716748,), (1339716751,), (1339716800,), (1339716804,), (1339716871,), (1339716874,), (1339716876,), (1339716889,), (1339716899,), (1339716903,), (1339716906,), (1339716909,), (1339716910,), (1339716922,), (1339716926,), (1339716929,), (1339716933,), (1339716947,), (1339716950,), (1339718405,), (1339726407,), (1339726784,), (1339727598,), (1339727735,), (1339728196,), (1339728609,), (1339728788,), (1339728793,), (1339728796,), (1339728799,), (1339728802,), (1339728807,), (1339728864,), (1339728868,), (1339728871,), (1339728875,), (1339728986,), (1339728993,), (1339729028,), (1339729041,), (1339729067,), (1339729254,), (1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,), (1339731546,), (1339731549,), (1339731553,), (1339731557,), (1339731579,), (1339731582,), (1339731585,), (1339731588,), (1339731591,), (1339731594,), (1339731610,), (1339731613,), (1339731616,), (1339731619,), (1339731622,), (1339731641,), (1339731644,), (1339731647,), (1339731650,), (1339731653,), (1339731674,), (1339731681,), (1339731687,), (1339731693,), (1339731699,), (1339731721,), (1339731727,), (1339731733,), (1339731738,), (1339731744,), (1339731747,), (1339732139,), (1339732213,), (1339732351,), (1339732498,), (1339732533,), (1339732539,), (1339732549,), (1339732558,), (1339732660,), (1339732830,), (1339732928,), (1339732946,), (1339732952,), (1339732959,), (1339732963,), (1339732969,), (1339733199,), (1339733204,), (1339733639,), (1339733596,), (1339733825,), (1339733891,), (1339733895,), (1339733899,), (1339733902,), (1339733923,), (1339733929,), (1339733933,), (1339733937,), (1339733961,), (1339733966,), (1339733972,), (1339733991,), (1339733994,), (1339733999,), (1339734003,), (1339734009,), (1339734012,), (1339734034,), (1339734039,), (1339734044,), (1339734500,), (1339734514,), (1339734519,), (1339734704,), (1339734708,), (1339734738,), (1339734743,), (1339734784,), (1339734787,), (1339734792,), (1339734854,), (1339734827,), (1339734830,), (1339734838,), (1339734844,), (1339734886,), (1339734897,), (1339734933,), (1339735295,), (1339735338,), (1339735374,), (1339735378,), (1339736089,), (1339736851,), (1339736933,), (1339737190,), (1339737213,), (1339737216,), (1339737219,), (1339737344,), (1339737385,), (1339737389,), (1339737590,), (1339737596,), (1339737601,), (1339737605,), (1339737607,), (1339737677,), (1339737680,), (1339737684,), (1339737797,), (1339737801,), (1339737806,), (1339737812,), (1339737919,), (1339737923,), (1339737926,), (1339738108,), (1339738130,), (1339738135,), (1339738141,), (1339738146,), (1339738149,), (1339738234,), (1339738237,), (1339738240,), (1339738297,), (1339738306,), (1339738310,), (1339738314,), (1339738410,), (1339738422,), (1339738424,), (1339738440,), (1339738446,), (1339738453,), (1339738504,), (1339738506,), (1339738509,), (1339738512,), (1339738572,), (1339738575,), (1339738633,), (1339738677,), (1339738681,), (1339738685,), (1339738736,), (1339738743,), (1339738746,), (1339738751,), (1339738757,), (1339738770,), (1339738784,), (1339738787,), (1339738796,), (1339738802,), (1339738829,), (1339738815,), (1339738818,), (1339738821,), (1339738890,), (1339738897,), (1339738924,), (1339738937,), (1339738951,), (1339738960,), (1339739104,), (1339739109,), (1339739113,), (1339739159,), (1339739162,), (1339739175,), (1339739179,), (1339739182,), (1339739252,), (1339739283,), (1339739288,), (1339739294,), (1339739300,), (1339739343,), (1339739348,), (1339739352,), (1339739928,), (1339739934,), (1339739940,), (1339739943,), (1339739947,), (1339740185,), (1339740190,), (1339740195,), (1339740204,), (1339740213,), (1339740243,), (1339740253,), (1339740258,), (1339740263,), (1339740282,), (1339740287,), (1339740292,), (1339740323,), (1339740332,), (1339740339,), (1339740344,), (1339740349,), (1339740353,), (1339740386,), (1339740389,), (1339740395,), (1339740400,), (1339740461,), (1339740478,), (1339740484,), (1339740489,), (1339740495,), (1339740552,), (1339740557,), (1339740561,), (1339740564,), (1339740597,), (1339740618,), (1339740622,), (1339740627,), (1339740996,), (1339740938,), (1339740954,), (1339740968,), (1339741028,), (1339741050,), (1339741060,), (1339741066,), (1339741069,), (1339741072,), (1339741162,), (1339741167,), (1339741171,), (1339741176,), (1339741206,), (1339741214,), (1339741221,), (1339741226,), (1339741237,), (1339741356,), (1339741360,), (1339741366,), (1339741371,), (1339741375,), (1339741377,), (1339741544,), (1339741549,), (1339741554,), (1339741557,), (1339741751,), (1339741758,), (1339741766,), (1339741808,), (1339741817,), (1339741822,), (1339741870,), (1339741879,), (1339741891,), (1339741895,), (1339741898,), (1339742011,), (1339742015,), (1339742020,), (1339742025,), (1339742028,), (1339742030,), (1339742065,), (1339742069,), (1339742079,), (1339742082,), (1339742086,), (1339742140,), (1339742144,), (1339742198,), (1339742201,), (1339742204,), (1339742207,), (1339742237,), (1339742255,), (1339742259,), (1339742262,), (1339742278,), (1339742294,), (1339742353,), (1339742357,), (1339742363,), (1339742365,), (1339742480,), (1339742491,), (1339742497,), (1339742502,), (1339742506,), (1339742509,), (1339742638,), (1339742525,), (1339742603,), (1339742606,), (1339742710,), (1339742714,), (1339742718,), (1339742722,), (1339742726,), (1339742734,), (1339742759,), (1339742765,), (1339742770,), (1339742774,), (1339742778,), (1339742801,), (1339742806,), (1339742810,), (1339742813,), (1339742817,), (1339742859,), (1339742874,), (1339742880,), (1339742902,), (1339742912,), (1339742916,), (1339743026,), (1339743031,), (1339743036,), (1339743040,), (1339743044,), (1339743070,), (1339743076,), (1339743081,), (1339743085,), (1339743089,), (1339743092,), (1339743107,), (1339743111,), (1339743115,), (1339743120,), (1339743140,), (1339743169,), (1339743173,), (1339743177,), (1339743180,), (1339743181,), (1339743211,), (1339743217,), (1339743221,), (1339743225,), (1339743229,), (1339743232,), (1339743308,), (1339743315,), (1339743320,), (1339743326,), (1339743396,), (1339743400,), (1339743405,), (1339743410,), (1339743414,), (1339743416,), (1339743437,), (1339743441,), (1339743445,), (1339743449,), (1339743468,), (1339743472,), (1339743477,), (1339743483,), (1339743493,), (1339743538,), (1339743543,), (1339743548,), (1339743553,), (1339743724,), (1339743587,), (1339743601,), (1339743650,), (1339743681,), (1339743704,), (1339743830,), (1339743834,), (1339743837,), (1339743840,), (1339743845,), (1339743908,), (1339743912,), (1339743914,), (1339743921,), (1339743974,), (1339744003,), (1339744059,), (1339744068,), (1339744077,), (1339744085,), (1339744089,), (1339744228,), (1339744232,), (1339744239,), (1339744242,), (1339744446,), (1339744450,), (1339744455,), (1339744460,), (1339744464,), (1339744467,), (1339744478,), (1339744482,), (1339744487,), (1339744492,), (1339744493,), (1339744497,), (1339744523,), (1339744528,), (1339744532,), (1339744687,), (1339744692,), (1339744704,), (1339744716,), (1339744722,), (1339744724,), (1339744737,), (1339744742,), (1339744747,), (1339744752,), (1339744756,), (1339744958,), (1339745051,), (1339745147,), (1339745151,), (1339745274,), (1339745300,), (1339745312,), (1339745322,), (1339745339,), (1339745348,), (1339745412,), (1339745417,), (1339745465,), (1339745469,), (1339745768,), (1339745773,), (1339745776,), (1339745777,), (1339745778,), (1339745779,), (1339745818,), (1339745810,), (1339745812,), (1339745815,), (1339745851,), (1339745855,), (1339745858,), (1339745861,), (1339745882,), (1339745886,), (1339745952,), (1339745957,), (1339745970,), (1339746079,), (1339746082,), (1339746086,), (1339746088,), (1339746092,), (1339746095,), (1339746123,), (1339746126,), (1339746129,), (1339746133,), (1339746162,), (1339746167,), (1339746172,), (1339746176,), (1339746180,), (1339746182,), (1339746193,), (1339746201,), (1339746204,), (1339746207,), (1339746225,), (1339746248,), (1339746425,), (1339746564,), (1339746640,), (1339746728,), (1339747035,), (1339747039,), (1339747047,), (1339747051,), (1339747330,), (1339747340,), (1339747345,), (1339747470,), (1339747475,), (1339747479,), (1339747485,), (1339747490,), (1339747493,), (1339747504,), (1339747514,), (1339747521,), (1339747527,), (1339747530,), (1339747532,), (1339747541,), (1339747551,), (1339747563,), (1339747572,), (1339747575,), (1339747577,), (1339747586,), (1339747589,), (1339747593,), (1339747613,), (1339747616,), (1339747621,), (1339747625,), (1339747716,), (1339747672,), (1339747686,), (1339747690,), (1339747697,), (1339747707,), (1339747747,), (1339747751,), (1339747802,), (1339747806,), (1339747842,), (1339747846,), (1339747850,), (1339747854,), (1339747857,), (1339747860,), (1339747879,), (1339747883,), (1339747887,), (1339747891,), (1339747894,), (1339747933,), (1339747936,), (1339747940,), (1339747944,), (1339747958,), (1339747962,), (1339747965,), (1339747972,), (1339747976,), (1339747981,), (1339748190,), (1339748194,), (1339748212,), (1339748247,), (1339748251,), (1339748335,), (1339748950,), (1339748954,), (1339748958,), (1339749308,), (1339749312,), (1339749315,), (1339749319,), (1339749322,), (1339749326,), (1339749560,), (1339749564,), (1339749568,), (1339749572,), (1339749759,), (1339749763,), (1339749768,), (1339749773,), (1339749778,), (1339749792,), (1339749795,), (1339749799,), (1339749803,), (1339749806,), (1339749809,), (1339749835,), (1339749839,), (1339749869,), (1339749958,), (1339749962,), (1339749966,), (1339749969,), (1339749995,), (1339749998,), (1339750021,), (1339750023,), (1339750027,), (1339750036,), (1339750133,), (1339750120,), (1339750124,), (1339750129,), (1339750402,), (1339750406,), (1339750410,), (1339750429,), (1339750432,), (1339750435,), (1339750443,), (1339750447,), (1339750504,), (1339750508,), (1339750517,), (1339750564,), (1339751147,), (1339751153,), (1339751157,), (1339751161,), (1339751211,), (1339751219,), (1339751225,), (1339751229,), (1339751232,), (1339751260,), (1339751318,), (1339751348,), (1339751386,), (1339751442,), (1339751451,), (1339751459,), (1339751653,), (1339751657,), (1339751662,), (1339751830,), (1339756218,), (1339756265,), (1339756270,), (1339756539,), (1339756543,), (1339756649,), (1339758000,), (1339758389,), (1339758485,), (1339758924,), (1339759374,), (1339759378,), (1339759393,), (1339759395,), (1339759402,), (1339764093,), (1339764084,), (1339764089,), (1339764121,), (1339764125,), (1339764138,), (1339764143,), (1339764147,), (1339764149,), (1339764187,), (1339764196,), (1339764201,), (1339764274,), (1339764277,), (1339764280,), (1339764283,), (1339764285,), (1339764895,), (1339764898,), (1339764901,), (1339764904,), (1339764906,), (1339764996,), (1339765107,), (1339765110,), (1339765113,), (1339765116,), (1339765119,), (1339765140,), (1339765143,), (1339765146,), (1339765148,), (1339765171,), (1339765174,), (1339765178,), (1339765181,), (1339765182,), (1339765184,), (1339765218,), (1339765225,), (1339765233,), (1339765244,), (1339765251,), (1339765297,), (1339765301,), (1339765305,), (1339765308,), (1339765310,), (1339765311,), (1339765498,), (1339765503,), (1339765654,), (1339765657,), (1339765662,), (1339765664,), (1339765680,), (1339765683,), (1339765686,), (1339765853,), (1339765863,), (1339765867,), (1339765871,), (1339765874,), (1339765929,), (1339765941,), (1339765943,), (1339765944,), (1339765945,), (1339765974,), (1339765966,), (1339765969,), (1339765972,), (1339765993,), (1339765996,), (1339766000,), (1339766007,), (1339766014,), (1339766038,), (1339766041,), (1339766045,), (1339766049,), (1339766052,), (1339766055,), (1339766095,), (1339766099,), (1339766103,), (1339766107,), (1339766189,), (1339766194,), (1339766199,), (1339766203,), (1339766205,), (1339766206,), (1339766281,), (1339766285,), (1339766295,), (1339766351,), (1339766354,), (1339766495,), (1339766733,), (1339766737,), (1339766946,), (1339767160,), (1339767279,), (1339767440,), (1339767518,), (1339767521,), (1339767575,), (1339767579,), (1339767583,), (1339767586,), (1339767589,), (1339767965,), (1339767986,), (1339768128,), (1339768131,), (1339768135,), (1339768170,), (1339768173,), (1339768253,), (1339768719,), (1339768733,), (1339768740,), (1339768773,), (1339768777,), (1339768807,), (1339768811,), (1339768815,), (1339768817,), (1339768846,), (1339768849,), (1339768850,), (1339768851,), (1339768858,), (1339768867,), (1339768902,), (1339768891,), (1339768895,), (1339768899,), (1339768923,), (1339768929,), (1339768933,), (1339768937,), (1339768940,), (1339768958,), (1339768962,), (1339768966,), (1339768971,), (1339768976,), (1339768978,), (1339769006,), (1339769012,), (1339769026,), (1339769030,), (1339769035,), (1339769054,), (1339769058,), (1339769061,), (1339769065,), (1339769069,), (1339769143,), (1339769333,), (1339769337,), (1339769341,), (1339769345,), (1339769832,), (1339769918,), (1339769922,), (1339769924,), (1339770006,), (1339770165,), (1339770171,), (1339770175,), (1339770310,), (1339770400,), (1339770403,), (1339770404,), (1339770405,), (1339770430,), (1339770432,), (1339770438,), (1339770440,), (1339770442,), (1339770463,), (1339770466,), (1339770469,), (1339770471,), (1339770473,), (1339770524,), (1339770529,), (1339770537,), (1339770540,), (1339770545,), (1339770613,), (1339770616,), (1339770619,), (1339770627,), (1339770639,), (1339770687,), (1339770691,), (1339770695,), (1339770698,), (1339770709,), (1339770718,), (1339770741,), (1339770745,), (1339770754,), (1339770803,), (1339770794,), (1339770798,), (1339770801,), (1339770850,), (1339770852,), (1339770854,), (1339770887,), (1339770895,), (1339770898,), (1339770918,), (1339770921,), (1339770922,), (1339770924,), (1339770993,), (1339771053,), (1339771059,), (1339771154,), (1339771160,), (1339771162,), (1339771165,), (1339771167,), (1339771169,), (1339771243,), (1339771245,), (1339771251,), (1339771280,), (1339771286,), (1339771294,), (1339771296,), (1339771298,), (1339771300,), (1339771338,), (1339771342,), (1339771345,), (1339771348,), (1339771351,), (1339772117,), (1339772121,), (1339772228,), (1339772232,), (1339772236,), (1339772241,), (1339772542,), (1339772578,), (1339772620,), (1339772637,), (1339772642,), (1339772651,), (1339772924,), (1339772927,), (1339772931,), (1339772934,), (1339773328,), (1339773333,), (1339773336,), (1339773337,), (1339773339,), (1339773341,), (1339773377,), (1339773363,), (1339773371,), (1339773374,), (1339773376,), (1339773399,), (1339773403,), (1339773405,), (1339773487,), (1339773491,), (1339773492,), (1339773494,), (1339773495,), (1339773496,), (1339773515,), (1339773518,), (1339773521,), (1339773523,), (1339773524,), (1339774040,), (1339774047,), (1339774051,), (1339774112,), (1339774145,), (1339774256,), (1339774260,), (1339774262,), (1339774264,), (1339774266,), (1339774272,), (1339774308,), (1339774311,), (1339774315,), (1339774319,), (1339774322,), (1339774341,), (1339774344,), (1339774347,), (1339774350,), (1339774352,), (1339774356,), (1339774372,), (1339774378,), (1339774382,), (1339774386,), (1339774447,), (1339774454,), (1339774462,), (1339774464,), (1339774473,), (1339774500,), (1339774504,), (1339774507,), (1339774510,), (1339774512,), (1339774514,), (1339774529,), (1339774533,), (1339774536,), (1339774594,), (1339774598,), (1339774602,), (1339774610,), (1339774612,), (1339774614,), (1339774628,), (1339774633,), (1339774636,), (1339774641,), (1339774648,), (1339774653,), (1339774669,), (1339774673,), (1339774678,), (1339774683,), (1339774724,), (1339774700,), (1339774705,), (1339774713,), (1339774718,), (1339774721,), (1339775048,), (1339775053,), (1339775055,), (1339775068,), (1339775177,), (1339775312,), (1339775429,), (1339775542,), (1339775553,), (1339775568,), (1339775724,), (1339775766,), (1339775770,), (1339775773,), (1339775776,), (1339775778,), (1339775793,), (1339775798,), (1339775803,), (1339775806,), (1339775810,), (1339775834,), (1339775839,), (1339775842,), (1339775846,), (1339775850,), (1339775860,), (1339776210,), (1339776440,), (1339776444,), (1339776449,), (1339776468,), (1339776478,), (1339776482,), (1339776486,), (1339776490,), (1339776494,), (1339776538,), (1339776542,), (1339776546,), (1339776550,), (1339776556,), (1339776698,), (1339776708,), (1339776719,), (1339776723,), (1339776726,), (1339776760,), (1339776793,), (1339776798,), (1339776803,), (1339776810,), (1339776815,), (1339777583,), (1339777677,), (1339777789,), (1339777878,), (1339777960,), (1339777981,), (1339777998,), (1339778001,), (1339778039,), (1339778150,), (1339778153,), (1339778180,), (1339778184,), (1339778188,), (1339778191,), (1339778192,), (1339778193,), (1339778217,), (1339778222,), (1339778225,), (1339778230,), (1339778273,), (1339778260,), (1339778264,), (1339778267,), (1339778270,), (1339778272,), (1339778301,), (1339778305,), (1339778308,), (1339778311,), (1339778313,), (1339778339,), (1339778344,), (1339778347,), (1339778351,), (1339778354,), (1339778356,), (1339778372,), (1339778384,), (1339778390,), (1339778396,), (1339778417,), (1339778422,), (1339778426,), (1339778474,), (1339778477,), (1339778479,), (1339778492,), (1339778497,), (1339778517,), (1339778532,), (1339778587,), (1339778597,), (1339778602,), (1339778606,), (1339778608,), (1339778611,), (1339778635,), (1339778641,), (1339778646,), (1339778654,), (1339778659,), (1339778660,), (1339778686,), (1339778691,), (1339778696,), (1339778701,), (1339778706,), (1339778774,), (1339778782,), (1339778818,), (1339779121,), (1339779413,), (1339779658,), (1339779663,), (1339779666,), (1339779670,), (1339779979,), (1339780250,), (1339780300,), (1339780322,), (1339780331,), (1339780510,), (1339780517,), (1339780522,), (1339780531,), (1339780539,), (1339780544,), (1339780574,), (1339780581,), (1339780589,), (1339780595,), (1339781017,), (1339781022,), (1339781030,), (1339781044,), (1339781059,), (1339781060,), (1339781087,), (1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,), (1339781611,), (1339781614,), (1339781618,), (1339781622,), (1339781626,), (1339781628,), (1339781649,), (1339781652,), (1339781655,), (1339781656,), (1339781657,), (1339781679,), (1339781682,), (1339781684,), (1339781687,), (1339781691,), (1339781695,), (1339781744,), (1339781753,), (1339781758,), (1339781767,), (1339781806,), (1339781809,), (1339781877,), (1339781945,), (1339781948,), (1339781951,), (1339781971,), (1339781974,), (1339781991,), (1339781995,), (1339782032,), (1339782040,), (1339782043,), (1339782045,), (1339782095,), (1339782096,), (1339782181,), (1339782184,), (1339782187,), (1339782191,), (1339782200,), (1339782203,), (1339782278,), (1339782266,), (1339782269,), (1339782273,), (1339782275,), (1339782298,), (1339782303,), (1339782308,), (1339782312,), (1339782325,), (1339782330,), (1339782335,), (1339782339,), (1339782357,), (1339782362,), (1339782367,), (1339782373,), (1339782394,), (1339782486,), (1339783120,), (1339783169,), (1339783197,), (1339783332,), (1339783340,), (1339783359,), (1339783362,), (1339783365,), (1339783366,), (1339783525,), (1339783535,), (1339783540,), (1339783544,), (1339783548,), (1339783602,), (1339783605,), (1339783608,), (1339783614,), (1339783701,), (1339783714,), (1339783728,), (1339783735,), (1339783738,), (1339783741,), (1339783778,), (1339783784,), (1339783792,), (1339783796,), (1339783800,), (1339783840,), (1339783848,), (1339783852,), (1339783856,), (1339783864,), (1339783866,), (1339783880,), (1339783884,), (1339783888,), (1339783892,), (1339783911,), (1339783917,), (1339783921,), (1339783925,), (1339783929,), (1339783933,), (1339783960,), (1339783968,), (1339783978,), (1339783984,), (1339784006,), (1339784013,), (1339784017,), (1339784022,), (1339784025,), (1339784029,), (1339784077,), (1339784045,), (1339784059,), (1339784068,), (1339784072,), (1339784313,), (1339784317,), (1339784348,), (1339784352,), (1339784379,), (1339784383,), (1339784387,), (1339784396,), (1339784402,), (1339784405,), (1339784429,), (1339784440,), (1339784449,), (1339784453,), (1339784502,), (1339784511,), (1339784514,), (1339784519,), (1339784524,), (1339784527,), (1339784570,), (1339784576,), (1339784580,), (1339784715,), (1339784722,), (1339784729,), (1339784733,), (1339784736,), (1339784739,), (1339784763,), (1339784776,), (1339784785,), (1339784789,), (1339784794,), (1339784797,), (1339784819,), (1339784824,), (1339784833,), (1339784837,), (1339784856,), (1339784860,), (1339784865,), (1339784876,), (1339784883,), (1339784886,), (1339784912,), (1339784917,), (1339784928,), (1339784936,), (1339784947,), (1339784976,), (1339784981,), (1339784984,), (1339785002,), (1339785005,), (1339785009,), (1339785041,), (1339785045,), (1339785049,), (1339785071,), (1339785073,), (1339785099,), (1339785103,), (1339785107,), (1339785112,), (1339785119,), (1339785126,), (1339785165,), (1339785171,), (1339785177,), (1339785181,), (1339785260,), (1339785236,), (1339785241,), (1339785245,), (1339785254,), (1339785273,), (1339785278,), (1339785282,), (1339785287,), (1339785296,), (1339785303,), (1339785321,), (1339785325,), (1339785328,), (1339785332,), (1339785635,), (1339785644,), (1339785652,), (1339785657,), (1339785659,), (1339785662,), (1339785765,), (1339785769,), (1339785773,), (1339785778,), (1339786519,), (1339786529,), (1339786569,), (1339786582,), (1339786639,), (1339786642,), (1339786661,), (1339786667,), (1339786672,), (1339786675,), (1339786705,), (1339786724,), (1339786740,), (1339786744,), (1339786748,), (1339786762,), (1339786814,), (1339786822,), (1339786828,), (1339786833,), (1339786835,), (1339786859,), (1339786864,), (1339786869,), (1339786873,), (1339786875,), (1339786971,), (1339792052,), (1339792047,), (1339792076,), (1339792082,), (1339792147,), (1339792553,), (1339793533,), (1339793538,), (1339793544,), (1339793549,), (1339793554,), (1339793614,), (1339793619,), (1339793632,), (1339793636,), (1339793640,), (1339793716,), (1339793802,), (1339793843,), (1339793916,), (1339793978,), (1339794220,), (1339794250,), (1339794261,), (1339794285,), (1339794295,), (1339794299,), (1339794324,), (1339794330,), (1339794334,), (1339794338,), (1339794359,), (1339794390,), (1339794396,), (1339794401,), (1339794406,), (1339794481,), (1339794487,), (1339794493,), (1339794499,), (1339794588,), (1339794613,), (1339794641,), (1339794646,), (1339794650,), (1339794688,), (1339794692,), (1339794696,), (1339794700,), (1339794721,), (1339794873,), (1339794876,), (1339794880,), (1339794881,), (1339794912,), (1339795201,), (1339795435,), (1339795439,), (1339795501,), (1339795505,), (1339795509,), (1339795513,), (1339795556,), (1339795577,), (1339795807,), (1339795813,), (1339796107,), (1339796116,), (1339796212,), (1339796218,), (1339796223,), (1339796255,), (1339796260,), (1339796341,), (1339796350,), (1339796356,), (1339796359,), (1339796444,), (1339796449,), (1339796484,), (1339796524,), (1339796617,), (1339796773,), (1339796727,), (1339796843,), (1339796854,), (1339796859,), (1339796882,), (1339796889,), (1339796894,), (1339796919,), (1339796926,), (1339796955,), (1339796961,), (1339797001,), (1339797014,), (1339797865,), (1339797872,), (1339797884,), (1339797890,), (1339797968,), (1339798413,), (1339798419,), (1339798556,), (1339798560,), (1339798882,), (1339798887,), (1339798891,), (1339798895,), (1339798940,), (1339798971,), (1339799762,), (1339799796,), (1339800020,), (1339800015,), (1339800065,), (1339800075,), (1339800309,), (1339800313,), (1339800506,), (1339800517,), (1339800520,), (1339800545,), (1339800551,), (1339800603,), (1339800757,), (1339800790,), (1339800795,), (1339800799,), (1339800802,), (1339800804,), (1339800814,), (1339800818,), (1339800842,), (1339800846,), (1339800851,), (1339800864,), (1339800868,), (1339800872,), (1339800881,), (1339800912,), (1339800916,), (1339801078,), (1339801128,), (1339801136,), (1339801146,), (1339801192,), (1339801199,), (1339801201,), (1339801236,), (1339801243,), (1339801254,), (1339801272,), (1339801268,), (1339801308,), (1339801311,), (1339801353,), (1339801457,), (1339801466,), (1339801471,), (1339802077,), (1339802135,), (1339802346,), (1339802383,), (1339802395,), (1339802814,), (1339802850,), (1339802876,), (1339802933,), (1339802938,), (1339802963,), (1339803011,), (1339803035,), (1339803066,), (1339803071,), (1339803075,), (1339803079,), (1339803082,), (1339803250,), (1339803253,), (1339803259,), (1339803264,), (1339803289,), (1339803279,), (1339803285,), (1339803311,), (1339803317,), (1339803322,), (1339803348,), (1339803353,), (1339803391,), (1339803395,), (1339803402,), (1339803490,), (1339803529,), (1339803645,), (1339803648,), (1339803651,), (1339803654,), (1339803656,), (1339803695,), (1339803699,), (1339803741,), (1339803745,), (1339804561,), (1339804677,), (1339804682,), (1339804687,), (1339804718,), (1339804840,), (1339805087,), (1339805100,), (1339805227,), (1339805239,), (1339805247,), (1339805562,), (1339805568,), (1339805599,), (1339805603,), (1339805607,), (1339805846,), (1339805690,), (1339805789,), (1339805841,), (1339806026,), (1339806030,), (1339806086,), (1339806090,), (1339806111,), (1339806115,), (1339806118,), (1339806160,), (1339806163,), (1339806231,), (1339806246,), (1339806260,), (1339806341,), (1339806346,), (1339806380,), (1339806387,), (1339806406,), (1339806438,), (1339806493,), (1339806623,), (1339806627,), (1339806645,), (1339806649,), (1339806654,), (1339806703,), (1339806706,), (1339806710,), (1339806714,), (1339806783,), (1339806787,), (1339806790,), (1339806956,), (1339806856,), (1339806860,), (1339806937,), (1339807188,), (1339807192,), (1339807211,), (1339807220,), (1339807277,), (1339807283,), (1339807285,), (1339807301,), (1339807927,), (1339807931,), (1339808167,), (1339808171,), (1339808357,), (1339808368,), (1339808409,), (1339808414,), (1339808417,), (1339808500,), (1339808518,), (1339808608,), (1339808611,), (1339808614,), (1339808656,), (1339808741,), (1339808860,), (1339808863,), (1339808967,), (1339809470,), (1339809475,), (1339809572,), (1339809576,), (1339809596,), (1339809601,), (1339809606,), (1339809610,), (1339809667,), (1339809671,), (1339809675,), (1339809698,), (1339809704,), (1339809708,), (1339809873,), (1339809889,), (1339809892,), (1339810233,), (1339810327,), (1339810340,), (1339810526,), (1339810528,), (1339810551,), (1339810555,), (1339810559,), (1339810562,), (1339810566,), (1339810632,), (1339810636,), (1339810660,), (1339810666,), (1339810671,), (1339810725,), (1339810732,), (1339810737,), (1339811339,), (1339811436,), (1339811730,), (1339811766,), (1339811839,), (1339811861,), (1339811868,), (1339812022,), (1339812006,), (1339812011,), (1339812277,), (1339813179,), (1339813183,), (1339814285,), (1339814291,), (1339814296,), (1339814390,), (1339814707,), (1339814761,), (1339814766,), (1339814986,), (1339815181,), (1339815187,), (1339815192,), (1339815232,), (1339815236,), (1339815240,), (1339815244,), (1339815296,), (1339815301,), (1339815305,), (1339815308,), (1339815380,), (1339816097,), (1339816103,), (1339816345,), (1339816395,), (1339816483,), (1339816487,), (1339816672,), (1339816666,), (1339816874,), (1339816886,), (1339816944,), (1339817074,), (1339817076,), (1339817079,), (1339817118,), (1339817121,), (1339817124,), (1339817127,), (1339817130,), (1339817153,), (1339817157,), (1339817163,), (1339817165,), (1339817208,), (1339817216,), (1339817222,), (1339817225,), (1339817228,), (1339817230,), (1339817250,), (1339817255,), (1339817259,), (1339817293,), (1339817308,), (1339817312,), (1339817315,), (1339817318,), (1339817319,), (1339817337,), (1339817347,), (1339817352,), (1339817356,), (1339817366,), (1339817411,), (1339817424,), (1339817436,), (1339817438,), (1339817549,), (1339817564,), (1339817573,), (1339817592,), (1339817593,), (1339817599,), (1339817630,), (1339817634,), (1339817639,), (1339817643,), (1339817676,), (1339817689,), (1339817692,), (1339817722,), (1339817725,), (1339817727,), (1339817731,), (1339817734,), (1339817744,), (1339817747,), (1339817749,), (1339817758,), (1339817830,), (1339817929,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] map_info['map_portfolio_photo'] : {20822915: [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : True mtd_id 4302 list_pids : [1339670001, 1339669685, 1339669682, 1339669676, 1339669651, 1339669649, 1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466] Looping around the photos to save general results len do output : 1 /20822915Didn'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, '2618724') ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724') ('4302', None, None, None, None, None, None, None, '2618724') ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '20822915', 'None', None, None, None, None, '2618724'), ('4302', '20822915', '1339670001', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669685', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669682', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669676', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669651', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669649', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669304', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668549', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668546', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668536', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668533', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668531', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668522', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668519', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668516', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668510', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668500', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668499', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668497', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668482', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668468', None, None, None, None, None, '2618724'), ('4302', '20822915', '1339668466', None, None, None, None, None, '2618724')] time used for this insertion : 0.020400047302246094 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.257609128952026 time spend to save output : 0.020669937133789062 total time spend for step 5 : 7.278279066085815 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 (2618724) 3.26user 2.11system 0:23.20elapsed 23%CPU (0avgtext+0avgdata 160168maxresident)k 36216inputs+21648outputs (200major+87134minor)pagefaults 0swaps